[packages/python3-incremental] up to 24.7.2

atler atler at pld-linux.org
Tue Jun 17 20:20:41 CEST 2025


commit 679fc37eef069a0a82b9aad16e4c4321a147e60a
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Jun 17 20:05:58 2025 +0200

    up to 24.7.2

 ...on-incremental.spec => python3-incremental.spec | 77 +++++-----------------
 1 file changed, 15 insertions(+), 62 deletions(-)
---
diff --git a/python-incremental.spec b/python3-incremental.spec
similarity index 54%
rename from python-incremental.spec
rename to python3-incremental.spec
index bee883d..7b5de5d 100644
--- a/python-incremental.spec
+++ b/python3-incremental.spec
@@ -3,42 +3,35 @@
 # Conditional build:
 %bcond_with	doc	# API documentation (pydoctor based)
 %bcond_with	tests	# unit tests (require Twisted)
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 Summary:	Library that versions Python projects
 Summary(pl.UTF-8):	Biblioteka wersjonująca projekty w Pythonie
-Name:		python-incremental
-Version:	22.10.0
-Release:	3
+Name:		python3-incremental
+Version:	24.7.2
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/incremental/
 Source0:	https://files.pythonhosted.org/packages/source/i/incremental/incremental-%{version}.tar.gz
-# Source0-md5:	9fffa2490ca649550c79a78e85ef2eef
+# Source0-md5:	d946fb1a369c77693b4dab8ac9b13596
 URL:		https://pypi.org/project/incremental/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-click >= 6.0
-BuildRequires:	python-twisted >= 16.4.0
-%endif
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.8
+BuildRequires:	python3-setuptools >= 1:61.0
+%if %{_ver_lt %py3_ver 3.11}
+BuildRequires:	python3-tomli
 %endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
-BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-click >= 6.0
 BuildRequires:	python3-twisted >= 16.4.0
 %endif
-%endif
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	rpmbuild(macros) >= 2.044
 %if %{with doc}
 BuildRequires:	pydoctor
 %endif
-Requires:	python-modules >= 1:2.7
+Requires:	python3-modules >= 1:3.8
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -48,18 +41,6 @@ Incremental is a small library that versions your Python projects.
 %description -l pl.UTF-8
 Incremental to mała biblioteka do wersjonowania projektów w Pythonie.
 
-%package -n python3-incremental
-Summary:	Library that versions Python projects
-Summary(pl.UTF-8):	Biblioteka wersjonująca projekty w Pythonie
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-incremental
-Incremental is a small library that versions your Python projects.
-
-%description -n python3-incremental -l pl.UTF-8
-Incremental to mała biblioteka do wersjonowania projektów w Pythonie.
-
 %package apidocs
 Summary:	API documentation for Python incremental module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona incremental
@@ -75,21 +56,11 @@ Dokumentacja API modułu Pythona incremental.
 %setup -q -n incremental-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-trial-2 incremental
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
+%py3_build_pyproject
 
 %if %{with tests}
 trial-3 incremental
 %endif
-%endif
 
 %if %{with doc}
 pydoctor -q --project-name incremental src/incremental
@@ -98,34 +69,16 @@ pydoctor -q --project-name incremental src/incremental
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
+%py3_install_pyproject
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE NEWS.rst README.rst
-%{py_sitescriptdir}/incremental
-%{py_sitescriptdir}/incremental-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
 %files -n python3-incremental
 %defattr(644,root,root,755)
 %doc LICENSE NEWS.rst README.rst
 %{py3_sitescriptdir}/incremental
-%{py3_sitescriptdir}/incremental-%{version}-py*.egg-info
-%endif
+%{py3_sitescriptdir}/incremental-%{version}.dist-info
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-incremental.git/commitdiff/679fc37eef069a0a82b9aad16e4c4321a147e60a



More information about the pld-cvs-commit mailing list