1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-04 19:09:16 -04:00
ports/devel/py-setuptools_scm/files/patch-testing_test__integration.py
Kai Knoblich 86eb4911c1 devel/py-setuptools_scm: Update to 6.4.2
* Fold the TOML option because its dependency is no longer an optional
  requirement as noted in "setup.{py,cfg}".  This should also fix some
  cases with build errors where the TOML option was disabled. [1]

Changelog since 6.3.2:

https://github.com/pypa/setuptools_scm/blob/v6.4.2/CHANGELOG.rst

PR:		259797 [1], 261698 [1]
MFH:		No (feature release)
2022-02-12 11:41:02 +01:00

13 lines
522 B
Python

Avoid hardcoded Python binary.
--- testing/test_integration.py.orig 2022-02-10 17:16:34 UTC
+++ testing/test_integration.py
@@ -119,7 +119,7 @@ def test_pretend_version_accepts_bad_string(monkeypatc
monkeypatch.setenv(PRETEND_KEY, "dummy")
wd.write("setup.py", SETUP_PY_PLAIN)
assert wd.get_version(write_to="test.py") == "dummy"
- assert wd("python setup.py --version") == "0.0.0"
+ assert wd("%%PYTHON_CMD%% setup.py --version") == "0.0.0"
def test_own_setup_fails_on_old_python(monkeypatch):