diff --git a/.python-itsdangerous.metadata b/.python-itsdangerous.metadata index 71f2a0c..ffe270e 100644 --- a/.python-itsdangerous.metadata +++ b/.python-itsdangerous.metadata @@ -1 +1 @@ -0a6ae9c20cd72e89d75314ebc7b0f390f93e6a0d SOURCES/itsdangerous-0.24.tar.gz +b79fef5caacdd247f7def3fe59e6def34bc86905 SOURCES/itsdangerous-1.1.0.tar.gz diff --git a/SPECS/python-itsdangerous.spec b/SPECS/python-itsdangerous.spec index a4cf2ee..d2b5b20 100644 --- a/SPECS/python-itsdangerous.spec +++ b/SPECS/python-itsdangerous.spec @@ -1,118 +1,89 @@ -%global upstream_name itsdangerous - -%if 0%{?fedora} || 0%{?rhel} > 7 -%bcond_without python3 -%else -%bcond_with python3 -%endif - -%if 0%{?rhel} > 7 -# Disable python2 build by default -%bcond_with python2 -%else -%bcond_without python2 -%endif - -Name: python-%{upstream_name} -Version: 0.24 -Release: 14%{?dist} +%global srcname itsdangerous + +Name: python-%{srcname} +Version: 1.1.0 +Release: 4%{?dist} Summary: Python library for passing trusted data to untrusted environments License: BSD -URL: http://pythonhosted.org/itsdangerous/ -Source0: http://pypi.python.org/packages/source/i/%{upstream_name}/%{upstream_name}-%{version}.tar.gz +URL: https://itsdangerous.palletsprojects.com +Source0: %{pypi_source} BuildArch: noarch -%description -Itsdangerous is a Python library for passing data through untrusted -environments (for example, HTTP cookies) while ensuring the data is not +%global _description %{expand: +Itsdangerous is a Python library for passing data through untrusted +environments (for example, HTTP cookies) while ensuring the data is not tampered with. Internally itsdangerous uses HMAC and SHA1 for signing by default and bases the -implementation on the Django signing module. It also however supports JSON Web -Signatures (JWS). - -%if %{with python2} -%package -n python2-%{upstream_name} -Summary: Python 2 library for passing trusted data to untrusted environments -%{?python_provide:%python_provide python2-%{upstream_name}} -BuildRequires: python2-devel -BuildRequires: python2-setuptools - -%description -n python2-%{upstream_name} -Itsdangerous is a Python library for passing data through untrusted -environments (for example, HTTP cookies) while ensuring the data is not -tampered with. +implementation on the Django signing module. It also however supports JSON Web +Signatures (JWS).} -Internally itsdangerous uses HMAC and SHA1 for signing by default and bases the -implementation on the Django signing module. It also however supports JSON Web -Signatures (JWS). -%endif # with python2 - -%if %{with python3} -%package -n python3-%{upstream_name} -Summary: Python 3 library for passing trusted data to untrusted environments -%{?python_provide:%python_provide python3-%{upstream_name}} +%description %{_description} + +%package -n python3-%{srcname} +Summary: %{summary} BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(freezegun) -%description -n python3-%{upstream_name} -Itsdangerous is a Python 3 library for passing data through untrusted -environments (for example, HTTP cookies) while ensuring the data is not -tampered with. +%description -n python3-%{srcname} %{_description} -Internally itsdangerous uses HMAC and SHA1 for signing by default and bases the -implementation on the Django signing module. It also however supports JSON Web -Signatures (JWS). -%endif +Python 3 version. %prep -%setup -q -n %{upstream_name}-%{version} -rm -r *.egg-info +%autosetup -n %{srcname}-%{version} +rm -vr src/*.egg-info %build -%if %{with python2} -%py2_build -%endif # with python2 -%if %{with python3} %py3_build -%endif %install -%if %{with python2} -%py2_install -%endif # with python2 -%if %{with python3} %py3_install -%endif %check -%if %{with python2} -PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} tests.py -%endif # with python2 -%if %{with python3} -PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} tests.py -%endif - -%if %{with python2} -%files -n python2-%{upstream_name} -%license LICENSE -%doc CHANGES README -%{python2_sitelib}/%{upstream_name}.py* -%{python2_sitelib}/%{upstream_name}*.egg-info -%endif # with python2 - -%if %{with python3} -%files -n python3-%{upstream_name} -%license LICENSE -%doc CHANGES README -%{python3_sitelib}/%{upstream_name}.py -%{python3_sitelib}/%{upstream_name}*.egg-info -%{python3_sitelib}/__pycache__/%{upstream_name}* -%endif +PYTHONPATH=%{buildroot}%{python3_sitelib} %python3 -m pytest -v + +%files -n python3-%{srcname} +%license LICENSE.rst +%doc CHANGES.rst README.rst +%{python3_sitelib}/%{srcname}-*.egg-info/ +%{python3_sitelib}/%{srcname}/ %changelog -* Fri Jun 22 2018 Charalampos Stratakis - 0.24-14 -- Conditionalize the python2 subpackage +* Wed Jan 27 2021 Fedora Release Engineering - 1.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri May 22 2020 Miro Hrončok - 1.1.0-2 +- Rebuilt for Python 3.9 + +* Thu Apr 16 2020 Igor Raits - 1.1.0-1 +- Update to 1.1.0 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.24-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Sep 24 2019 Miro Hrončok - 0.24-19 +- Subpackage python2-itsdangerous has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Thu Aug 15 2019 Miro Hrončok - 0.24-18 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.24-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.24-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 0.24-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 15 2018 Miro Hrončok - 0.24-14 +- Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.24-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild