diff --git a/PyJWT-1.5.3.tar.gz b/PyJWT-1.5.3.tar.gz deleted file mode 100644 index 4654c97..0000000 --- a/PyJWT-1.5.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:500be75b17a63f70072416843dc80c8821109030be824f4d14758f114978bae7 -size 73044 diff --git a/PyJWT-1.6.3.tar.gz b/PyJWT-1.6.3.tar.gz new file mode 100644 index 0000000..ef9f473 --- /dev/null +++ b/PyJWT-1.6.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c365c2c92063bdc609a9ef328958a910e249ffcad953895914b87e645412cf81 +size 41585 diff --git a/_service b/_service deleted file mode 100644 index 790feac..0000000 --- a/_service +++ /dev/null @@ -1,7 +0,0 @@ - - - yes - enable - - - diff --git a/python-PyJWT.changes b/python-PyJWT.changes index 9c96e87..0c58415 100644 --- a/python-PyJWT.changes +++ b/python-PyJWT.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Wed May 23 10:35:21 UTC 2018 - tchvatal@suse.com + +- Version update to 1.6.3: + * Dropped support for python 2.6 and 3.3 #301 + * An invalid signature now raises an InvalidSignatureError instead of DecodeError #316 + * Fix over-eager fallback to stdin #304 + * Audience parameter throws InvalidAudienceError when application does not specify an audience, but the token does. #336 + * All exceptions inherit from PyJWTError #340 + * Add type hints #344 + * Add help module 7ca41e5 +- Drop pointless _service file + ------------------------------------------------------------------- Fri Feb 23 19:47:34 UTC 2018 - tbechtold@suse.com diff --git a/python-PyJWT.spec b/python-PyJWT.spec index 5580dd6..8f3fe13 100644 --- a/python-PyJWT.spec +++ b/python-PyJWT.spec @@ -18,32 +18,27 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-PyJWT -Version: 1.5.3 +Version: 1.6.3 Release: 0 Summary: JSON Web Token implementation in Python License: MIT Group: Development/Languages/Python -Url: https://github.com/progrium/pyjwt +URL: https://github.com/progrium/pyjwt Source: https://files.pythonhosted.org/packages/source/P/PyJWT/PyJWT-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build - -BuildRequires: %{python_module cryptography} +BuildRequires: %{python_module cryptography >= 1.4} BuildRequires: %{python_module devel} +BuildRequires: %{python_module ecdsa} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros - -Requires: python-cryptography +Requires: python-cryptography >= 1.4 Requires: python-ecdsa Requires: python-setuptools - -Requires(post): update-alternatives -Requires(postun): update-alternatives - +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch - %python_subpackages %description @@ -56,7 +51,7 @@ dos2unix jwt/__main__.py %build %python_build #remove shebang from all non executable files -find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#!/usr/bin/env python@d}' {} \; +find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#!%{_bindir}/env python@d}' {} \; %install %python_install @@ -72,11 +67,11 @@ find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#!/usr/bin/env pyth %python_uninstall_alternative pyjwt %check -%{python_expand PYTHONPATH=%{buildroot}%{python_sitelib} py.test-%{py_ver} -o addopts="" -k "not test_verify_false_deprecated" } +%{python_expand PYTHONPATH=%{buildroot}%{python_sitelib} py.test-%{$python_version} -o addopts="" -k "not test_verify_false_deprecated" } -%files %python_files -%defattr(-,root,root,-) -%doc AUTHORS CHANGELOG.md LICENSE README.rst +%files %{python_files} +%license LICENSE +%doc AUTHORS CHANGELOG.md README.rst %{python_sitelib}/* %python_alternative %{_bindir}/pyjwt