diff --git a/fix-tests.patch b/fix-tests.patch index 7caaa2d..83da6ad 100644 --- a/fix-tests.patch +++ b/fix-tests.patch @@ -9,7 +9,7 @@ Content-Transfer-Encoding: 8bit Co-Authored-By: Lumir Balhar Co-Authored-By: Miro HronĨok --- - pyproject.toml | 10 +--------- + pyproject.toml | 4 +--- src/tox/pytest.py | 14 ++------------ tests/test_provision.py | 11 ++++------- .../package/test_python_package_util.py | 10 ++++++++-- @@ -19,26 +19,6 @@ diff --git a/pyproject.toml b/pyproject.toml index 6920d19..53326bc 100644 --- a/pyproject.toml +++ b/pyproject.toml -@@ -76,11 +76,6 @@ dev = [ - ] - test = [ - "build[virtualenv]>=1.3", -- "covdefaults>=2.3", -- "coverage>=7.10.7", -- "detect-test-pollution>=1.2", -- "devpi-process>=1.0.2", -- "diff-cover>=9.7.1", - "distlib>=0.4", - "flaky>=3.8.1", - "hatch-vcs>=0.5", -@@ -88,7 +83,6 @@ test = [ - "pdm-backend>=2.4.5", - "psutil>=7.1", - "pytest>=8.4.2", -- "pytest-cov>=7", - "pytest-mock>=3.15.1", - "pytest-xdist>=3.8", - "re-assert>=1.1", @@ -201,6 +195,7 @@ filterwarnings = [ "error", "ignore:unclosed database in = specifiers from tests deps, whatever they are. +# then remove all the >= specifiers from tests deps, whatever they are, +# finally, remove undesired test dependencies. sed -ri -e 's/"(packaging|filelock|platformdirs|pyproject-api|cachetools|hatch-vcs)>=.*/"\1",/g' \ -e 's/"(virtualenv)>=.*/"\1>=20.29",/g' \ -e 's/"(hatchling)>=.*/"\1>=1.13",/g' \ -e 's/"(pluggy)>=.*/"\1>=1.5",/g' \ -e '/^test = \[/,/^\]/ { s/>=[^;"]+// }' \ + -e '/^test = \[/,/^\]/ { /"(covdefaults|coverage|detect-test-pollution|devpi-process|diff-cover|pytest-cov)[;"]/d }' \ pyproject.toml %generate_buildrequires