[packages/python3-invocations] - python-invocations.spec updated to 4.0.2 for python 3.9+

qboosh qboosh at pld-linux.org
Sun Dec 7 13:32:47 CET 2025


commit c120fc0a9e49e971aae24a2a6b41058db065712d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 7 13:32:58 2025 +0100

    - python-invocations.spec updated to 4.0.2 for python 3.9+

 invocations-requires.patch |  14 ++--
 python-invocations.spec    | 191 ---------------------------------------------
 python3-invocations.spec   | 114 +++++++++++++++++++++++++++
 3 files changed, 120 insertions(+), 199 deletions(-)
---
diff --git a/python-invocations.spec b/python-invocations.spec
deleted file mode 100644
index 5d4485a..0000000
--- a/python-invocations.spec
+++ /dev/null
@@ -1,191 +0,0 @@
-#
-# Conditional build:
-%bcond_without	doc	# Sphinx documentation
-%bcond_with	tests	# unit tests (some failures)
-%bcond_without	python2 # CPython 2.x module
-%bcond_with	python3 # CPython 3.x module (built from python3-invocations.spec)
-
-Summary:	Common/best-practice Invoke tasks and collections
-Summary(pl.UTF-8):	Popularne i będące dobrą praktyką zadania i kolekcje Invoke
-Name:		python-invocations
-# keep 2.x here for python2 support
-Version:	2.6.1
-Release:	1
-License:	BSD
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/invocations/
-Source0:	https://files.pythonhosted.org/packages/source/i/invocations/invocations-%{version}.tar.gz
-# Source0-md5:	7018b4b04ffa0ae1e8f15ee3d309eb30
-Patch0:		invocations-requires.patch
-URL:		https://pypi.org/project/invocations/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-blessings >= 1.6
-BuildRequires:	python-enum34 >= 1.1
-BuildRequires:	python-invoke >= 1.6
-BuildRequires:	python-pytest
-BuildRequires:	python-pytest-mock
-BuildRequires:	python-pytest-relaxed
-BuildRequires:	python-releases >= 1.6
-BuildRequires:	python-semantic_version >= 2.4
-BuildRequires:	python-tabulate >= 0.7.5
-BuildRequires:	python-tqdm >= 4.8.1
-BuildRequires:	python-twine >= 1.15
-BuildRequires:	python-wheel >= 0.24.0
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-blessings >= 1.6
-BuildRequires:	python3-invoke >= 1.7
-BuildRequires:	python3-pytest
-BuildRequires:	python3-pytest-mock
-BuildRequires:	python3-pytest-relaxed
-BuildRequires:	python3-releases >= 1.6
-BuildRequires:	python3-semantic_version >= 2.4
-BuildRequires:	python3-tabulate >= 0.7.5
-BuildRequires:	python3-tqdm >= 4.8.1
-BuildRequires:	python3-twine >= 1.15
-BuildRequires:	python3-wheel >= 0.24.0
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with doc}
-BuildRequires:	python-alabaster >= 0.7.12
-BuildRequires:	sphinx-pdg-2
-%endif
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Invocations is a collection of reusable Invoke <http://pyinvoke.org/>
-tasks, task collections and helper functions. Originally sourced from
-the Invoke project's own project-management tasks file, they are now
-highly configurable and used across a number of projects, with the
-intent to become a clearinghouse for implementing common best
-practices.
-
-%description -l pl.UTF-8
-Invocations to zbiór wielokrotnego użytku zadań, kolekcji zadań i
-funkcji pomocniczych dla Invoke <http://pyinvoke.org/>. Pierwotnie
-pochodzą z własnego pliku zadań zarządzania projektem Invoke, ale
-obecnie są konfigurowalne i używane w wielu projektach, z intencją
-stania się podstawą do implementacji według najlepszych praktyk.
-
-%package -n python3-invocations
-Summary:	Common/best-practice Invoke tasks and collections
-Summary(pl.UTF-8):	Popularne i będące dobrą praktyką zadania i kolekcje Invoke
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-invocations
-Invocations is a collection of reusable Invoke <http://pyinvoke.org/>
-tasks, task collections and helper functions. Originally sourced from
-the Invoke project's own project-management tasks file, they are now
-highly configurable and used across a number of projects, with the
-intent to become a clearinghouse for implementing common best
-practices.
-
-%description -n python3-invocations -l pl.UTF-8
-Invocations to zbiór wielokrotnego użytku zadań, kolekcji zadań i
-funkcji pomocniczych dla Invoke <http://pyinvoke.org/>. Pierwotnie
-pochodzą z własnego pliku zadań zarządzania projektem Invoke, ale
-obecnie są konfigurowalne i używane w wielu projektach, z intencją
-stania się podstawą do implementacji według najlepszych praktyk.
-
-%package apidocs
-Summary:	API documentation for Python invocations module
-Summary(pl.UTF-8):	Dokumentacja API modułu Pythona invocations
-Group:		Documentation
-
-%description apidocs
-API documentation for Python invocations module.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu Pythona invocations.
-
-%prep
-%setup -q -n invocations-%{version}
-%patch -P0 -p1
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-install -d bin-py2
-ln -sf %{_bindir}/inv-2 bin-py2/inv
-ln -sf %{_bindir}/invoke-2 bin-py2/invoke
-ln -sf %{_bindir}/pytest-2 bin-py2/pytest
-ln -sf %{_bindir}/sphinx-build-2 bin-py2/sphinx-build
-ln -sf %{_bindir}/twine-2 bin-py2/twine
-
-PATH=$(pwd)/bin-py2:$PATH \
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_mock.plugin,pytest_relaxed.plugin \
-PYTHONPATH=$(pwd) \
-TERM=xterm-256color \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_mock.plugin,pytest_relaxed.plugin \
-PYTHONPATH=$(pwd) \
-TERM=xterm-256color \
-%{__python3} -m pytest tests
-%endif
-%endif
-
-%if %{with doc}
-PYTHONPATH=$(pwd) \
-sphinx-build-2 -b html docs docs/_build/html
-%endif
-
-%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 LICENSE README.rst
-%{py_sitescriptdir}/invocations
-%{py_sitescriptdir}/invocations-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-invocations
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py3_sitescriptdir}/invocations
-%{py3_sitescriptdir}/invocations-%{version}-py*.egg-info
-%endif
-
-%if %{with doc}
-%files apidocs
-%defattr(644,root,root,755)
-%doc docs/_build/html/{_static,api,*.html,*.js}
-%endif
diff --git a/python3-invocations.spec b/python3-invocations.spec
new file mode 100644
index 0000000..e32cfc3
--- /dev/null
+++ b/python3-invocations.spec
@@ -0,0 +1,114 @@
+#
+# Conditional build:
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
+
+Summary:	Common/best-practice Invoke tasks and collections
+Summary(pl.UTF-8):	Popularne i będące dobrą praktyką zadania i kolekcje Invoke
+Name:		python3-invocations
+Version:	4.0.2
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/invocations/
+Source0:	https://files.pythonhosted.org/packages/source/i/invocations/invocations-%{version}.tar.gz
+# Source0-md5:	9f6b7dea208a96da8757f49dd3186227
+Patch0:		invocations-requires.patch
+URL:		https://pypi.org/project/invocations/
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.9
+BuildRequires:	python3-setuptools >= 1:77
+%if %{with tests}
+BuildRequires:	python3-blessings >= 1.6
+BuildRequires:	python3-build >= 1.3
+BuildRequires:	python3-icecream >= 2.1.3
+BuildRequires:	python3-invoke >= 1.7.2
+BuildRequires:	python3-pip >= 25.2
+BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-mock >= 3.2.0
+BuildRequires:	python3-pytest-relaxed >= 2
+BuildRequires:	python3-releases >= 2.0.1
+BuildRequires:	python3-semantic_version >= 2.4
+BuildRequires:	python3-tabulate >= 0.7.5
+BuildRequires:	python3-tqdm >= 4.8.1
+BuildRequires:	python3-twine >= 1.15
+BuildRequires:	python3-watchdog >= 1.0.2
+BuildRequires:	python3-wheel >= 0.24.0
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+%if %{with doc}
+BuildRequires:	python3-alabaster >= 0.7.12
+BuildRequires:	python3-releases >= 2.0.1
+BuildRequires:	sphinx-pdg-3
+%endif
+Requires:	python3-modules >= 1:3.9
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Invocations is a collection of reusable Invoke <http://pyinvoke.org/>
+tasks, task collections and helper functions. Originally sourced from
+the Invoke project's own project-management tasks file, they are now
+highly configurable and used across a number of projects, with the
+intent to become a clearinghouse for implementing common best
+practices.
+
+%description -l pl.UTF-8
+Invocations to zbiór wielokrotnego użytku zadań, kolekcji zadań i
+funkcji pomocniczych dla Invoke <http://pyinvoke.org/>. Pierwotnie
+pochodzą z własnego pliku zadań zarządzania projektem Invoke, ale
+obecnie są konfigurowalne i używane w wielu projektach, z intencją
+stania się podstawą do implementacji według najlepszych praktyk.
+
+%package apidocs
+Summary:	API documentation for Python invocations module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona invocations
+Group:		Documentation
+
+%description apidocs
+API documentation for Python invocations module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona invocations.
+
+%prep
+%setup -q -n invocations-%{version}
+%patch -P0 -p1
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_mock.plugin,pytest_relaxed.plugin \
+PYTHONPATH=$(pwd) \
+TERM=xterm-256color \
+%{__python3} -m pytest tests -k 'not component_state_enums_contain_human_readable_values'
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd) \
+sphinx-build-3 -b html docs docs/_build/html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/invocations
+%{py3_sitescriptdir}/invocations-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,api,*.html,*.js}
+%endif
diff --git a/invocations-requires.patch b/invocations-requires.patch
index a3082d2..177af76 100644
--- a/invocations-requires.patch
+++ b/invocations-requires.patch
@@ -1,13 +1,11 @@
---- invocations-2.6.1/setup.py.orig	2022-06-26 22:37:07.000000000 +0200
-+++ invocations-2.6.1/setup.py	2025-12-06 10:45:00.457255009 +0100
-@@ -19,8 +19,8 @@ requirements = [
-     "blessings>=1.6",
-     "enum34>=1.1,<2; python_version < '3'",
+--- invocations-4.0.2/pyproject.toml.orig	2025-08-04 17:52:00.000000000 +0200
++++ invocations-4.0.2/pyproject.toml	2025-12-06 21:27:46.381658797 +0100
+@@ -21,7 +21,7 @@ dependencies = [
+     # For envs that don't actually have pip - we use some of its tooling atm.
+     "pip~=25.2",
      "releases>=1.6",
 -    "semantic_version>=2.4,<2.7",
--    "tabulate==0.7.5",
 +    "semantic_version>=2.4",
-+    "tabulate>=0.7.5",
+     "tabulate>=0.7.5",
      "tqdm>=4.8.1",
      "twine>=1.15",
-     "wheel>=0.24.0",
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-invocations.git/commitdiff/c120fc0a9e49e971aae24a2a6b41058db065712d



More information about the pld-cvs-commit mailing list