Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 2888bac4f4 | |||
| 3ee55ecbee | |||
| 55b23ef152 |
BIN
pytest_xdist-3.6.1.tar.gz
LFS
BIN
pytest_xdist-3.6.1.tar.gz
LFS
Binary file not shown.
3
pytest_xdist-3.8.0.tar.gz
Normal file
3
pytest_xdist-3.8.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7e578125ec9bc6050861aa93f2d59f1d8d085595d6551c2c90b6f4fad8d3a9f1
|
||||||
|
size 88069
|
||||||
@@ -1,3 +1,43 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 26 01:32:36 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch support-pytest-9.patch:
|
||||||
|
* Support Pytest 9 changes.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 17 19:35:11 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 3.8.0:
|
||||||
|
* #1083: Add --no-loadscope-reorder and --loadscope-reorder
|
||||||
|
option to control whether to automatically reorder tests in
|
||||||
|
loadscope for tests where relative ordering matters. This
|
||||||
|
only applies when using loadscope. For example, [test_file_1,
|
||||||
|
test_file_2, ..., test_file_n] are given as input test files,
|
||||||
|
if --no-loadscope-reorder is used, for either worker, the
|
||||||
|
test_file_a will be executed before test_file_b only if a <
|
||||||
|
b. The default behavior is to reorder the tests to maximize
|
||||||
|
the number of tests that can be executed in parallel.
|
||||||
|
* #1142: Added support for Python 3.13.
|
||||||
|
* #1144: The internal steal command is now atomic - it
|
||||||
|
unschedules either all requested tests or none. This is a
|
||||||
|
prerequisite for group/scope support in the worksteal
|
||||||
|
scheduler, so test groups won't be broken up incorrectly.
|
||||||
|
* #1170: Add the --px arg to create proxy gateways. Proxy
|
||||||
|
gateways are passed to additional gateways using the via
|
||||||
|
keyword. They can serve as a way to run multiple workers on
|
||||||
|
remote machines.
|
||||||
|
* #1200: Now multiple xdist_group markers are considered when
|
||||||
|
assigning tests to groups (order does not matter).
|
||||||
|
Previously, only the last marker would assign a test to a
|
||||||
|
group, but now if a test has multiple xdist_group marks
|
||||||
|
applied (for example via parametrization or via fixtures),
|
||||||
|
they are merged to make a new group.
|
||||||
|
* #1162: Dropped support for EOL Python 3.8.
|
||||||
|
* #1092: Update an error message to better indicate where users
|
||||||
|
should go for more information.
|
||||||
|
* #1190: Switched to using a SPDX license identifier introduced
|
||||||
|
in PEP 639.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 6 09:35:35 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
Thu Jun 6 09:35:35 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytest-xdist
|
# spec file for package python-pytest-xdist
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,12 +18,14 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pytest-xdist
|
Name: python-pytest-xdist
|
||||||
Version: 3.6.1
|
Version: 3.8.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Distributed testing and loop-on-failing for py.test
|
Summary: Distributed testing and loop-on-failing for py.test
|
||||||
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/pytest-xdist/pytest_xdist-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/pytest-xdist/pytest_xdist-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM gh#pytest-dev/pytest-xdist#1266 & gh#pytest-dev/pytest-xdist#1272
|
||||||
|
Patch0: support-pytest-9.patch
|
||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
BuildRequires: %{python_module execnet >= 1.1}
|
BuildRequires: %{python_module execnet >= 1.1}
|
||||||
BuildRequires: %{python_module filelock}
|
BuildRequires: %{python_module filelock}
|
||||||
@@ -83,6 +85,6 @@ sed -i 's/\r//' README.rst
|
|||||||
%doc CHANGELOG.rst README.rst
|
%doc CHANGELOG.rst README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/xdist
|
%{python_sitelib}/xdist
|
||||||
%{python_sitelib}/pytest_xdist-%{version}*-info
|
%{python_sitelib}/pytest_xdist-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
83
support-pytest-9.patch
Normal file
83
support-pytest-9.patch
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
From 9c0a03f70b7be0a9a7d4b7d3e1692b77027f323e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Bruno Oliveira <nicoddemus@gmail.com>
|
||||||
|
Date: Sat, 1 Nov 2025 20:10:43 -0300
|
||||||
|
Subject: [PATCH 1/2] Update build-and-inspect-python-package to v2.14
|
||||||
|
|
||||||
|
v2.13 was breaking in a few CI builds.
|
||||||
|
---
|
||||||
|
.github/workflows/deploy.yml | 2 +-
|
||||||
|
.github/workflows/test.yml | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
Index: pytest_xdist-3.8.0/.github/workflows/deploy.yml
|
||||||
|
===================================================================
|
||||||
|
--- pytest_xdist-3.8.0.orig/.github/workflows/deploy.yml
|
||||||
|
+++ pytest_xdist-3.8.0/.github/workflows/deploy.yml
|
||||||
|
@@ -19,7 +19,7 @@ jobs:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build and Check Package
|
||||||
|
- uses: hynek/build-and-inspect-python-package@v2.13
|
||||||
|
+ uses: hynek/build-and-inspect-python-package@v2.14
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
needs: package
|
||||||
|
Index: pytest_xdist-3.8.0/.github/workflows/test.yml
|
||||||
|
===================================================================
|
||||||
|
--- pytest_xdist-3.8.0.orig/.github/workflows/test.yml
|
||||||
|
+++ pytest_xdist-3.8.0/.github/workflows/test.yml
|
||||||
|
@@ -22,7 +22,7 @@ jobs:
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Build and Check Package
|
||||||
|
- uses: hynek/build-and-inspect-python-package@v2.13
|
||||||
|
+ uses: hynek/build-and-inspect-python-package@v2.14
|
||||||
|
|
||||||
|
test:
|
||||||
|
|
||||||
|
Index: pytest_xdist-3.8.0/testing/test_newhooks.py
|
||||||
|
===================================================================
|
||||||
|
--- pytest_xdist-3.8.0.orig/testing/test_newhooks.py
|
||||||
|
+++ pytest_xdist-3.8.0/testing/test_newhooks.py
|
||||||
|
@@ -115,7 +115,7 @@ class TestCrashItem:
|
||||||
|
res.stdout.fnmatch_lines_random(["*HOOK: pytest_handlecrashitem"])
|
||||||
|
res.stdout.fnmatch_lines(
|
||||||
|
[
|
||||||
|
- "FAILED test_handlecrashitem_one.py::test_b",
|
||||||
|
- "FAILED test_handlecrashitem_one.py::test_b",
|
||||||
|
+ "FAILED test_handlecrashitem_one.py::test_b*",
|
||||||
|
+ "FAILED test_handlecrashitem_one.py::test_b*",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
Index: pytest_xdist-3.8.0/testing/test_remote.py
|
||||||
|
===================================================================
|
||||||
|
--- pytest_xdist-3.8.0.orig/testing/test_remote.py
|
||||||
|
+++ pytest_xdist-3.8.0/testing/test_remote.py
|
||||||
|
@@ -378,6 +378,11 @@ def test_remote_mainargv(pytester: pytes
|
||||||
|
|
||||||
|
|
||||||
|
def test_remote_usage_prog(pytester: pytest.Pytester) -> None:
|
||||||
|
+ if pytest.version_tuple[:2] >= (9, 0):
|
||||||
|
+ get_optparser_expr = "get_config_parser.optparser"
|
||||||
|
+ else:
|
||||||
|
+ get_optparser_expr = "get_config_parser._getparser()"
|
||||||
|
+
|
||||||
|
pytester.makeconftest(
|
||||||
|
"""
|
||||||
|
import pytest
|
||||||
|
@@ -394,12 +399,12 @@ def test_remote_usage_prog(pytester: pyt
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
pytester.makepyfile(
|
||||||
|
- """
|
||||||
|
+ f"""
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def test(get_config_parser, request):
|
||||||
|
- get_config_parser._getparser().error("my_usage_error")
|
||||||
|
- """
|
||||||
|
+ {get_optparser_expr}.error("my_usage_error")
|
||||||
|
+ """
|
||||||
|
)
|
||||||
|
|
||||||
|
result = pytester.runpytest_subprocess("-n1")
|
||||||
Reference in New Issue
Block a user