Skip to content

Commit eac1359

Browse files
committed
set tox python versions
1 parent 7f80a99 commit eac1359

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

hypothesis-python/tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ envlist = py{310,py310,311,py311,312,313,313t,314,314t,315,315t}-{brief,full,cov
33
toxworkdir={env:TOX_WORK_DIR:.tox}
44

55
[testenv]
6+
basepython={env:TOX_PYTHON_VERSION:python3}
67
deps =
78
-r../requirements/test.txt
89
extras =

tooling/src/hypothesistooling/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,8 @@ def run_tox(task, version, *args):
605605
python = install.python_executable(version)
606606

607607
env["PATH"] = os.path.dirname(python) + ":" + env["PATH"]
608+
# Set environment variable for tox to use in basepython substitution
609+
env["TOX_PYTHON_VERSION"] = ALIASES[version]
608610
print(env["PATH"])
609611

610612
pip_tool("tox", "-e", task, *args, env=env, cwd=hp.HYPOTHESIS_PYTHON)

0 commit comments

Comments
 (0)