Skip to content

Commit 8151577

Browse files
committed
CI: Limit to Tox < 4.0 to avoid plugin incompatibility
I'm abandoning tox-factor because having any [tox] requires = ... causes tox 3.x to create an isolated virtualenv for running tox itself. Since Tox 4.x was released that virtualenv gets it, which is incompatible with the tox-factor plugin. e.g. ``` Traceback (most recent call last): File "/Users/runner/work/1/s/.tox/.tox/lib/python3.10/site-packages/tox_factor/compat.py", line 2, in <module> from tox.config.parallel import ENV_VAR_KEY_PUBLIC as TOX_PARALLEL_ENV ModuleNotFoundError: No module named 'tox.config.parallel' ```
1 parent 21cb4a3 commit 8151577

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.ci/azure-pipelines-steps.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Each step entry runs a task (Azure Pipelines analog of an Ansible module).
2+
# https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/?view=azure-pipelines&viewFallbackFrom=azure-devops#tool
3+
4+
# `{script: ...}` is shorthand for `{task: CmdLine@<mumble>, inputs: {script: ...}}`.
5+
# https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/steps-script?view=azure-pipelines
6+
# https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/cmd-line-v2?view=azure-pipelines
7+
18
steps:
29
- task: UsePythonVersion@0
310
displayName: Install python
@@ -11,7 +18,7 @@ steps:
1118
displayName: Install build deps
1219
condition: and(eq(variables['python.version'], ''), eq(variables['Agent.OS'], 'Linux'))
1320

14-
- script: python -mpip install tox
21+
- script: python -mpip install "tox<4.0"
1522
displayName: Install tooling
1623

1724
- script: python -mtox -e "$(tox.env)"

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ envlist =
4242
py{27,36,310}-mode_mitogen-distro_debian{9,10,11},
4343
py{27,36,310}-mode_mitogen-distro_ubuntu{1604,1804,2004},
4444
report,
45-
requires =
46-
tox-factor
4745

4846
[testenv]
4947
basepython =

0 commit comments

Comments
 (0)