Skip to content

Commit

Permalink
Fix setting download option in tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Oct 17, 2024
1 parent 1c5336c commit afdfad2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repo_helper/files/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,13 +420,14 @@ def testenv_py312_dev(self) -> None:
setenv.append("UNSAFE_PYO3_SKIP_VERSION_CHECK=1")

env_name = f"testenv:py{fixup_version.replace('.', '')}"
self._ini[env_name]["download"] = True
if env_name in self._ini:
self._ini[env_name]["download"] = True
self._ini[env_name]["setenv"] = indent_join(setenv)

for env in third_party_envs:
env_name = f"testenv:py{fixup_version.replace('.', '')}-{env}"
self._ini.add_section(env_name)
self._ini[env_name]["download"] = True
self._ini[env_name]["setenv"] = indent_join(setenv)

else:
Expand Down
1 change: 1 addition & 0 deletions tests/test_files/test_testing_/test_make_tox_matrix.ini
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ addopts = --color yes --durations 25
timeout = 300
[testenv:py313-dev-attrs{19.3,20.1,20.2,latest}]
download = True
setenv =
PIP_DISABLE_PIP_VERSION_CHECK=1
UNSAFE_PYO3_SKIP_VERSION_CHECK=1

0 comments on commit afdfad2

Please sign in to comment.