Commit Graph

15 Commits

Author SHA1 Message Date
Takashi Natsume 9601b8942a Change minversion of tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace whitelist_externals with allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Change-Id: I663c05734cfc86a3c2bbc068c3990bab037bbe22
2022-06-24 13:47:41 +00:00
songwenping 6884124914 Update python testing classifier
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I3e476822b0e7b3b0197e1016e517cb87b09b8a62
2022-04-19 16:09:30 +08:00
Stephen Finucane 3dd3506d09 Switch to hacking 2.x
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>
2020-02-27 15:58:46 +00:00
Eric Fried 50b4160695 Stop testing with py2
We were pretty close on this already.

Change-Id: I8ad1f5bee7a532c3401fd59550cee7cdec67c8c3
2019-10-25 09:46:50 -05:00
Zuul fcd1be5427 Merge "Build pdf docs" 2019-09-24 15:02:24 +00:00
pengyuesheng 718adcce28 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ic6c7403b18f9d7d69c41000146042f3d547c4df1
2019-09-23 16:25:56 +08:00
Chris Dent 65b74ff0f8 Build pdf docs
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
2019-09-11 13:25:41 +00:00
Corey Bryant 0fceade481 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Id58e363458d4b641d9674cdb43dec33d9df58aee
Story: #2005924
Task: #34236
2019-07-05 15:43:46 -04:00
gujin 594330538b Replace git.openstack.org URLs with opendev.org URLs
1. Replace git.openstack.org URLs with opendev.org URLs
2. Remove the unnecessary "=" from some files

Change-Id: I86ad7f5d51d2b82b39aa8bebb34dfffc54df6939
2019-05-11 12:01:11 +08:00
Zuul c80ef0fc47 Merge "Use py3 for all* tox targets" 2019-05-08 14:41:34 +00:00
Adam Spiers 6a49f2a003 Add missing upper-constraints.txt to deps in docs testenv
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
2019-05-08 15:11:56 +01:00
Eric Fried 610afeb9c2 Use py3 for all* tox targets
*except py27.

Change-Id: I05bb59e256505960f965c05527bfa22357ac2979
2019-05-08 08:37:53 -05:00
Chris Dent a9e988bf28 Don't use upper-constraints when installing package
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
2019-01-04 13:55:54 +00:00
Chris Dent 385310e1b0 Initial automated testing for os-resource-classes
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
2018-12-11 17:49:45 +00:00
Chris Dent 373e6d16d1 Initial Cookiecutter Commit. 2018-09-14 14:28:48 -06:00