[packages/python-invocations] - initial
qboosh
qboosh at pld-linux.org
Sun Dec 7 13:21:27 CET 2025
commit d5f82d7a788e344046f86065afdcb46100449c7f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 7 13:21:31 2025 +0100
- initial
invocations-requires.patch | 13 +++
python-invocations.spec | 191 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 204 insertions(+)
---
diff --git a/python-invocations.spec b/python-invocations.spec
new file mode 100644
index 0000000..5d4485a
--- /dev/null
+++ b/python-invocations.spec
@@ -0,0 +1,191 @@
+#
+# 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/invocations-requires.patch b/invocations-requires.patch
new file mode 100644
index 0000000..a3082d2
--- /dev/null
+++ b/invocations-requires.patch
@@ -0,0 +1,13 @@
+--- 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'",
+ "releases>=1.6",
+- "semantic_version>=2.4,<2.7",
+- "tabulate==0.7.5",
++ "semantic_version>=2.4",
++ "tabulate>=0.7.5",
+ "tqdm>=4.8.1",
+ "twine>=1.15",
+ "wheel>=0.24.0",
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-invocations.git/commitdiff/d5f82d7a788e344046f86065afdcb46100449c7f
More information about the pld-cvs-commit
mailing list