1
1
#!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
2
import os
4
- import platform
3
+ from pathlib import Path
5
4
6
5
import jose # noqa: F401
7
6
8
7
from setuptools import setup
9
8
10
9
11
- with open (os .path .join (os .path .dirname (__file__ ), 'README.rst' )) as readme :
12
- long_description = readme .read ()
10
+ long_description = (Path (__file__ ).parent / 'README.rst' ).read_text ()
13
11
14
12
15
13
def get_packages (package ):
@@ -23,18 +21,9 @@ def get_packages(package):
23
21
]
24
22
25
23
26
- def _cryptography_version ():
27
- # pyca/cryptography dropped support for PyPy < 5.4 in 2.5
28
- # https://cryptography.io/en/latest/changelog/#v2-5
29
- if platform .python_implementation () == 'PyPy' and platform .python_version () < '5.4' :
30
- return 'cryptography < 2.5'
31
-
32
- return 'cryptography'
33
-
34
-
35
24
pyasn1 = ['pyasn1' ]
36
25
extras_require = {
37
- 'cryptography' : [_cryptography_version () ],
26
+ 'cryptography' : ['cryptography' ],
38
27
'pycrypto' : ['pycrypto >=2.6.0, <2.7.0' ] + pyasn1 ,
39
28
'pycryptodome' : ['pycryptodome >=3.3.1, <4.0.0' ] + pyasn1 ,
40
29
}
@@ -55,16 +44,24 @@ def _cryptography_version():
55
44
url = 'http://github.com/mpdavis/python-jose' ,
56
45
packages = get_packages ('jose' ),
57
46
long_description = long_description ,
47
+ project_urls = {
48
+ 'Documentation' : 'https://python-jose.readthedocs.io/en/latest/' ,
49
+ 'Source' : 'https://github.com/mpdavis/python-jose/' ,
50
+ 'Tracker' : 'https://github.com/mpdavis/python-jose/issues/' ,
51
+ 'Changelog' : 'https://github.com/mpdavis/python-jose/blob/master/CHANGELOG.md' ,
52
+ },
58
53
classifiers = [
59
54
'Development Status :: 5 - Production/Stable' ,
60
55
'Intended Audience :: Developers' ,
61
56
'Natural Language :: English' ,
62
57
'License :: OSI Approved :: MIT License' ,
63
58
'Programming Language :: Python' ,
64
59
'Programming Language :: Python :: 3' ,
60
+ 'Programming Language :: Python :: 3 :: Only' ,
65
61
'Programming Language :: Python :: 3.6' ,
66
62
'Programming Language :: Python :: 3.7' ,
67
63
'Programming Language :: Python :: 3.8' ,
64
+ 'Programming Language :: Python :: 3.9' ,
68
65
'Programming Language :: Python :: Implementation :: PyPy' ,
69
66
'Topic :: Utilities' ,
70
67
],
0 commit comments