From f708970fe20fee53b718cd87ad95a782d9dd215f Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Nov 20 2024 07:51:52 +0000 Subject: Update to 2.2.0 Related-to: https://review.rdoproject.org/r/q/I42bfe5bb3b42bd6c82bddc5877d22bce98c1dc2a --- diff --git a/.python-itsdangerous.metadata b/.python-itsdangerous.metadata index 71f2a0c..cf01476 100644 --- a/.python-itsdangerous.metadata +++ b/.python-itsdangerous.metadata @@ -1 +1 @@ -0a6ae9c20cd72e89d75314ebc7b0f390f93e6a0d SOURCES/itsdangerous-0.24.tar.gz +52eb3c905b0f663b57eeff671d6a4f69be47ac2d SOURCES/itsdangerous-2.2.0.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..5d60823 100644 --- a/SPECS/python-itsdangerous.spec +++ b/SPECS/python-itsdangerous.spec @@ -1,118 +1,146 @@ -%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.2.0 +Release: 1%{?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 -Wdefault + + +%files -n python3-%{srcname} -f %{pyproject_files} +%license LICENSE.txt +%doc CHANGES.rst README.md + %changelog -* Fri Jun 22 2018 Charalampos Stratakis - 0.24-14 -- Conditionalize the python2 subpackage +* Tue Nov 19 2024 Frantisek Zatloukal - 2.2.0-1 +- Update to 2.2.0 (RHBZ#) + +* Fri Jul 19 2024 Fedora Release Engineering - 2.1.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 2.1.2-8 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 2.1.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 2.1.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 2.1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jun 14 2023 Python Maint - 2.1.2-4 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* 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