summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-09-06 21:32:33 -0400
committerNed Batchelder <ned@nedbatchelder.com>2022-09-13 07:06:34 -0400
commit447334c474251eafe6606d5497b1458fb5aca6ca (patch)
tree9908f7283027d85d0f456a20a16219ea73976fad
parentc4ad568695e40d4a0f5341abcfb49b0172df67a6 (diff)
downloadpython-coveragepy-git-447334c474251eafe6606d5497b1458fb5aca6ca.tar.gz
build: use pyproject.toml to comply with pep517
Also: remove --no-index for installing ourselves. PEP-517 compliance means we need to use PyPI to get setuptools, so we can't use --no-index anymore. I think this was added just to speed up the initial installation of the virtualenv used in these tests.
-rw-r--r--pyproject.toml6
-rw-r--r--tests/test_venv.py2
2 files changed, 7 insertions, 1 deletions
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 00000000..fdc329bb
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,6 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
+
+[build-system]
+requires = ['setuptools', 'wheel']
+build-backend = 'setuptools.build_meta'
diff --git a/tests/test_venv.py b/tests/test_venv.py
index 4bf1eb02..9e91157c 100644
--- a/tests/test_venv.py
+++ b/tests/test_venv.py
@@ -139,7 +139,7 @@ def venv_world_fixture(tmp_path_factory):
# Install everything.
run_in_venv(
- "python -m pip install --no-index " +
+ "python -m pip install " +
"./third_pkg " +
"-e ./another_pkg " +
"-e ./bug888/app -e ./bug888/plugin " +