-
Notifications
You must be signed in to change notification settings - Fork 238
/
Copy pathsetup.py
69 lines (60 loc) · 1.93 KB
/
setup.py
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import jose
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()
def get_packages(package):
"""
Return root package and all sub-packages.
"""
return [
dirpath
for dirpath, dirnames, filenames in os.walk(package)
if os.path.exists(os.path.join(dirpath, '__init__.py'))
]
extras_require = {
'cryptography': ['cryptography'],
'pycrypto': ['pycrypto >=2.6.0, <2.7.0'],
'pycryptodome': ['pycryptodome >=3.3.1, <4.0.0'],
}
setup(
name='python-jose',
version=jose.__version__,
author='Michael Davis',
author_email='[email protected]',
description='JOSE implementation in Python',
license='MIT',
keywords='jose jws jwe jwt json web token security signing',
url='https://github.com/mpdavis/python-jose',
packages=get_packages('jose'),
long_description=long_description,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Utilities',
],
extras_require=extras_require,
setup_requires=['pytest-runner'],
tests_require=[
'six',
'future',
'ecdsa',
'pytest',
'pytest-cov',
'pytest-runner',
'cryptography',
],
install_requires=['six <2.0', 'ecdsa <1.0', 'rsa', 'future <1.0']
)