Commit Graph

27 Commits

Author SHA1 Message Date
Ghanshyam Mann 7bbfa4f945 Fix tox4 error
tox.ini started failing with tox4 which had some
incompatible changes. One of them is to allow
external command to run by adding them into allowlist_externals
and make passenv in new lines.

Fixing tox.ini for tox4 changes.

Change-Id: Id8d5c7bed75b6dc813203d2e814642855d645b6c
2023-01-09 13:24:25 -06:00
wu.shiming 7a2d1e9ebf Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: Ia2783052dbb9d82aa99ce18e6c60d2580b3ea7db
2022-05-22 14:06:36 +00:00
songwenping b49b6e4684 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.

Wallaby support officially the following runtimes [1]:
- Python 3.6
- Python 3.8

During Victoria Python 3.7 was used as the default runtime [2] however this
version isn't longer officially supported.

[1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: I5aec8ad5fda23e3ffbb16a08a0b4626c3fc8db96
2021-04-27 05:56:29 +00:00
songwenping 83b2d7ec4e Dropping lower constraints testing
We facing errors related to the new pip resolver, this
topic was discussed on the ML and QA team proposed to
to test lower-constraints [1].

I propose to drop this test because the complexity and recurring pain needed
to maintain that now exceeds the benefits provided by this mechanismes.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html

Change-Id: Iccaf7cfb8051ec1b01fde0786489855013297703
2021-04-25 03:03:36 +00:00
Sean McGinnis 32cc70f089
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I2106373bc267a780eb600eead17dc12aaddf0dd1
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:43 -05:00
Andreas Jaeger b97e383918 [ussuri][goal] Cleanup python 2.7 removal
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

This removes some cruft from Python 2.7 support.
Raise requests lower-constraint to satisfy oslo.config.

Change-Id: I47cc8ab5b348af28062ab3ff5329b96d2cbccdbb
2020-02-05 17:22:45 +01:00
Eyal a2fed6c34a Fix requirements, doc
Change-Id: I0384a421fca057f66365e6fdb0b1efdb1a1c49f2
2020-01-15 17:06:49 +02:00
Eyal 1c3a3f2248 Update hacking and fix warning
Change-Id: If1358bcfc3f914956f8917cbbcea894f6264febc
2020-01-07 14:58:46 +02:00
Eyal fd02f4c7f8 Use py3 only
Change-Id: I5f14af93be18d79cddfc4fc358b60a85a5d26a90
2019-12-30 12:41:22 +02:00
caoyuan 98f8ad448d tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: I2f1d5655e661188d8809fb2522bd5a10b385e8d2
2019-10-24 21:23:49 +08:00
Corey Bryant f6a2ec1f7e 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: I0bacae511ec7c7c912914af35792c3217a1ec7c2
Story: #2005924
Task: #34222
2019-07-05 12:03:55 -04:00
jacky06 5f68888dce Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Update some URLs to latest
3. Update the UPPER_CONSTRAINTS_FILE for tox[1]

[1]: refer to  http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Id095cbd60f5a11f25a64f37b18393afbd4b4262c
2019-06-19 22:34:53 +08:00
zhulingjie b253e825b2 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I7d8234f0a4a08844e746246b3f9c5b8a436c435b
2019-04-24 01:25:51 +08:00
Ghanshyam Mann fc4131aff4 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: Ia4581b3fc6f5dc957e4e466180bc0c4e01ce0538
2019-04-14 23:28:36 +00:00
98k 32e5228b2a Add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I3a4ffdc554df0779e3fb53fe71c79c14d1cf4fbd
2018-11-09 02:48:50 +00:00
98k b97e5dd6c5 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: I67ecb414295f6709121923804348571733ef3c7c
2018-10-09 21:07:50 +00:00
Dougal Matthews df04a2b5fd Add the restructuredtext check to the flake8 job
This follows a recommendation in this thread on openstack-dev.
http://lists.openstack.org/pipermail/openstack-dev/2018-June/131233.html

Change-Id: Ic87c54feab7fbc33092a77cfabd4075622abf4ba
2018-06-12 16:07:01 +01:00
Doug Hellmann 37fea13a42 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 do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ibb94564d92ef729509d9891500730d7489406a83
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 15:27:00 -04:00
Brad P. Crochet de6805b3fa Switch to using stestr
When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that

Change-Id: I219b3c448aae6df010cdccced1b9072dc6db0729
2018-05-22 13:18:29 -07:00
Doug Hellmann ef3482eace add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I14210959ffc1488a6422c6f254f92298bbcaab4b
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-05 07:25:04 -04:00
Andreas Jaeger fae38ee2ab 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: I3e6fb04cba4ec8245f898b89d5d69b92f0a04d1e
2017-12-02 17:05:17 +00:00
Dougal Matthews 2bf7602755 Sync tools/tox_install.sh with Mistral
Sync tools/tox_install.sh with mistral. This resolves the current gate
failure.

Change-Id: I1843d05a41ffb6c66edf1a3d2312999be6efc5ad
2017-04-19 10:05:11 +01:00
Dougal Matthews 2533ecb478 Pass "mistral_lib" to the coverage test
Otherwise it defaults to the package name which is mistral-lib, which
doesn't work.

Change-Id: Id7d0af7324934658fae6d235049a86c0c466b954
2017-03-15 11:40:06 +00:00
Sharat Sharma bfd79c0711 Fix oslo_debug_helper not running
Specify test directory so that tox won't complain
`ImportError: Start directory is not importable`.
Also fix a warning when running debug.

Change-Id: I9c9401c49328d0345de817d06460af76fc5bcd6b
Closes-Bug: #1666560
2017-03-07 15:39:42 +05:30
Sharat Sharma fdecd04f4b Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due
to the change from Ubuntu Trusty to Xenial, where only python3.5
is available. There is no need to continue to keep these settings.

Change-Id: I7ffa3e3886300407a9b0f4f3cf35b95ec5096e05
2017-02-16 06:02:28 +00:00
Andreas Jaeger e14e4ab8e3 Cleanup tox.ini, enable constraints
Remove old and unused constraints environments from tox.ini. Those
have never been used. Use standard environments as default list.

Enable use of constraints for all tox based jobs.

For more information about constraints see:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: Ieeabdaa74f76e5dc6b9530a35bc6343e4250194a
2016-08-26 16:47:12 +02:00
Renat Akhmerov 6d75dcee7f Initial project layout
Partially implements: blueprint mistral-custom-actions-api

Change-Id: I8730e506f0a160450e47a88ca11953b8895181b9
2016-07-15 15:16:55 +07:00