[packages/python3-testfixtures] Up to 8.3.0
arekm
arekm at pld-linux.org
Sun May 4 15:06:27 CEST 2025
commit e21eb18c07e5201a0c6ae983cde704bdb8f77aee
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun May 4 14:23:45 2025 +0200
Up to 8.3.0
...-testfixtures.spec => python3-testfixtures.spec | 75 ++--------------------
1 file changed, 5 insertions(+), 70 deletions(-)
---
diff --git a/python-testfixtures.spec b/python3-testfixtures.spec
similarity index 55%
rename from python-testfixtures.spec
rename to python3-testfixtures.spec
index c7676d9..fb880b6 100644
--- a/python-testfixtures.spec
+++ b/python3-testfixtures.spec
@@ -2,37 +2,18 @@
# 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
Summary: Collection of helpers and mock objects for unit tests and doc tests
Summary(pl.UTF-8): Zbiór funkcji pomocniczych i obiektów atrap do testów jednostkowych i dokumentacji
-Name: python-testfixtures
-# keep 6.x here for python2 support
-Version: 6.18.5
-Release: 3
+Name: python3-testfixtures
+Version: 8.3.0
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/testfixtures/
Source0: https://files.pythonhosted.org/packages/source/t/testfixtures/testfixtures-%{version}.tar.gz
-# Source0-md5: e89cfe8325778a8c519a6bf63ae3fe83
+# Source0-md5: 2fb494de4ba08d85e7b68f90cb296698
URL: https://pypi.org/project/testfixtures/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-django < 2
-BuildRequires: python-mock
-BuildRequires: python-pytest >= 3.6
-BuildRequires: python-pytest-cov
-BuildRequires: python-pytest-django
-BuildRequires: python-sybil
-BuildRequires: python-twisted
-BuildRequires: python-zope.component
-BuildRequires: python-zope.interface
-%endif
-%endif
-%if %{with python3}
BuildRequires: python3-modules >= 1:3.6
BuildRequires: python3-setuptools
%if %{with tests}
@@ -45,13 +26,12 @@ BuildRequires: python3-twisted
BuildRequires: python3-zope.component
BuildRequires: python3-zope.interface
%endif
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with doc}
BuildRequires: sphinx-pdg
%endif
-Requires: python-modules >= 1:2.7
+Requires: python3-modules >= 1:3.6
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -63,20 +43,6 @@ useful when writing automated tests in Python.
testfixtures to zbiór funkcji pomocniczych i obiektów atrap,
przydatnych przy pisaniu automatycznych testów w Pythonie.
-%package -n python3-testfixtures
-Summary: Collection of helpers and mock objects for unit tests and doc tests
-Summary(pl.UTF-8): Zbiór funkcji pomocniczych i obiektów atrap do testów jednostkowych i dokumentacji
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.6
-
-%description -n python3-testfixtures
-testfixtures is a collection of helpers and mock objects that are
-useful when writing automated tests in Python.
-
-%description -n python3-testfixtures -l pl.UTF-8
-testfixtures to zbiór funkcji pomocniczych i obiektów atrap,
-przydatnych przy pisaniu automatycznych testów w Pythonie.
-
%package apidocs
Summary: API documentation for Python testfixtures module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona testfixtures
@@ -92,18 +58,6 @@ Dokumentacja API modułu Pythona testfixtures.
%setup -q -n testfixtures-%{version}
%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-# django test fails with "no such table"
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_django.plugin \
-%{__python} -m pytest testfixtures/tests -k 'not test_django'
-%endif
-%endif
-
-%if %{with python3}
%py3_build
%if %{with tests}
@@ -111,7 +65,6 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTEST_PLUGINS=pytest_django.plugin \
%{__python3} -m pytest testfixtures/tests
%endif
-%endif
%if %{with doc}
PYTHONPATH=$(pwd) \
@@ -121,34 +74,16 @@ PYTHONPATH=$(pwd) \
%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 CHANGELOG.rst LICENSE.txt README.rst
-%{py_sitescriptdir}/testfixtures
-%{py_sitescriptdir}/testfixtures-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-testfixtures
-%defattr(644,root,root,755)
-%doc CHANGELOG.rst LICENSE.txt README.rst
%{py3_sitescriptdir}/testfixtures
%{py3_sitescriptdir}/testfixtures-%{version}-py*.egg-info
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-testfixtures.git/commitdiff/e21eb18c07e5201a0c6ae983cde704bdb8f77aee
More information about the pld-cvs-commit
mailing list