|
|
@ -1,9 +1,9 @@
|
|
|
|
%global pypi_name pytest-xdist
|
|
|
|
%global pypi_name pytest_xdist
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Name: python-pytest-xdist
|
|
|
|
Version: 2.5.0
|
|
|
|
Version: 3.6.1
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Summary: py.test plugin for distributed testing and loop-on-failing modes
|
|
|
|
Summary: pytest plugin for distributed testing and loop-on-failing modes
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/pytest-dev/pytest-xdist
|
|
|
|
URL: https://github.com/pytest-dev/pytest-xdist
|
|
|
@ -11,58 +11,112 @@ Source0: %{pypi_source}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: %{py3_dist execnet} >= 1.1
|
|
|
|
|
|
|
|
BuildRequires: %{py3_dist filelock}
|
|
|
|
|
|
|
|
BuildRequires: %{py3_dist psutil} >= 3.0.0
|
|
|
|
|
|
|
|
BuildRequires: %{py3_dist pytest} >= 6.0.0
|
|
|
|
|
|
|
|
BuildRequires: %{py3_dist pytest-forked}
|
|
|
|
|
|
|
|
BuildRequires: %{py3_dist py}
|
|
|
|
|
|
|
|
BuildRequires: %{py3_dist setuptools}
|
|
|
|
|
|
|
|
BuildRequires: %{py3_dist setuptools_scm}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
The pytest-xdist plugin extends py.test with some unique test execution modes:
|
|
|
|
The pytest-xdist plugin extends pytest with new test execution modes,
|
|
|
|
* test run parallelization: if you have multiple CPUs or hosts you can use
|
|
|
|
the most used being distributing tests across multiple CPUs
|
|
|
|
those for a combined test run. This allows to speed up development or to use
|
|
|
|
to speed up test execution:
|
|
|
|
special resources of remote machines.
|
|
|
|
|
|
|
|
* --boxed: run each test in a boxed subprocess to survive SEGFAULTS or
|
|
|
|
pytest -n auto
|
|
|
|
otherwise dying processes
|
|
|
|
|
|
|
|
* --looponfail: run your tests repeatedly in a subprocess. After each run
|
|
|
|
With this call, pytest will spawn a number of workers processes equal
|
|
|
|
py.test waits until a file in your project changes and then re-runs the
|
|
|
|
to the number of available CPUs, and distribute the tests randomly across them.}
|
|
|
|
previously failing tests. This is repeated until all tests pass after which
|
|
|
|
|
|
|
|
again a full run is performed.
|
|
|
|
|
|
|
|
* Multi-Platform coverage: you can specify different Python interpreters or
|
|
|
|
|
|
|
|
different platforms and run tests in parallel on all of them.}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
%package -n python3-pytest-xdist
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requires: %{py3_dist py}
|
|
|
|
%description -n python3-pytest-xdist %_description
|
|
|
|
%description -n python3-%{pypi_name} %_description
|
|
|
|
|
|
|
|
|
|
|
|
%pyproject_extras_subpkg -n python3-pytest-xdist psutil setproctitle
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
%autosetup -n %{pypi_name}-%{version} -p 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
|
|
|
%pyproject_buildrequires -t -x testing -x psutil -x setproctitle
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
%pyproject_save_files -l xdist
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
%tox
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
%files -n python3-pytest-xdist -f %{pyproject_files}
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%{python3_sitelib}/pytest_xdist*
|
|
|
|
|
|
|
|
%{python3_sitelib}/xdist/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Dec 17 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 3.6.1-4
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 06 2024 Scott Talbert <swt@techie.net> - 3.6.1-4
|
|
|
|
|
|
|
|
- Update License tag to use SPDX identifiers
|
|
|
|
|
|
|
|
- Modernize Python packaging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 3.6.1-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 01 2024 Scott Talbert <swt@techie.net> - 3.6.1-1
|
|
|
|
|
|
|
|
- Update to new upstream release 3.6.1 (#2276175)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 29 2023 Scott Talbert <swt@techie.net> - 3.5.0-1
|
|
|
|
|
|
|
|
- Update to new upstream release 3.5.0 (#2250980)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Nov 18 2023 Scott Talbert <swt@techie.net> - 3.4.0-1
|
|
|
|
|
|
|
|
- Update to new upstream release 3.4.0 (#2249319)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 3.3.1-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 19 2023 Scott Talbert <swt@techie.net> - 3.3.1-1
|
|
|
|
|
|
|
|
- Update to new upstream release 3.3.1 (#2203558)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Apr 26 2023 Scott Talbert <swt@techie.net> - 3.2.1-1
|
|
|
|
|
|
|
|
- Update to new upstream release 3.2.1 (#2177575)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 09 2023 Scott Talbert <swt@techie.net> - 3.2.0-1
|
|
|
|
|
|
|
|
- Update to new upstream release 3.2.0 (#2168367)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 18 2023 Scott Talbert <swt@techie.net> - 3.1.0-2
|
|
|
|
|
|
|
|
- Fix tests when PYTEST_XDIST_AUTO_NUM_WORKERS is set (#2161636)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Dec 04 2022 Scott Talbert <swt@techie.net> - 3.1.0-1
|
|
|
|
|
|
|
|
- Update to new upstream release 3.1.0 (#2150627)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 28 2022 Miro Hrončok <mhroncok@redhat.com> - 3.0.2-2
|
|
|
|
|
|
|
|
- Drop unused runtime requirement on on the python3-py package
|
|
|
|
|
|
|
|
- Package the pytest-xdist[psutil] and pytest-xdist[setproctitle] extras
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 26 2022 Scott Talbert <swt@techie.net> - 3.0.2-1
|
|
|
|
|
|
|
|
- Update to new upstream release 3.0.2 (#2137874)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 2.5.0-3
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-2
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|