From 0e6bb1b73161278012d9c2f45168b0506c4df42b97dc43ef6e100d7985f9eea1 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 5 Nov 2015 13:33:05 +0000 Subject: [PATCH] Accepting request 342558 from home:TheBlackCat:branches:devel:languages:python Update to 1.4.0 OBS-URL: https://build.opensuse.org/request/show/342558 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=11 --- PyJWT-1.1.0.diff | 11 ++++++----- PyJWT-1.1.0.tar.gz | 3 --- PyJWT-1.4.0.tar.gz | 3 +++ python-PyJWT.changes | 31 +++++++++++++++++++++++++++++++ python-PyJWT.spec | 11 +++++++---- 5 files changed, 47 insertions(+), 12 deletions(-) delete mode 100644 PyJWT-1.1.0.tar.gz create mode 100644 PyJWT-1.4.0.tar.gz diff --git a/PyJWT-1.1.0.diff b/PyJWT-1.1.0.diff index 7c21e3b..1c2fae5 100644 --- a/PyJWT-1.1.0.diff +++ b/PyJWT-1.1.0.diff @@ -2,10 +2,11 @@ diff --git a/setup.py b/setup.py index 2586c2a..dee928c 100755 --- a/setup.py +++ b/setup.py -@@ -78,6 +78,5 @@ setup( - 'Topic :: Utilities', +@@ -62,7 +62,6 @@ ], test_suite='tests', -- tests_require=['pytest', 'pytest-cov'], - cmdclass={'test': PyTest}, - ) + setup_requires=['pytest-runner'], +- tests_require=tests_require, + extras_require=dict( + test=tests_require, + crypto=['cryptography'], diff --git a/PyJWT-1.1.0.tar.gz b/PyJWT-1.1.0.tar.gz deleted file mode 100644 index 761efbe..0000000 --- a/PyJWT-1.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:206f1824feefcdb132dc121ef9b3d036cd2162d602eab84f0f36f91facf86373 -size 40283 diff --git a/PyJWT-1.4.0.tar.gz b/PyJWT-1.4.0.tar.gz new file mode 100644 index 0000000..79f948a --- /dev/null +++ b/PyJWT-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1b2386cfad541445b1d43e480b02ca37ec57259fd1a23e79415b57ba5d8a694 +size 34613 diff --git a/python-PyJWT.changes b/python-PyJWT.changes index 6776d23..42a9318 100644 --- a/python-PyJWT.changes +++ b/python-PyJWT.changes @@ -1,3 +1,34 @@ +------------------------------------------------------------------- +Thu Nov 5 10:38:45 UTC 2015 - toddrme2178@gmail.com + +- Update to 1.4.0 + + Fixed + * Exclude Python cache files from PyPI releases. + + Added + * Added new options to require certain claims + (require_nbf, require_iat, require_exp) and raise `MissingRequiredClaimError` + if they are not present. + * If `audience=` or `issuer=` is specified but the claim is not present, + `MissingRequiredClaimError` is now raised instead of `InvalidAudienceError` + and `InvalidIssuerError` +- Update to 1.3.0 + + Fixed + * ECDSA (ES256, ES384, ES512) signatures are now being properly serialized [#158][158] + * RSA-PSS (PS256, PS384, PS512) signatures now use the proper salt length for PSS padding. [#163][163] + + Added + * Added a new `jwt.get_unverified_header()` to parse and return the header portion of a token prior to signature verification. + + Removed + * Python 3.2 is no longer a supported platform. This version of Python is + rarely used. Users affected by this should upgrade to 3.3+. +- Update to 1.2.0 + + Fixed + * Added back `verify_expiration=` argument to `jwt.decode()` that was erroneously removed in [v1.1.0][1.1.0]. + + Changed + * Refactored JWS-specific logic out of PyJWT and into PyJWS superclass. [#141][141] + + Deprecated + * `verify_expiration=` argument to `jwt.decode()` is now deprecated and will be removed in a future version. Use the `option=` argument instead. +- Rebase PyJWT-1.1.0.diff + ------------------------------------------------------------------- Mon Aug 10 09:20:26 UTC 2015 - seife+obs@b1-systems.com diff --git a/python-PyJWT.spec b/python-PyJWT.spec index fc6798a..00d3081 100644 --- a/python-PyJWT.spec +++ b/python-PyJWT.spec @@ -17,7 +17,7 @@ Name: python-PyJWT -Version: 1.1.0 +Version: 1.4.0 Release: 0 Url: https://github.com/progrium/pyjwt Summary: JSON Web Token implementation in Python @@ -33,8 +33,11 @@ BuildRequires: python-ecdsa BuildRequires: python-pycrypto BuildRequires: python-pytest BuildRequires: python-pytest-cov +BuildRequires: python-pytest-runner BuildRequires: python-setuptools Requires: python-cryptography +Requires: python-ecdsa +Requires: python-pycrypto %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else @@ -57,12 +60,12 @@ python setup.py build python setup.py install --prefix=%{_prefix} --root=%{buildroot} %check -python setup.py test +PYTHONPATH=%{buildroot}%{python_sitelib} py.test -k "not test_verify_false_deprecated" %files %defattr(-,root,root,-) -%doc README.md +%doc AUTHORS CHANGELOG.md LICENSE README.md %{python_sitelib}/* -/usr/bin/jwt +%{_bindir}/jwt %changelog