forked from pool/python-python-jose
Accepting request 979755 from home:bnavigator:branches:devel:languages:python
- Update to 3.3.0 * Remove support for python 2.7 & 3.5 * Add support for Python 3.9 * Remove PyCrypto backend * Fix deprecation warning from cryptography backend - Add rpm subpackages for the extra backend selection. The missing requires were only discovered because other packages started to fail. * setup.py and README still mention pycrypto and pycryptodome, but it was removed from the code. * Test in flavors - Refresh unpin-deps.patch OBS-URL: https://build.opensuse.org/request/show/979755 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-jose?expand=0&rev=9
This commit is contained in:
@@ -1,20 +1,32 @@
|
||||
Index: python-jose-3.2.0/setup.py
|
||||
Index: python-jose-3.3.0/setup.py
|
||||
===================================================================
|
||||
--- python-jose-3.2.0.orig/setup.py
|
||||
+++ python-jose-3.2.0/setup.py
|
||||
@@ -35,11 +35,11 @@ def _cryptography_version():
|
||||
pyasn1 = ['pyasn1']
|
||||
--- python-jose-3.3.0.orig/setup.py
|
||||
+++ python-jose-3.3.0/setup.py
|
||||
@@ -23,11 +23,9 @@ def get_packages(package):
|
||||
pyasn1 = ["pyasn1"]
|
||||
extras_require = {
|
||||
'cryptography': [_cryptography_version()],
|
||||
- 'pycrypto': ['pycrypto >=2.6.0, <2.7.0'] + pyasn1,
|
||||
- 'pycryptodome': ['pycryptodome >=3.3.1, <4.0.0'] + pyasn1,
|
||||
+ 'pycrypto': ['pycrypto >=2.6.0'] + pyasn1,
|
||||
+ 'pycryptodome': ['pycryptodome >=3.3.1'] + pyasn1,
|
||||
"cryptography": ["cryptography>=3.4.0"],
|
||||
- "pycrypto": ["pycrypto >=2.6.0, <2.7.0"] + pyasn1,
|
||||
- "pycryptodome": ["pycryptodome >=3.3.1, <4.0.0"] + pyasn1,
|
||||
}
|
||||
-legacy_backend_requires = ['ecdsa <0.15', 'rsa'] + pyasn1
|
||||
-install_requires = ['six <2.0']
|
||||
+legacy_backend_requires = ['ecdsa', 'rsa'] + pyasn1
|
||||
+install_requires = ['six']
|
||||
|
||||
# TODO: work this into the extras selection instead.
|
||||
install_requires += legacy_backend_requires
|
||||
-install_requires = ["ecdsa != 0.15", "rsa"] + pyasn1
|
||||
+install_requires = ["ecdsa >= 0.16", "rsa"] + pyasn1
|
||||
|
||||
|
||||
setup(
|
||||
@@ -63,14 +61,11 @@ setup(
|
||||
],
|
||||
extras_require=extras_require,
|
||||
setup_requires=[
|
||||
- "pytest-runner",
|
||||
"setuptools>=39.2.0",
|
||||
],
|
||||
tests_require=[
|
||||
"ecdsa != 0.15",
|
||||
"pytest",
|
||||
- "pytest-cov",
|
||||
- "pytest-runner",
|
||||
],
|
||||
install_requires=install_requires,
|
||||
)
|
||||
|
Reference in New Issue
Block a user