[packages/python3-itsdangerous] Up to 2.0.1 (supports python 3.6+)

arekm arekm at pld-linux.org
Wed Oct 13 12:22:10 CEST 2021


commit 132f4017d95c91f8f46db2e9e7389cc3069e566c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Oct 13 10:21:42 2021 +0000

    Up to 2.0.1 (supports python 3.6+)

 ...-itsdangerous.spec => python3-itsdangerous.spec | 66 ++--------------------
 1 file changed, 5 insertions(+), 61 deletions(-)
---
diff --git a/python-itsdangerous.spec b/python3-itsdangerous.spec
similarity index 58%
rename from python-itsdangerous.spec
rename to python3-itsdangerous.spec
index 42c4153..34303bc 100644
--- a/python-itsdangerous.spec
+++ b/python3-itsdangerous.spec
@@ -2,39 +2,27 @@
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
 %bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 %define 	module  itsdangerous
 Summary:	Various helpers to pass trusted data to untrusted environments and back
 Summary(pl.UTF-8):	Wspomaganie przekazywania danych do i z niezaufanych środowisk
-Name:		python-%{module}
-Version:	1.1.0
-Release:	3
+Name:		python3-%{module}
+Version:	2.0.1
+Release:	1
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.python.org/simple/itsdangerous
 Source0:	https://pypi.python.org/packages/source/i/itsdangerous/%{module}-%{version}.tar.gz
-# Source0-md5:	9b7f5afa7f1e3acfb7786eeca3d99307
+# Source0-md5:	996b9763d1b4bd0edd6eb86f0a490629
 URL:		http://github.com/mitsuhiko/itsdangerous
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-freezegun
-BuildRequires:	python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
+BuildRequires:	python3-modules >= 1:3.6
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-freezegun
 BuildRequires:	python3-pytest
 %endif
-%endif
 %if %{with doc}
 BuildRequires:	python3-pallets-sphinx-themes >= 1.1.0
 BuildRequires:	sphinx-pdg-3 >= 1.8.0
@@ -51,20 +39,6 @@ back safe and sound.
 Funkcje pomocnicze do przekazywania danych do niezaufanych środowisk i
 pobierania ich w sposób bezpieczny.
 
-%package -n python3-%{module}
-Summary:	Various helpers to pass data to untrusted environments and to get it back safe and sound
-Summary(pl.UTF-8):	Wspomaganie przekazywania danych do i z niebezpiecznych środowisk
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-%{module}
-Various helpers to pass data to untrusted environments and to get it
-back safe and sound.
-
-%description -n python3-%{module} -l pl.UTF-8
-Funkcje pomocnicze do przekazywania danych do niezaufanych środowisk i
-pobierania ich w sposób bezpieczny.
-
 %package apidocs
 Summary:	Documentation for Python itsdangerous module
 Summary(pl.UTF-8):	Dokumentacja do moduły Pythona itsdangerous
@@ -80,17 +54,6 @@ Dokumentacja do moduły Pythona itsdangerous.
 %setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(pwd)/src \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
@@ -98,7 +61,6 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTHONPATH=$(pwd)/src \
 %{__python3} -m pytest tests
 %endif
-%endif
 
 %if %{with doc}
 PYTHONPATH=$(pwd)/src \
@@ -108,34 +70,16 @@ PYTHONPATH=$(pwd)/src \
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc CHANGES.rst LICENSE.rst README.rst
-%{py_sitescriptdir}/itsdangerous
-%{py_sitescriptdir}/itsdangerous-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE.rst README.rst
 %{py3_sitescriptdir}/itsdangerous
 %{py3_sitescriptdir}/itsdangerous-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-itsdangerous.git/commitdiff/132f4017d95c91f8f46db2e9e7389cc3069e566c



More information about the pld-cvs-commit mailing list