2017-05-06 18:27:21 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-pytest-xdist
|
|
|
|
#
|
2024-06-07 13:57:26 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-05-06 18:27:21 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-08 09:39:21 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-05-06 18:27:21 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-04-24 11:13:34 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2017-05-06 18:27:21 +02:00
|
|
|
Name: python-pytest-xdist
|
2024-06-07 13:57:26 +02:00
|
|
|
Version: 3.6.1
|
2017-05-06 18:27:21 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Distributed testing and loop-on-failing for py.test
|
|
|
|
License: MIT
|
2020-01-06 13:54:09 +01:00
|
|
|
URL: https://github.com/pytest-dev/pytest-xdist
|
2024-06-07 13:57:26 +02:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pytest-xdist/pytest_xdist-%{version}.tar.gz
|
2023-03-27 09:30:01 +02:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2019-02-12 16:28:48 +01:00
|
|
|
BuildRequires: %{python_module execnet >= 1.1}
|
|
|
|
BuildRequires: %{python_module filelock}
|
2022-11-30 09:08:07 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-08-25 10:26:18 +02:00
|
|
|
BuildRequires: %{python_module psutil >= 3.0.0}
|
2022-11-30 09:08:07 +01:00
|
|
|
BuildRequires: %{python_module pytest >= 6.2.0}
|
|
|
|
BuildRequires: %{python_module setuptools_scm >= 6.2.3}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2017-05-06 18:27:21 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-execnet >= 1.1
|
2022-11-30 09:08:07 +01:00
|
|
|
Requires: python-pytest >= 6.2.0
|
2020-08-31 16:15:07 +02:00
|
|
|
Suggests: python-psutil >= 3.0.0
|
2017-05-06 18:27:21 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
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``: (not available on Windows) 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.
|
|
|
|
|
|
|
|
Before running tests remotely, ``py.test`` efficiently "rsyncs" your
|
|
|
|
program source code to the remote place. All test results
|
|
|
|
are reported back and displayed to your local terminal.
|
|
|
|
You may specify different Python versions and interpreters.
|
|
|
|
|
|
|
|
%prep
|
2024-06-07 13:57:26 +02:00
|
|
|
%autosetup -p1 -n pytest_xdist-%{version}
|
2018-11-08 09:39:21 +01:00
|
|
|
sed -i 's/\r//' README.rst
|
2017-05-06 18:27:21 +02:00
|
|
|
|
|
|
|
%build
|
2022-11-30 09:08:07 +01:00
|
|
|
%pyproject_wheel
|
2017-05-06 18:27:21 +02:00
|
|
|
|
|
|
|
%install
|
2022-11-30 09:08:07 +01:00
|
|
|
%pyproject_install
|
2020-05-13 11:10:14 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-05-06 18:27:21 +02:00
|
|
|
|
2019-02-12 16:28:48 +01:00
|
|
|
%check
|
2022-11-30 09:08:07 +01:00
|
|
|
%pytest
|
2019-02-12 16:28:48 +01:00
|
|
|
|
2017-05-06 18:27:21 +02:00
|
|
|
%files %{python_files}
|
2020-08-25 10:26:18 +02:00
|
|
|
%doc CHANGELOG.rst README.rst
|
2018-02-25 11:47:16 +01:00
|
|
|
%license LICENSE
|
2017-05-06 18:27:21 +02:00
|
|
|
%{python_sitelib}/xdist
|
2022-11-30 09:08:07 +01:00
|
|
|
%{python_sitelib}/pytest_xdist-%{version}*-info
|
2017-05-06 18:27:21 +02:00
|
|
|
|
|
|
|
%changelog
|