From 4bd275477e61ca70ce6809d2fd085ef9854366db Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Dec 23 2022 08:36:31 +0000 Subject: Update to 2.1.2 Related-to: https://review.rdoproject.org/r/q/I1d7a5e7785d8cb62a323063e2de61fe90b61c73e --- diff --git a/.python-itsdangerous.metadata b/.python-itsdangerous.metadata index 71f2a0c..9aa7884 100644 --- a/.python-itsdangerous.metadata +++ b/.python-itsdangerous.metadata @@ -1 +1 @@ -0a6ae9c20cd72e89d75314ebc7b0f390f93e6a0d SOURCES/itsdangerous-0.24.tar.gz +465dfb3eab99940fac475a83d1c5b9c0a4d33ccf SOURCES/itsdangerous-2.1.2.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SPECS/python-itsdangerous.spec b/SPECS/python-itsdangerous.spec index a4cf2ee..9d2652d 100644 --- a/SPECS/python-itsdangerous.spec +++ b/SPECS/python-itsdangerous.spec @@ -1,118 +1,122 @@ -%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} -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 +%global srcname itsdangerous + +Name: python-%{srcname} +Version: 2.1.2 +Release: 2%{?dist} +Summary: Library for passing trusted data to untrusted environments +License: BSD-3-Clause +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). +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 %{_description} -%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. - -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}} +%package -n python3-%{srcname} +Summary: %{summary} BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: pyproject-rpm-macros +# for tests +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 %prep -%setup -q -n %{upstream_name}-%{version} -rm -r *.egg-info +%autosetup -n %{srcname}-%{version} + + +%generate_buildrequires +%pyproject_buildrequires + %build -%if %{with python2} -%py2_build -%endif # with python2 -%if %{with python3} -%py3_build -%endif +%pyproject_wheel + %install -%if %{with python2} -%py2_install -%endif # with python2 -%if %{with python3} -%py3_install -%endif +%pyproject_install +%pyproject_save_files itsdangerous + %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 +%pytest + + +%files -n python3-%{srcname} -f %{pyproject_files} +%license LICENSE.rst +%doc CHANGES.rst README.rst + %changelog -* Fri Jun 22 2018 Charalampos Stratakis - 0.24-14 -- Conditionalize the python2 subpackage +* Thu Sep 01 2022 Jonathan Wright - 2.1.2-2 +- modernize spec file + +* Thu Sep 01 2022 Jonathan Wright - 2.1.2-1 +- update to 2.1.2 +- rhbz#2055967 + +* Fri Jul 22 2022 Fedora Release Engineering - 2.0.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 2.0.1-4 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 2.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 2.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jun 22 2021 Lumír Balhar - 2.0.1-1 +- Update to 2.0.1 +Resolves: rhbz#1841259 + +* Wed Jun 02 2021 Python Maint - 1.1.0-5 +- Rebuilt for Python 3.10 + +* 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