Blame SOURCES/0001-fedora-disable-some-build-requirements.patch

541142
From b0385729d40fef664f98878d63af8a58d39d33b7 Mon Sep 17 00:00:00 2001
541142
From: Carl George <carlwgeorge@gmail.com>
541142
Date: Thu, 29 Aug 2024 18:48:42 -0500
541142
Subject: [PATCH 1/3] fedora: disable some build requirements
541142
541142
This will reduce the number of packages pulled into the build
541142
environment.  This speeds up builds and also makes it easier to bring
541142
this package to new EPEL versions.
541142
541142
build[uv, virtualenv]:
541142
We want the uv build requirement to be optional, and we pull in the
541142
virtualenv build requirement already in our %pyproject_buildrequires
541142
call in the spec file.
541142
541142
pytest-cov:
541142
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
541142
541142
pytest-rerunfailures:
541142
This is used for the flaky marker.  Instead of having the additional
541142
build requirement, we'll just skip the one test that uses it.
541142
541142
pytest-xdist:
541142
This is used for running tests in parallel, and doesn't affect the test
541142
run overall.
541142
---
541142
 pyproject.toml     | 4 ----
541142
 tests/test_main.py | 1 -
541142
 2 files changed, 5 deletions(-)
541142
541142
diff --git a/pyproject.toml b/pyproject.toml
541142
index 74bf3ff..48080da 100644
541142
--- a/pyproject.toml
541142
+++ b/pyproject.toml
541142
@@ -50,13 +50,9 @@ docs = [
541142
   "sphinx-issues >= 3.0.0",
541142
 ]
541142
 test = [
541142
-  "build[uv, virtualenv]",
541142
   "filelock >= 3",
541142
   "pytest >= 6.2.4",
541142
-  "pytest-cov >= 2.12",
541142
   "pytest-mock >= 2",
541142
-  "pytest-rerunfailures >= 9.1",
541142
-  "pytest-xdist >= 1.34",
541142
   "wheel >= 0.36.0",
541142
   'setuptools >= 42.0.0; python_version < "3.10"',
541142
   'setuptools >= 56.0.0; python_version == "3.10"',
541142
diff --git a/tests/test_main.py b/tests/test_main.py
541142
index 7b17efe..8e1eb7e 100644
541142
--- a/tests/test_main.py
541142
+++ b/tests/test_main.py
541142
@@ -312,7 +312,6 @@ def test_build_package_via_sdist_invalid_distribution(tmp_dir, package_test_setu
541142
         ),
541142
     ],
541142
 )
541142
-@pytest.mark.flaky(reruns=5)
541142
 def test_output(package_test_setuptools, tmp_dir, capsys, args, output):
541142
     build.__main__.main([package_test_setuptools, '-o', tmp_dir, *args])
541142
     stdout, stderr = capsys.readouterr()
541142
-- 
541142
2.46.0
541142