11#!/usr/bin/env python
2- # -*- coding: utf-8 -*-
32import os
4- import platform
3+ from pathlib import Path
54
65import jose # noqa: F401
76
87from setuptools import setup
98
109
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 ()
1311
1412
1513def get_packages (package ):
@@ -23,18 +21,9 @@ def get_packages(package):
2321 ]
2422
2523
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-
3524pyasn1 = ['pyasn1' ]
3625extras_require = {
37- 'cryptography' : [_cryptography_version () ],
26+ 'cryptography' : ['cryptography' ],
3827 'pycrypto' : ['pycrypto >=2.6.0, <2.7.0' ] + pyasn1 ,
3928 'pycryptodome' : ['pycryptodome >=3.3.1, <4.0.0' ] + pyasn1 ,
4029}
@@ -55,16 +44,24 @@ def _cryptography_version():
5544 url = 'http://github.com/mpdavis/python-jose' ,
5645 packages = get_packages ('jose' ),
5746 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+ },
5853 classifiers = [
5954 'Development Status :: 5 - Production/Stable' ,
6055 'Intended Audience :: Developers' ,
6156 'Natural Language :: English' ,
6257 'License :: OSI Approved :: MIT License' ,
6358 'Programming Language :: Python' ,
6459 'Programming Language :: Python :: 3' ,
60+ 'Programming Language :: Python :: 3 :: Only' ,
6561 'Programming Language :: Python :: 3.6' ,
6662 'Programming Language :: Python :: 3.7' ,
6763 'Programming Language :: Python :: 3.8' ,
64+ 'Programming Language :: Python :: 3.9' ,
6865 'Programming Language :: Python :: Implementation :: PyPy' ,
6966 'Topic :: Utilities' ,
7067 ],
0 commit comments