1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
#!/usr/bin/env python
# Copyright 2017 Canonical Ltd.
# Licensed under the LGPLv3, see LICENCE file for details.
from setuptools import (
find_packages,
setup,
)
PROJECT_NAME = 'macaroonbakery'
# version 1.3.4
VERSION = (1, 3, 4)
def get_version():
'''Return the macaroon bakery version as a string.'''
return '.'.join(map(str, VERSION))
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'requests>=2.18.1,<3.0',
'PyNaCl>=1.1.2,<2.0',
'pymacaroons>=0.12.0,<1.0',
'six>=1.11.0,<2.0',
'protobuf>=3.20.0',
'pyRFC3339>=1.0,<2.0',
'ipaddress;python_version<"3"',
'cryptography==1.3.2;python_full_version<"2.7.9"',
'ndg_httpsclient==0.3.3;python_full_version<"2.7.9"',
'pyasn1==0.1.9;python_full_version<"2.7.9"',
'pyOpenSSL==16.0.0;python_full_version<"2.7.9"',
]
test_requirements = [
'tox',
'fixtures',
'httmock==1.2.5',
]
setup(
name=PROJECT_NAME,
version=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,
)
|