[packages/python3-pytest-xdist] - python-pytest-xdist.spec updated to 3.7.0 for python 3.9+
qboosh
qboosh at pld-linux.org
Sat Jun 28 20:56:55 CEST 2025
commit fc5aa980fce1b1823a5be51766abf0906047cacc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jun 28 20:58:18 2025 +0200
- python-pytest-xdist.spec updated to 3.7.0 for python 3.9+
python-pytest-xdist.spec | 128 ----------------------------------------------
python3-pytest-xdist.spec | 91 ++++++++++++++++++++++++++++++++
2 files changed, 91 insertions(+), 128 deletions(-)
---
diff --git a/python-pytest-xdist.spec b/python-pytest-xdist.spec
deleted file mode 100644
index 23ac2f6..0000000
--- a/python-pytest-xdist.spec
+++ /dev/null
@@ -1,128 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-%bcond_with tests # tests [sensitive to pytest warnings or other output changes, ptys needed]
-
-Summary: py.test distributed testing plugin
-Summary(pl.UTF-8): Wtyczka py.test do testów rozproszonych
-Name: python-pytest-xdist
-# keep 1.x here for python2 support
-Version: 1.34.0
-Release: 5
-License: MIT
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/pytest-xdist/
-Source0: https://files.pythonhosted.org/packages/source/p/pytest-xdist/pytest-xdist-%{version}.tar.gz
-# Source0-md5: 23bcf5f0c6f1f84edced37d04b721281
-URL: https://github.com/pytest-dev/pytest-xdist
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-BuildRequires: python-setuptools_scm
-%if %{with tests}
-BuildRequires: python-execnet >= 1.1
-BuildRequires: python-filelock
-BuildRequires: python-py >= 1.4.22
-BuildRequires: python-pytest >= 4.4.0
-BuildRequires: python-pytest-forked
-BuildRequires: python-six
-BuildConflicts: python-pytest-capturelog
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-setuptools
-BuildRequires: python3-setuptools_scm
-%if %{with tests}
-BuildRequires: python3-execnet >= 1.1
-BuildRequires: python3-filelock
-BuildRequires: python3-py >= 1.4.22
-BuildRequires: python3-pytest >= 4.4.0
-BuildRequires: python3-pytest-forked
-BuildRequires: python3-six
-BuildConflicts: python-pytest-capturelog
-%endif
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.7
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-The pytest-xdist plugin extends py.test with some unique test
-execution modes, like parallelization.
-
-%description -l pl.UTF-8
-Wtyczka pytest-xdist rozszerza py.test o kilka unikatowych
-trybów wykonywania testów, jak choćby zrównoleglenie.
-
-%package -n python3-pytest-xdist
-Summary: py.test distributed testing plugin
-Summary(pl.UTF-8): Wtyczka py.test do testów rozproszonych
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-pytest-xdist
-The pytest-xdist plugin extends py.test with some unique test
-execution modes, like parallelization.
-
-%description -n python3-pytest-xdist -l pl.UTF-8
-Wtyczka pytest-xdist rozszerza py.test o kilka unikatowych
-trybów wykonywania testów, jak choćby zrównoleglenie.
-
-%prep
-%setup -q -n pytest-xdist-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-# -p no:benchmark to avoid "PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks"
-PYTHONPATH=$(pwd) \
-%{__python} -m pytest -p no:benchmark testing
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd) \
-%{__python3} -m pytest -p no:benchmark testing
-%endif
-%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 CHANGELOG.rst ISSUES.txt LICENSE OVERVIEW.md README.rst example/boxed.txt
-%{py_sitescriptdir}/xdist
-%{py_sitescriptdir}/pytest_xdist-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-pytest-xdist
-%defattr(644,root,root,755)
-%doc CHANGELOG.rst ISSUES.txt LICENSE OVERVIEW.md README.rst example/boxed.txt
-%{py3_sitescriptdir}/xdist
-%{py3_sitescriptdir}/pytest_xdist-%{version}-py*.egg-info
-%endif
diff --git a/python3-pytest-xdist.spec b/python3-pytest-xdist.spec
new file mode 100644
index 0000000..53d2b9f
--- /dev/null
+++ b/python3-pytest-xdist.spec
@@ -0,0 +1,91 @@
+#
+# Conditional build:
+%bcond_without doc # Sphinx documentation
+%bcond_with tests # tests [ptys needed]
+
+Summary: py.test distributed testing plugin
+Summary(pl.UTF-8): Wtyczka py.test do testów rozproszonych
+Name: python3-pytest-xdist
+Version: 3.7.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-xdist/
+Source0: https://files.pythonhosted.org/packages/source/p/pytest-xdist/pytest_xdist-%{version}.tar.gz
+# Source0-md5: 94bf52c692963572d85150770b6d234c
+URL: https://github.com/pytest-dev/pytest-xdist
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.9
+BuildRequires: python3-setuptools >= 1:77.0
+BuildRequires: python3-setuptools_scm >= 6.2.3
+%if %{with tests}
+BuildRequires: python3-execnet >= 2.1
+BuildRequires: python3-filelock
+BuildRequires: python3-pytest >= 7.0.0
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+%if %{with doc}
+BuildRequires: python3-sphinx_rtd_theme
+BuildRequires: sphinx-pdg-3
+%endif
+Requires: python3-modules >= 1:3.9
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The pytest-xdist plugin extends py.test with some unique test
+execution modes, like parallelization.
+
+%description -l pl.UTF-8
+Wtyczka pytest-xdist rozszerza py.test o kilka unikatowych
+trybów wykonywania testów, jak choćby zrównoleglenie.
+
+%package apidocs
+Summary: API documentation for Python pytest-xdist module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona pytest-xdist
+Group: Documentation
+
+%description apidocs
+API documentation for Python pytest-xdist module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona pytest-xdist.
+
+%prep
+%setup -q -n pytest_xdist-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=xdist.plugin,xdist.looponfail \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest testing
+%endif
+
+%if %{with doc}
+sphinx-build -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 CHANGELOG.rst LICENSE README.rst example/boxed.txt
+%{py3_sitescriptdir}/xdist
+%{py3_sitescriptdir}/pytest_xdist-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,*.html,*.js}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-xdist.git/commitdiff/fc5aa980fce1b1823a5be51766abf0906047cacc
More information about the pld-cvs-commit
mailing list