🔥 Get rid of `setuptools` dev runtime dep

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.
This commit is contained in:
Sviatoslav Sydorenko 2024-06-17 16:28:23 +02:00
parent 80b7657b2a
commit f8a3928ef4
No known key found for this signature in database
GPG Key ID: 9345E8FEA89CA455
2 changed files with 1 additions and 2 deletions

View File

@ -60,7 +60,6 @@ optional-dependencies.dev = [
"mock", "mock",
"pygments>=2.7.2", "pygments>=2.7.2",
"requests", "requests",
"setuptools",
"xmlschema", "xmlschema",
] ]
urls.Changelog = "https://docs.pytest.org/en/stable/changelog.html" urls.Changelog = "https://docs.pytest.org/en/stable/changelog.html"

View File

@ -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: try:
# We are using subprocess.run rather than pytester.run on purpose. # We are using subprocess.run rather than pytester.run on purpose.
# pytester.run is adding the current directory to PYTHONPATH which avoids # pytester.run is adding the current directory to PYTHONPATH which avoids