Update to 1.5.0. Fixes bug #1443792

This commit is contained in:
Kevin Fenzi 2017-05-27 14:23:25 -06:00
parent 07454907d7
commit dc50678922
4 changed files with 12 additions and 25 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@
/PyJWT-1.3.0.tar.gz /PyJWT-1.3.0.tar.gz
/PyJWT-1.4.0.tar.gz /PyJWT-1.4.0.tar.gz
/PyJWT-1.4.2.tar.gz /PyJWT-1.4.2.tar.gz
/1.5.0.tar.gz

View File

@ -1,12 +0,0 @@
diff -Nur PyJWT-1.4.2.orig/setup.py PyJWT-1.4.2/setup.py
--- PyJWT-1.4.2.orig/setup.py 2016-06-29 22:07:44.000000000 -0600
+++ PyJWT-1.4.2/setup.py 2017-04-17 09:05:19.783324336 -0600
@@ -30,7 +30,7 @@
sys.exit()
tests_require = [
- 'pytest==2.7.3',
+ 'pytest',
'pytest-cov',
'pytest-runner',
]

View File

@ -6,19 +6,14 @@
%global sum JSON Web Token implementation in Python %global sum JSON Web Token implementation in Python
Name: python-jwt Name: python-jwt
Version: 1.4.2 Version: 1.5.0
Release: 4%{?dist} Release: 1%{?dist}
Summary: %{sum} Summary: %{sum}
Group: Development/Libraries Group: Development/Libraries
License: MIT License: MIT
URL: http://pypi.python.org/pypi/pyjwt URL: http://pypi.python.org/pypi/pyjwt
Source0: https://pypi.python.org/packages/source/P/PyJWT/PyJWT-%{version}.tar.gz Source0: https://github.com/jpadilla/pyjwt/archive/%{version}.tar.gz
#
# Upstream hard coded a specific version of pytest to avoid a bug
# However, that bug is long since fixed upstream
#
Patch0: allow-newer-pytest.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel BuildRequires: python2-devel
@ -70,7 +65,7 @@ encrypted JSON objects.
%endif %endif
%prep %prep
%autosetup -n PyJWT-%{version} %autosetup -n pyjwt-%{version}
%build %build
%py2_build %py2_build
@ -91,21 +86,24 @@ encrypted JSON objects.
%endif %endif
%files -n python2-jwt %files -n python2-jwt
%doc README.md AUTHORS %doc README.rst AUTHORS
%license LICENSE %license LICENSE
%{python2_sitelib}/%{srcname}/ %{python2_sitelib}/%{srcname}/
%{python2_sitelib}/PyJWT-%{version}* %{python2_sitelib}/PyJWT-%{version}*
%if 0%{?with_python3} %if 0%{?with_python3}
%files -n python3-jwt %files -n python3-jwt
%doc README.md AUTHORS %doc README.rst AUTHORS
%license LICENSE %license LICENSE
%{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{srcname}/
%{python3_sitelib}/PyJWT-%{version}* %{python3_sitelib}/PyJWT-%{version}*
%{_bindir}/jwt %{_bindir}/pyjwt
%endif %endif
%changelog %changelog
* Sat May 27 2017 Kevin Fenzi <kevin@scrye.com> - 1.5.0-1
- Update to 1.5.0. Fixes bug #1443792
* Mon Apr 17 2017 Kevin Fenzi <kevin@scrye.com> - 1.4.2-4 * Mon Apr 17 2017 Kevin Fenzi <kevin@scrye.com> - 1.4.2-4
- Modernize spec and make sure to provide python2-jwt - Modernize spec and make sure to provide python2-jwt

View File

@ -1 +1 @@
e08aa1ecc99269248bb02f888c166af1 PyJWT-1.4.2.tar.gz SHA512 (1.5.0.tar.gz) = 1b5c0d558605b755b95eb2c2d34f467756cae81c67a1f2b47096bf513f669d93d85f4a16fa11e5a3630525497e5c86e424a161d4d834aed1270549a1715c0672