Switch to TOX_CONSTRAINTS_FILE

This allows to use lower-constraints.txt more easily as input
when everyone has switched over.

Depends-On: https://review.opendev.org/660823

Change-Id: I3f957187ed4f29fcf88db99cb79fb33b21a8dd8d
This commit is contained in:
Dirk Mueller 2019-05-08 22:54:50 +02:00
parent 074967852b
commit df3a9882df
3 changed files with 6 additions and 3 deletions

View File

@ -24,7 +24,8 @@ Runs tox for a project
.. zuul:rolevar:: tox_constraints_file
Path to a pip constraints file. Will be provided to tox via
UPPER_CONSTRAINTS_FILE environment variable if it exists.
TOX_CONSTRAINTS_FILE (deprecated but currently still supported
name is UPPER_CONSTRAINTS_FILE) environment variable if it exists.
.. zuul:rolevar:: tox_install_siblings
:default: true

View File

@ -20,6 +20,8 @@
- name: Record file location
set_fact:
tox_constraints_env:
TOX_CONSTRAINTS_FILE: "{{ tox_constraints_file }}"
# Backward compatibility, to be removed
UPPER_CONSTRAINTS_FILE: "{{ tox_constraints_file }}"
when: tox_constraints_file is defined

View File

@ -110,7 +110,7 @@
.. zuul:jobvar: tox_constraints_file
Path to a pip constraints file. Will be provided to tox in the
UPPER_CONSTRAINTS_FILE environment variable if it exists.
TOX_CONSTRAINTS_FILE environment variable if it exists.
.. zuul:jobvar: tox_install_siblings
:default: true
@ -269,7 +269,7 @@
.. zuul:jobvar: tox_constraints_file
Path to a pip constraints file. Will be provided to tox in the
UPPER_CONSTRAINTS_FILE environment variable if it exists.
TOX_CONSTRAINTS_FILE environment variable if it exists.
.. zuul:jobvar: tox_install_siblings
:default: true