From 7634a31622519892909af052c2a7e61028f88796 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Thu, 16 Apr 2020 08:14:57 +0200 Subject: [PATCH] Update to 1.1.0 Signed-off-by: Igor Raits --- .gitignore | 1 + python-itsdangerous.spec | 63 ++++++++++++++++++++-------------------- sources | 2 +- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.gitignore b/.gitignore index aaf5833..ede1de3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /itsdangerous-0.22.tar.gz /itsdangerous-0.23.tar.gz /itsdangerous-0.24.tar.gz +/itsdangerous-1.1.0.tar.gz diff --git a/python-itsdangerous.spec b/python-itsdangerous.spec index 9c435a4..189a737 100644 --- a/python-itsdangerous.spec +++ b/python-itsdangerous.spec @@ -1,42 +1,39 @@ -%global upstream_name itsdangerous +%global srcname itsdangerous - -Name: python-%{upstream_name} -Version: 0.24 -Release: 20%{?dist} +Name: python-%{srcname} +Version: 1.1.0 +Release: 1%{?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). +implementation on the Django signing module. It also however supports JSON Web +Signatures (JWS).} -%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). +Python 3 version. %prep -%setup -q -n %{upstream_name}-%{version} -rm -r *.egg-info +%autosetup -n %{srcname}-%{version} +rm -vr src/*.egg-info %build %py3_build @@ -45,16 +42,18 @@ rm -r *.egg-info %py3_install %check -PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} tests.py +PYTHONPATH=%{buildroot}%{python3_sitelib} %python3 -m pytest -v -%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}* +%files -n python3-%{srcname} +%license LICENSE.rst +%doc CHANGES.rst README.rst +%{python3_sitelib}/%{srcname}-*.egg-info/ +%{python3_sitelib}/%{srcname}/ %changelog +* 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 diff --git a/sources b/sources index 42bd9c4..92b2501 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a3d55aa79369aef5345c036a8a26307f itsdangerous-0.24.tar.gz +SHA512 (itsdangerous-1.1.0.tar.gz) = 61bab3fce5f87a3b5fc8fad61e735a63df6aa039416ee3494e1c99a2a1162b4fb72793bc5dc949de0985724c40121810b159513606c4c3976a7666dba3a1b93d