Modernize Python packaging; BR setuptools

epel9
Scott Talbert 5 years ago
parent 64dce590e9
commit d2462ef9c1

@ -1,47 +1,47 @@
%global pypi_name pytest-xdist %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} Name: python-%{pypi_name}
Version: 1.32.0 Version: 1.32.0
Release: 3%{?dist} Release: 4%{?dist}
Summary: py.test plugin for distributed testing and loop-on-failing modes Summary: py.test 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
Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz Source0: %{pypi_source}
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-execnet BuildRequires: %{py3_dist execnet} >= 1.1
BuildRequires: python3-filelock BuildRequires: %{py3_dist filelock}
BuildRequires: python3-pytest BuildRequires: %{py3_dist pytest} >= 4.4.0
BuildRequires: python3-pytest-forked BuildRequires: %{py3_dist pytest-forked}
BuildRequires: python3-py BuildRequires: %{py3_dist py}
BuildRequires: python3-setuptools_scm BuildRequires: %{py3_dist setuptools}
BuildRequires: %{py3_dist setuptools_scm}
%description BuildRequires: %{py3_dist six}
%{desc}
%global _description %{expand:
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.}
%description %_description
%package -n python3-%{pypi_name} %package -n python3-%{pypi_name}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}} %{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3-execnet Requires: %{py3_dist py}
Requires: python3-pytest-forked %description -n python3-%{pypi_name} %_description
Requires: python3-py
%description -n python3-%{pypi_name}
%{desc}
%prep %prep
%autosetup -n %{pypi_name}-%{version} %autosetup -n %{pypi_name}-%{version}
@ -53,7 +53,7 @@ Requires: python3-py
%py3_install %py3_install
%check %check
PYTHONPATH=%{buildroot}%{python3_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{python3_version} testing %pytest
%files -n python3-%{pypi_name} %files -n python3-%{pypi_name}
@ -63,6 +63,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{py
%{python3_sitelib}/xdist/ %{python3_sitelib}/xdist/
%changelog %changelog
* Thu Jun 25 2020 Scott Talbert <swt@techie.net> - 1.32.0-4
- Modernize Python packaging; BR setuptools
* Fri May 29 2020 Charalampos Stratakis <cstratak@redhat.com> - 1.32.0-3 * Fri May 29 2020 Charalampos Stratakis <cstratak@redhat.com> - 1.32.0-3
- Drop manual requires on python3-pytest to support usage with pytest4 compat package - Drop manual requires on python3-pytest to support usage with pytest4 compat package

Loading…
Cancel
Save