summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElod Illes <elod.illes@ericsson.com>2019-05-10 15:33:25 +0200
committerElod Illes <elod.illes@ericsson.com>2019-05-15 17:14:05 +0200
commitbfe78732b9991f11986099cd9cfa1b5afd94e0a3 (patch)
treef9681d0e79445c9799100f4618f824818b9abf30
parent98c6d5a758d1a3284203a710d7406128df439fb9 (diff)
downloadosprofiler-bfe78732b9991f11986099cd9cfa1b5afd94e0a3.tar.gz
Use upper constraints
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 Pike [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)
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 8929336..c8242b2 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/pike}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install -U {opts} {packages}