Update to 2.0.1

CLI and Python 2 support dropped upstream in 2.0.0
This commit is contained in:
Jiri Popelka 2021-04-26 10:34:51 +02:00
parent f9b58f1b12
commit d9ffd721f4
No known key found for this signature in database
GPG Key ID: A3E9A812AAB73DA7
2 changed files with 11 additions and 46 deletions

View File

@ -13,15 +13,10 @@ means of representing signed content using JSON data structures, including
claims to be transferred between two parties encoded as digitally signed and claims to be transferred between two parties encoded as digitally signed and
encrypted JSON objects.} encrypted JSON objects.}
%if 0%{?fedora} && 0%{?fedora} < 32
%bcond_without python2
%endif
%bcond_without python3
Name: python-%{pkgname} Name: python-%{pkgname}
Version: 1.7.1 Version: 2.0.1
Release: 11%{?dist} Release: 1%{?dist}
Summary: JSON Web Token implementation in Python Summary: JSON Web Token implementation in Python
License: MIT License: MIT
URL: https://github.com/jpadilla/pyjwt URL: https://github.com/jpadilla/pyjwt
@ -32,22 +27,6 @@ BuildArch: noarch
%description %{common_description} %description %{common_description}
%if %{with python2}
%package -n python2-%{pkgname}
Summary: %{summary}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-cryptography >= 1.4.0
BuildRequires: python2-pytest
Requires: python2-cryptography >= 1.4.0
%{?python_provide:%python_provide python2-%{pkgname}}
%description -n python2-%{pkgname} %{common_description}
%endif
%if %{with python3}
%package -n python%{python3_pkgversion}-%{pkgname} %package -n python%{python3_pkgversion}-%{pkgname}
Summary: %{summary} Summary: %{summary}
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
@ -64,51 +43,37 @@ BuildRequires: python%{python3_pkgversion}-pytest
%description -n python%{python3_pkgversion}-%{pkgname} %{common_description} %description -n python%{python3_pkgversion}-%{pkgname} %{common_description}
%{?python_extras_subpkg:%python_extras_subpkg -n python%{python3_pkgversion}-%{pkgname} -i %{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info crypto} %{?python_extras_subpkg:%python_extras_subpkg -n python%{python3_pkgversion}-%{pkgname} -i %{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info crypto}
%endif
%prep %prep
%autosetup -n %{srcname}-%{version} %autosetup -n %{srcname}-%{version}
rm -rf %{eggname}.egg-info rm -rf %{eggname}.egg-info
# prevent pullng in `addopts` for pytest run later
rm setup.cfg
%build %build
%{?with_python2:%py2_build} %py3_build
%{?with_python3:%py3_build}
%install %install
%{?with_python2:%py2_install} %py3_install
%{?with_python3:%py3_install}
%check %check
%{?with_python2:PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} --verbose tests} PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose tests
%{?with_python3:PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose tests}
%if %{with python2}
%files -n python2-%{pkgname}
%doc README.rst AUTHORS
%license LICENSE
%{python2_sitelib}/%{libname}
%{python2_sitelib}/%{eggname}-%{version}-py%{python2_version}.egg-info
%endif
%if %{with python3}
%files -n python%{python3_pkgversion}-%{pkgname} %files -n python%{python3_pkgversion}-%{pkgname}
%doc README.rst AUTHORS %doc README.rst AUTHORS.rst
%license LICENSE %license LICENSE
%{python3_sitelib}/%{libname} %{python3_sitelib}/%{libname}
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
%{_bindir}/pyjwt
%endif
%changelog %changelog
* Mon Apr 26 2021 Jiri Popelka <jpopelka@redhat.com> - 2.0.1-1
- Update to 2.0.1
- CLI and Python 2 support dropped in 2.0.0
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-11 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (PyJWT-1.7.1.tar.gz) = 70cd38127b6848933992c8b88303725ef71bfb430ad42eb63247e549b0bdab2a194137349d43ab02a1c97212dbc89f447ee3f0c5403dd14632b8b4b6b9235fc4 SHA512 (PyJWT-2.0.1.tar.gz) = a59b975fb465b44e4d84e3ef0380ed5107438e202e073238700bd700e8871098b9c59a849d157ade7888eef32609078571e2b8af09dca0752d7a18c370c2a0a5