From f8a3928ef4505d9c11290f5d292cc85e763d7969 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Mon, 17 Jun 2024 16:28:23 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Get=20rid=20of=20`setuptools`=20?= =?UTF-8?q?dev=20runtime=20dep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Said dependency was being listed as needed for development. However, it was only called via the deprecated `setup.py` CLI interface in the tests once. This patch replaces the invocation with `pip install` and pulls it from the list of the development runtime dependencies. --- pyproject.toml | 1 - testing/acceptance_test.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0627c94c7..4ec6a2cc8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,6 @@ optional-dependencies.dev = [ "mock", "pygments>=2.7.2", "requests", - "setuptools", "xmlschema", ] urls.Changelog = "https://docs.pytest.org/en/stable/changelog.html" diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index ac7fab3d2..9b03ad088 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -1464,7 +1464,7 @@ def test_issue_9765(pytester: Pytester) -> None: } ) - subprocess.run([sys.executable, "setup.py", "develop"], check=True) + subprocess.run([sys.executable, "-Im", "pip", "install", "-e", "."], check=True) try: # We are using subprocess.run rather than pytester.run on purpose. # pytester.run is adding the current directory to PYTHONPATH which avoids