Commit Graph

17 Commits

Author SHA1 Message Date
yangyawei b4474778d0 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: I16929ff578e77cc437435e226007b481b2b337ae
2022-03-22 10:39:23 +00:00
Hervé Beraud f69edb021f Add doc/requirements
We need to specify doc requirements in doc/requirements.txt to avoid
problems with the pip resolver [1] for the release team [2][3]. Removing
specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: I4ff8cee25887d38e18fd260560b92ad4bf904838
2022-03-22 10:38:50 +00:00
Stephen Finucane 35f079f3b6 Modernize package a little
- Remove unnecessary dependencies
- Cleanup 'tox.ini' file

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I19a5d0318ac72012aa7adc9b7eaccc2e59885838
2022-03-22 10:36:43 +00:00
maaoyu 5056a77a18 bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.

ref:
  https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: Ia7e08e12aa53bc7b7cee92b497275f9e990ac0a3
2020-10-12 13:52:43 +08:00
Andreas Jaeger a5fe49a956 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: Ibea136743f9a82d0e9ff35bc59f54a4c8afda74b
2020-02-04 20:34:32 +01:00
pengyuesheng 248052ad65 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I23a99b977286921d6163174de830e59c19162c01
2019-09-29 10:26:48 +08:00
Corey Bryant f4cfd61ec9 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: I01dc2774b950fe4da9d715b1df376c2e38f45687
Story: #2005924
Task: #34233
2019-07-05 14:36:09 -04:00
Andreas Jaeger 7a89db60db Update testing jobs
Remove py35 testing, for train py35 is not supported anymore.

Update docs environment to use sphinx-build directly following PTI.

Change-Id: Idd120c50f3205be116a22af83029b1560876fa36
2019-05-01 22:16:27 +02:00
Monty Taylor 9243671b28 Update links for opendev
Change-Id: I12626fb24abe0cc65ba89f6021dbb055a372601f
2019-04-21 13:02:57 +00:00
Sahid Orentino Ferdjaoui 8f7e4e9c1e add python 3.7 unit test job
See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: I3cd3a851efbfbe481482130d024723e10ab1395c
Story: #2004073
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-03-25 10:58:08 +00:00
Vieri e9f7002677 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I050c75a2957f42448994716f0da924a45d5f3083
2018-10-09 13:31:16 +00:00
Eric Fried db1ba203cc Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should
migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Ia64e4e4e44bc8ce7a86b471b0e60599fb285699f
2018-07-24 09:18:54 -05:00
huang.zhiping d5cbd03a57 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We can't set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36 due to https://github.com/tox-dev/tox/issues/425

Change-Id: Ibeb97401c13fb1cb35f824082eb6b3209c868beb
2018-06-11 17:45:22 +00:00
Andreas Jaeger ba9f559d87 Remove -U from pip install
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.

With tools/tox_install.sh - which a previous change of mine removed -
the -U was not harmful, but with the current set up, it might cause
upgrades, so remove it.

Change-Id: Ied7749e097fba7552c7f95b15170bf124ffa1d04
2017-12-02 19:30:07 +01:00
Andreas Jaeger 72f299c23e Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: I6e5fbdffc79e2b239181b68d9ff83cec06ced34f
2017-12-01 14:54:15 +01:00
Colleen Murphy 32dddc1059 Use tox_install.sh to install dependencies
Now that os-service-types exists in the requirements repository, we need
to take special care to unconstrain it when we run tests on it. That is
what the tox_install.sh script does (copied from keystoneauth in this
case). If we don't do this, tox will be unable to install test
dependencies in CI[1].

[1] http://logs.openstack.org/85/488085/4/check/gate-os-service-types-docs-ubuntu-xenial/6cb3162/console.html

Change-Id: I2726075d6f9eec33094753cda558275e433b6ca4
2017-07-28 14:01:21 +02:00
Monty Taylor 1865fa56f8 Add cookiecutter boilerplate
Removed babel related things - we're not expecting to have translations.

Change-Id: I510195c6c83c99d78c90571ff0fdea8219833d95
2017-07-14 13:43:28 -04:00