summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElod Illes <elod.illes@ericsson.com>2019-05-10 15:33:25 +0200
committerElod Illes <elod.illes@est.tech>2019-07-25 16:12:10 +0200
commit7858fbf43be1407fd22ff6d7941e0ed5399a1489 (patch)
treecef1ec70b88f73663b7ed38e40392581b5e5fff8
parenteefe506a72da1c154a09b5da2830cf5a690d8213 (diff)
downloadosprofiler-stable/ocata.tar.gz
Use upper constraintsocata-eolstable/ocata
Sphinx 2.0.0 dropped python 2.7 and 3.4 support. Because osprofiler uses global upper-constraints.txt only from Rocky, job openstack-tox-py27 tries to install Sphinx 2.0.1 and fails [1] with: Downloading http://mirror.iad.rax.openstack.org/wheel/ubuntu-16.04-x86_64/sphinx/Sphinx-2.0.1-py2.py3-none-any.whl (3.2MB) ERROR: Sphinx requires Python '>=3.5' but the running Python is 2.7.12 Note: .[oslo.config] could be removed as the packages will be installed perfectly and constrained without this and it breaks installation if upper-constraints.txt is used anyway. Note: patch adjusted to Ocata, and in Ocata this is needed due to GitPython as it dropped support for python 2.7 [1] http://logs.openstack.org/periodic-stable/opendev.org/openstack/osprofiler/stable/queens/openstack-tox-py27/3d469d3/job-output.txt.gz#_2019-05-10_06_10_56_192617 Change-Id: Ife6bcaca347d914cb1fc7e2fe71665ea5c93ca80 (cherry picked from commit eff57e09b55aaf1f00b01c289526ceddefdf25d9) (cherry picked from commit bfe78732b9991f11986099cd9cfa1b5afd94e0a3)
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 81c3498..d90bf32 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,7 +8,7 @@ setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
-deps = .[oslo_config]
+deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ocata}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install -U {opts} {packages}