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