diff --git a/fix-tests-pytest-73.patch b/fix-tests-pytest-73.patch deleted file mode 100644 index a384bdd..0000000 --- a/fix-tests-pytest-73.patch +++ /dev/null @@ -1,91 +0,0 @@ -From d663e203db254f7e310e4de0e4622e5596860698 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= -Date: Wed, 12 Apr 2023 09:21:26 +0200 -Subject: [PATCH] Make the tests work with pytest 7.3.0 (#540) - -Co-authored-by: Adam Johnson ---- - requirements/py310.txt | 10 +++------- - requirements/py311.txt | 10 +++------- - requirements/py37.txt | 10 +++------- - requirements/py38.txt | 10 +++------- - requirements/py39.txt | 10 +++------- - tests/test_pytest_randomly.py | 16 ++++++++-------- - 6 files changed, 23 insertions(+), 43 deletions(-) - -Index: pytest-randomly-3.12.0/tests/test_pytest_randomly.py -=================================================================== ---- pytest-randomly-3.12.0.orig/tests/test_pytest_randomly.py -+++ pytest-randomly-3.12.0/tests/test_pytest_randomly.py -@@ -253,7 +253,7 @@ def test_files_reordered(ourtestdir): - out = ourtestdir.runpytest(*args) - - out.assert_outcomes(passed=4, failed=0) -- assert out.outlines[8:12] == [ -+ assert out.outlines[9:13] == [ - "test_b.py::test_it PASSED", - "test_a.py::test_it PASSED", - "test_d.py::test_it PASSED", -@@ -273,7 +273,7 @@ def test_files_reordered_when_seed_not_r - out = ourtestdir.runpytest(*args) - - out.assert_outcomes(passed=4, failed=0) -- assert out.outlines[8:12] == [ -+ assert out.outlines[9:13] == [ - "test_b.py::test_it PASSED", - "test_a.py::test_it PASSED", - "test_d.py::test_it PASSED", -@@ -312,7 +312,7 @@ def test_classes_reordered(ourtestdir): - out = ourtestdir.runpytest(*args) - - out.assert_outcomes(passed=4, failed=0) -- assert out.outlines[8:12] == [ -+ assert out.outlines[9:13] == [ - "test_one.py::D::test_d PASSED", - "test_one.py::B::test_b PASSED", - "test_one.py::C::test_c PASSED", -@@ -344,7 +344,7 @@ def test_class_test_methods_reordered(ou - out = ourtestdir.runpytest(*args) - - out.assert_outcomes(passed=4, failed=0) -- assert out.outlines[8:12] == [ -+ assert out.outlines[9:13] == [ - "test_one.py::T::test_c PASSED", - "test_one.py::T::test_b PASSED", - "test_one.py::T::test_a PASSED", -@@ -373,7 +373,7 @@ def test_test_functions_reordered(ourtes - out = ourtestdir.runpytest(*args) - - out.assert_outcomes(passed=4, failed=0) -- assert out.outlines[8:12] == [ -+ assert out.outlines[9:13] == [ - "test_one.py::test_c PASSED", - "test_one.py::test_a PASSED", - "test_one.py::test_b PASSED", -@@ -407,7 +407,7 @@ def test_test_functions_reordered_when_r - out = ourtestdir.runpytest(*args) - - out.assert_outcomes(passed=4, failed=0) -- assert out.outlines[8:12] == [ -+ assert out.outlines[9:13] == [ - "test_one.py::test_c PASSED", - "test_one.py::test_a PASSED", - "test_one.py::test_b PASSED", -@@ -437,7 +437,7 @@ def test_doctests_reordered(ourtestdir): - - out = ourtestdir.runpytest(*args) - out.assert_outcomes(passed=2) -- assert out.outlines[8:10] == [ -+ assert out.outlines[9:11] == [ - "test_one.py::test_one.bar PASSED", - "test_one.py::test_one.foo PASSED", - ] -@@ -518,7 +518,7 @@ def test_doctests_in_txt_files_reordered - - out = ourtestdir.runpytest(*args) - out.assert_outcomes(passed=2) -- assert out.outlines[8:10] == [ -+ assert out.outlines[9:11] == [ - "test2.txt::test2.txt PASSED", - "test.txt::test.txt PASSED", - ] diff --git a/pytest-randomly-3.12.0.tar.gz b/pytest-randomly-3.12.0.tar.gz deleted file mode 100644 index 3214def..0000000 --- a/pytest-randomly-3.12.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:81348ae448f00df8f3b2768b90ff1bfe4b77a1ee20419a7621ae7c0826758617 -size 30426 diff --git a/pytest-randomly-3.13.0.tar.gz b/pytest-randomly-3.13.0.tar.gz new file mode 100644 index 0000000..2cfe9f1 --- /dev/null +++ b/pytest-randomly-3.13.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24e182a8e89b8851d660bcc24e8e96c7c89bef07e68f099ef91e960f7bc86264 +size 30026 diff --git a/python-pytest-randomly.changes b/python-pytest-randomly.changes index 998fd6b..c8b5646 100644 --- a/python-pytest-randomly.changes +++ b/python-pytest-randomly.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jul 24 19:54:28 UTC 2023 - Dirk Müller + +- update to 3.13.0: + * Drop Python 3.7 support. +- drop fix-tests-pytest-73.patch (upstream) + ------------------------------------------------------------------- Thu May 4 22:57:32 UTC 2023 - Dirk Müller diff --git a/python-pytest-randomly.spec b/python-pytest-randomly.spec index 4a4e029..1bbd5f6 100644 --- a/python-pytest-randomly.spec +++ b/python-pytest-randomly.spec @@ -18,15 +18,14 @@ %{?sle15_python_module_pythons} Name: python-pytest-randomly -Version: 3.12.0 +Version: 3.13.0 Release: 0 Summary: Pytest plugin to randomly order tests and control random.seed License: MIT URL: https://github.com/pytest-dev/pytest-randomly Source: https://github.com/pytest-dev/pytest-randomly/archive/%{version}.tar.gz#/pytest-randomly-%{version}.tar.gz -# PATCH-FIX-UPSTREAM: https://github.com/pytest-dev/pytest-randomly/commit/d663e203db254f7e310e4de0e4622e5596860698.patch -Patch1: fix-tests-pytest-73.patch -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-importlib-metadata >= 3.6.0 @@ -68,10 +67,10 @@ Features: %autosetup -p1 -n pytest-randomly-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check