python-python-jose/unpin-deps.patch
Matej Cepl 930eaed495 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
2022-05-29 20:52:04 +00:00

33 lines
923 B
Diff

Index: python-jose-3.3.0/setup.py
===================================================================
--- 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>=3.4.0"],
- "pycrypto": ["pycrypto >=2.6.0, <2.7.0"] + pyasn1,
- "pycryptodome": ["pycryptodome >=3.3.1, <4.0.0"] + pyasn1,
}
# TODO: work this into the extras selection instead.
-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,
)