This supports Python 3 goodness. Some additional tox tweaks are included
while we're here.
Change-Id: Idba284defad550f7f90cccb4b288c00b77bc25de
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This follows the instructions [1] in an attempt to build pdf docs.
This creates workable results, but there is room for improvement.
[1] https://etherpad.openstack.org/p/train-pdf-support-goal
Change-Id: Icf7c22bf9d1de6fb2a74a756c370930d4c00b0b9
Story: 2006110
Task: 35395
1. Replace git.openstack.org URLs with opendev.org URLs
2. Remove the unnecessary "=" from some files
Change-Id: I86ad7f5d51d2b82b39aa8bebb34dfffc54df6939
The docs testenv in tox.ini was missing usage of upper-constraints.txt
from the global requirements project. This meant that in some
circumstances, such as the openstack-tox-docs CI job, Python 2.7.x
would be used but Sphinx 2.x would get installed which is not
compatible with Python 2.7.x, causing tox failures like this:
2019-05-08 12:45:48.060953 | TASK [tox : Run tox without tests]
2019-05-08 12:45:48.759277 | ubuntu-bionic | docs create: /home/zuul/src/opendev.org/openstack/os-resource-classes/.tox/docs
2019-05-08 12:45:52.775007 | ubuntu-bionic | docs installdeps: -r/home/zuul/src/opendev.org/openstack/os-resource-classes/doc/requirements.txt
2019-05-08 12:45:53.838450 | ubuntu-bionic | ERROR: invocation failed (exit code 1), logfile: /home/zuul/src/opendev.org/openstack/os-resource-classes/.tox/docs/log/docs-1.log
2019-05-08 12:45:53.838669 | ubuntu-bionic | ================================== log start ===================================
2019-05-08 12:45:53.838995 | ubuntu-bionic | DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
2019-05-08 12:45:53.839207 | ubuntu-bionic | Looking in indexes: http://mirror.iad.rax.openstack.org/pypi/simple, http://mirror.iad.rax.openstack.org/wheel/ubuntu-18.04-x86_64
2019-05-08 12:45:53.839421 | ubuntu-bionic | Collecting sphinx!=1.6.6,!=1.6.7,>=1.6.2 (from -r /home/zuul/src/opendev.org/openstack/os-resource-classes/doc/requirements.txt (line 1))
2019-05-08 12:45:53.839619 | ubuntu-bionic | Downloading http://mirror.iad.rax.openstack.org/wheel/ubuntu-18.04-x86_64/sphinx/Sphinx-2.0.1-py2.py3-none-any.whl (3.2MB)
2019-05-08 12:45:53.839749 | ubuntu-bionic | ERROR: Sphinx requires Python '>=3.5' but the running Python is 2.7.15
2019-05-08 12:45:53.839778 | ubuntu-bionic |
2019-05-08 12:45:53.839912 | ubuntu-bionic | =================================== log end ====================================
2019-05-08 12:45:53.840347 | ubuntu-bionic | ERROR: could not install deps [-r/home/zuul/src/opendev.org/openstack/os-resource-classes/doc/requirements.txt]; v = InvocationError(u'/home/zuul/src/opendev.org/openstack/os-resource-classes/.tox/docs/bin/pip install -r/home/zuul/src/opendev.org/openstack/os-resource-classes/doc/requirements.txt', 1)
So introduce usage of upper-constraints.txt, as is already done in os-traits.
Of course we should also switch to Python 3, but even with that change
we still need to use upper-constraints.txt to prevent similar
categories of failure in the future.
Change-Id: I8f4e72bd4b34cfd177c35469e0bc7d83bee705c7
We only want to use upper-constraints when installing dependencies, not
the os-resource-classes package itself, otherwise we get:
Could not satisfy constraints for 'os-resource-classes':
installation from path or url cannot be constrained to a version
Change-Id: I5360e041b6b81c5686e2700aa89de8514a69dd9a
Closes-Bug: #1809401
Adjust tox settings for a reasonable set of job defaults.
Turn on the usual templates in .zuul.yaml
Correct small pep8 and docs issues to get tox jobs passing.
Change-Id: Id0ebeab2ec2439d52defe59096b07c3d0b7bc66d