diff options
author | Colin Watson <cjwatson@debian.org> | 2017-10-31 10:34:41 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2017-10-31 10:34:41 +0000 |
commit | 79ff2842fa477ee0693ea167c0a74cd7cf080d27 (patch) | |
tree | d0eb436672c1a73088fce42f939bdf4cf6f4427b /setup.py |
Import py-macaroon-bakery_0.0.3.orig.tar.gz
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..989b8cc --- /dev/null +++ b/setup.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python + +# Copyright 2017 Canonical Ltd. +# Licensed under the LGPLv3, see LICENCE file for details. +import platform + +from setuptools import ( + find_packages, + setup, +) + + +PROJECT_NAME = 'macaroonbakery' +project = __import__(PROJECT_NAME) + +with open('README.rst') as readme_file: + readme = readme_file.read() + +requirements = [ + 'requests>=2.16.5', + 'PyNaCl>=1.1.2', + 'pymacaroons>=0.10.0', + 'six>=1.10.0', +] + +test_requirements = [ + 'tox', + 'httmock==1.2.5', +] + +distribution = platform.dist() +if len(distribution) == 3 and distribution[2] == 'trusty': + # Injected into urllib3 to fix insecure Python 2. + requirements.extend([ + 'cryptography==1.3.2', + 'pyOpenSSL==16.0.0', + 'pyasn1==0.1.9', + 'ndg_httpsclient==0.3.3', + ]) + + +setup( + name=PROJECT_NAME, + version=project.get_version(), + description='A Python library port for bakery, higher level operation ' + 'to work with macaroons', + long_description=readme, + author="Juju UI Team", + author_email='juju-gui@lists.ubuntu.com', + url='https://github.com/go-macaroon-bakery/py-macaroon-bakery', + packages=find_packages(), + include_package_data=True, + install_requires=requirements, + license="LGPL3", + zip_safe=False, + keywords='macaroon cookie', + classifiers=[ + 'Development Status :: 2 - Pre-Alpha', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)', + 'Natural Language :: English', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.5', + ], + test_suite='tests', + tests_require=test_requirements, +) |