[packages/python3-testscenarios] - python-testscenarios.spec updated to 0.6.2 for python 3.10+
qboosh
qboosh at pld-linux.org
Sun May 31 20:09:10 CEST 2026
commit 06dbd5c3ef457cf6c803ca09bdbcdc6d549f9961
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun May 31 20:09:20 2026 +0200
- python-testscenarios.spec updated to 0.6.2 for python 3.10+
python-testscenarios.spec | 126 ---------------------------------------------
python3-testscenarios.spec | 68 ++++++++++++++++++++++++
2 files changed, 68 insertions(+), 126 deletions(-)
---
diff --git a/python-testscenarios.spec b/python-testscenarios.spec
deleted file mode 100644
index 345ee69..0000000
--- a/python-testscenarios.spec
+++ /dev/null
@@ -1,126 +0,0 @@
-#
-# Conditional build:
-%bcond_without tests # make check
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: Testscenarios - pyunit extension for dependency injection
-Summary(pl.UTF-8): Testscenarios - rozszerzenie pyunit do wstrzykiwania zależności
-Name: python-testscenarios
-Version: 0.5.0
-Release: 9
-License: Apache v2.0 or BSD
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/testscenarios/
-Source0: https://files.pythonhosted.org/packages/source/t/testscenarios/testscenarios-%{version}.tar.gz
-# Source0-md5: 859073d9e7b049aee2e6704c51f6001a
-URL: https://launchpad.net/testscenarios
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.6
-BuildRequires: python-pbr >= 0.11
-BuildRequires: python-setuptools
-BuildRequires: python-testtools
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
-BuildRequires: python3-pbr >= 0.11
-BuildRequires: python3-setuptools
-BuildRequires: python3-testtools
-%endif
-Requires: python-modules >= 1:2.6
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-testscenarios provides clean dependency injection for python unittest
-style tests. This can be used for interface testing (testing many
-implementations via a single test suite) or for classic dependency
-injection (provide tests with dependencies externally to the test code
-itself, allowing easy testing in different situations).
-
-%description -l pl.UTF-8
-Moduł testscenarios zapewnia czyste wstrzykiwanie zależności dla
-testów pythonowych w stylu unittest. Może to być używane do testowania
-interfejsów (testowania wielu implementacji poprzez prosty zestaw
-testów) albo klasycznego wstrzykiwania zależności (dostarczania testów
-z zależnościami zewnętrznymi w stosunku do kodu testującego, co
-pozwala na łatwiejsze testowanie w różnych sytuacjach).
-
-%package -n python3-testscenarios
-Summary: Testscenarios - pyunit extension for dependency injection
-Summary(pl.UTF-8): Testscenarios - rozszerzenie pyunit do wstrzykiwania zależności
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-testscenarios
-testscenarios provides clean dependency injection for python unittest
-style tests. This can be used for interface testing (testing many
-implementations via a single test suite) or for classic dependency
-injection (provide tests with dependencies externally to the test code
-itself, allowing easy testing in different situations).
-
-%description -n python3-testscenarios -l pl.UTF-8
-Moduł testscenarios zapewnia czyste wstrzykiwanie zależności dla
-testów pythonowych w stylu unittest. Może to być używane do testowania
-interfejsów (testowania wielu implementacji poprzez prosty zestaw
-testów) albo klasycznego wstrzykiwania zależności (dostarczania testów
-z zależnościami zewnętrznymi w stosunku do kodu testującego, co
-pozwala na łatwiejsze testowanie w różnych sytuacjach).
-
-%prep
-%setup -q -n testscenarios-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__make} check \
- PYTHON=%{__python}
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-%{__make} check \
- PYTHON=%{__python3}
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/testscenarios/tests
-%endif
-
-%if %{with python3}
-%py3_install
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/testscenarios/tests
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc AUTHORS BSD COPYING ChangeLog GOALS NEWS README
-%{py_sitescriptdir}/testscenarios
-%{py_sitescriptdir}/testscenarios-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-testscenarios
-%defattr(644,root,root,755)
-%doc AUTHORS BSD COPYING ChangeLog GOALS NEWS README
-%{py3_sitescriptdir}/testscenarios
-%{py3_sitescriptdir}/testscenarios-%{version}-py*.egg-info
-%endif
diff --git a/python3-testscenarios.spec b/python3-testscenarios.spec
new file mode 100644
index 0000000..f4bcd6a
--- /dev/null
+++ b/python3-testscenarios.spec
@@ -0,0 +1,68 @@
+#
+# Conditional build:
+%bcond_with tests # unit tests (not in sdist)
+
+Summary: Testscenarios - pyunit extension for dependency injection
+Summary(pl.UTF-8): Testscenarios - rozszerzenie pyunit do wstrzykiwania zależności
+Name: python3-testscenarios
+Version: 0.6.2
+Release: 1
+License: Apache v2.0 or BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/testscenarios/
+Source0: https://files.pythonhosted.org/packages/source/t/testscenarios/testscenarios-%{version}.tar.gz
+# Source0-md5: db0045ff023a3f2742034cdbacc108eb
+URL: https://launchpad.net/testscenarios
+BuildRequires: python3-build
+BuildRequires: python3-hatch-vcs
+BuildRequires: python3-hatchling
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.10
+%if %{with tests}
+BuildRequires: python3-testtools >= 2.8.7
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.10
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+testscenarios provides clean dependency injection for python unittest
+style tests. This can be used for interface testing (testing many
+implementations via a single test suite) or for classic dependency
+injection (provide tests with dependencies externally to the test code
+itself, allowing easy testing in different situations).
+
+%description -l pl.UTF-8
+Moduł testscenarios zapewnia czyste wstrzykiwanie zależności dla
+testów pythonowych w stylu unittest. Może to być używane do testowania
+interfejsów (testowania wielu implementacji poprzez prosty zestaw
+testów) albo klasycznego wstrzykiwania zależności (dostarczania testów
+z zależnościami zewnętrznymi w stosunku do kodu testującego, co
+pozwala na łatwiejsze testowanie w różnych sytuacjach).
+
+%prep
+%setup -q -n testscenarios-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+%{__make} check \
+ PYTHON=%{__python3}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc BSD COPYING GOALS NEWS README.rst
+%{py3_sitescriptdir}/testscenarios
+%{py3_sitescriptdir}/testscenarios-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-testscenarios.git/commitdiff/06dbd5c3ef457cf6c803ca09bdbcdc6d549f9961
More information about the pld-cvs-commit
mailing list