diff --git a/pytest-xdist-1.24.1.tar.gz b/pytest-xdist-1.24.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..82066890ac877f0113419c82e0829828b82de4a5 Binary files /dev/null and b/pytest-xdist-1.24.1.tar.gz differ diff --git a/python-pytest-xdist.spec b/python-pytest-xdist.spec index 4aa4952320b7cc432b96ca5d7857c766b53142c0..5a48ba432d7a286feca9f27b0a649d99106c9e9d 100644 --- a/python-pytest-xdist.spec +++ b/python-pytest-xdist.spec @@ -1,77 +1,69 @@ -%global _empty_manifest_terminate_build 0 -Name: python-pytest-xdist -Version: 2.3.0 -Release: 1 -Summary: pytest xdist plugin for distributed testing and loop-on-failing modes -License: MIT -URL: https://github.com/pytest-dev/pytest-xdist -Source0: https://files.pythonhosted.org/packages/d8/2a/d6333010844cd3931a57d17ae1203d2404fee689704c3f9a665c31d7faae/pytest-xdist-2.3.0.tar.gz -BuildArch: noarch +%global pypi_name pytest-xdist +%global desc The pytest-xdist plugin extends py.test with some unique test execution modes:\ +* test run parallelization: if you have multiple CPUs or hosts you can use\ + those for a combined test run. This allows to speed up development or to use\ + special resources of remote machines.\ +* --boxed: run each test in a boxed subprocess to survive SEGFAULTS or\ + otherwise dying processes\ +* --looponfail: run your tests repeatedly in a subprocess. After each run\ + py.test waits until a file in your project changes and then re-runs the\ + 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. +Name: python-%{pypi_name} +Epoch: 1 +Version: 1.24.1 +Release: 1 +Summary: py.test plugin for distributed testing and loop-on-failing modes + +License: MIT +URL: https://github.com/pytest-dev/pytest-xdist +Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-execnet +BuildRequires: python3-filelock +BuildRequires: python3-pytest +BuildRequires: python3-pytest-forked +BuildRequires: python3-py BuildRequires: python3-setuptools_scm -Requires: python3-execnet -Requires: python3-pytest -Requires: python3-pytest-forked -Requires: python3-psutil -Requires: python3-filelock %description -pytest xdist plugin for distributed testing and loop-on-failing modes. +%{desc} -%package -n python3-pytest-xdist -Summary: pytest xdist plugin for distributed testing and loop-on-failing modes -Provides: python-pytest-xdist -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%description -n python3-pytest-xdist -pytest xdist plugin for distributed testing and loop-on-failing modes. +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} -%package help -Summary: Development documents and examples for pytest-xdist -Provides: python3-pytest-xdist-doc -%description help -pytest xdist plugin for distributed testing and loop-on-failing modes. +Requires: python3-execnet +Requires: python3-pytest +Requires: python3-pytest-forked +Requires: python3-py +%description -n python3-%{pypi_name} +%{desc} %prep -%autosetup -n pytest-xdist-2.3.0 +%autosetup -n %{pypi_name}-%{version} %build %py3_build %install %py3_install -install -d -m755 %{buildroot}/%{_pkgdocdir} -if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi -if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi -if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi -if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . -%files -n python3-pytest-xdist -f filelist.lst -%dir %{python3_sitelib}/* +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{python3_version} testing + -%files help -f doclist.lst -%{_docdir}/* +%files -n python3-%{pypi_name} +%doc OVERVIEW.md README.rst +%license LICENSE +%{python3_sitelib}/pytest_xdist* +%{python3_sitelib}/xdist/ %changelog -* Tue Aug 17 2021 Python_Bot - 2.3.0-1 -- Package Spec generated +* Wed Aug 18 2021 Python_Bot - 1:1.24.1-1 +- Init package