8000 tox: use pip legacy resolver for regen job · pytest-dev/pytest@6298ff1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6298ff1

Browse files
committed
tox: use pip legacy resolver for regen job
The env var effects all of the pip installs, including regendoc which also uses setuptools-scm, so it gets the wrong version, and fails to install with the new pip resolver: ERROR: Requested regendoc from https://files.pythonhosted.org/packages/a8/5d/206e4951420bf5bbe1475c66eb06ec40d9177035e223858fee890eed0188/regendoc-0.6.1.tar.gz#sha256=db1e8c9ae02c1af559eae105bfd77ba41ed07fc8ca7030ea59db5f3f161236a4 has different version in metadata: '6.2.0'
1 parent d51ecbd commit 6298ff1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ commands =
8585
changedir = doc/en
8686
basepython = python3
8787
passenv = SETUPTOOLS_SCM_PRETEND_VERSION
88+
# TODO: When setuptools-scm 5.0.0 is released, use SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST
89+
# and remove the next line.
90+
install_command=python -m pip --use-deprecated=legacy-resolver install {opts} {packages}
8891
deps =
8992
dataclasses
9093
PyYAML

0 commit comments

Comments
 (0)
0