OpenAstronomy/azure-pipelines-templates

Allow tox version to be specified

Closed this issue · 1 comments

Allow a version to passed to the tox install command:

- ${{ if variables.docker_image }}:
- script: docker exec -i -w /project ${{ variables.docker_name }} ${{ variables.setarch }} ${{ variables.docker_python_exec }} -m pip install --upgrade tox ${{ variables.toxdeps }}
displayName: Install tox

- ${{ if not(variables.docker_image) }}:
- script: python -m pip install --upgrade tox ${{ variables.toxdeps }}
displayName: Install tox

So as a workaround this can hacked in toxdeps which works but isn't very transparent e.g. toxdeps: "tox<4". #85 tried to add a toxverspec variable is maybe a little more clear.