Commit Graph

26 Commits

Author SHA1 Message Date
Ghanshyam Mann e0687d6073 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: I0492630b17a7355a96abd44398b650fad9ec565f
2023-01-09 13:27:54 -06:00
Zuul f44afea4ad Merge "Use TOX_CONSTRAINTS_FILE" 2022-08-12 09:56:38 +00:00
Ghanshyam Mann bd95c59145 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I094d6ff2c13847123ed31ddf1b93b7bfa4fe3b50
2022-08-09 12:54:26 +00:00
wangzihao 34c582e319 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: Ic775a7a0f10e11f0407c130acfcb29a9c0277f16
2021-05-21 11:59:42 +08:00
Eyal de32feb135 add pep inspection to get_action_list.py
Change-Id: Id485cea6daa63fcb4c435162e09528ca7e2359ea
2020-05-12 09:26:44 +03:00
Eyal bb2af2e2be Move openstack actions to mistral-extra
Implements: blueprint mistral-actions-api-separate-openstack-actions
Change-Id: Iaf1cca7a29df35409fea641fdb60191afb509b5a
2020-01-29 12:27:13 +02:00
Eyal 57afe0a3f4 Fix requirements, tox , zuul
Change-Id: Ie32028c901831185d9694db8b9fd35829759a1ac
2020-01-16 11:54:46 +02:00
Ghanshyam Mann 1a99070183 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

mistral-extra is ready with python 3 and ok to drop the
python 2.7 support.

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

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I32edd618a65f5ef65be1c7894dd4f52c97f733c3
2019-11-16 17:01:53 +00:00
caoyuan 078205550c 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: I218efe01ad56dbe04666716ae61ea2d97ef6912d
2019-10-24 21:22:06 +08:00
pengyuesheng 68b887e0f5 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I88e17a15d4c95b845263e5d6f21fba4ec6c0e84e
2019-09-29 10:39:18 +08:00
Corey Bryant 43b510a41e 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: I4416ad8c1dc7f7414981eb7e82c88d18fc2ff9a7
Story: #2005924
Task: #34222
2019-07-05 12:03:38 -04:00
zhulingjie 1a6daa31a1 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I618947650f1b700e860b8d06ecdb3dac5f797edf
Closes-Bug: #1826041
2019-04-24 01:56:15 +08:00
Ghanshyam Mann 6193c0586d 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: I2833bc6d3d3962d448ad0619efc842911465bf8b
2019-04-14 23:35:48 +00:00
Sean McGinnis 5a0e91c99d Remove setup.py check from pep8 job
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.

Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.

More details can be found in this mailing list post:

http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html

Change-Id: I01bcce1ceff75fb34ea4b387114459cf3afa721a
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-30 10:22:03 -05:00
98k f879c843c7 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: I7600a9e42ada68b2efec71337452c493c6589d33
2018-10-09 21:06:42 +00:00
Dougal Matthews 2c2787ca6d 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: I6770787e481e1eb274a8e7764aa55758d44dc9ea
2018-06-08 11:32:19 +01:00
Doug Hellmann 0ede116557 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: I6d30f89428fc232a5ee0f20507273368f3bfa8b0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 16:06:02 -04:00
Brad P. Crochet c78bdbb95b Switch to using stestr
When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that

Change-Id: I9e92cfb7419afb281a021645b4b58f29b89c90a8
2018-05-21 18:38:46 -04:00
Brad P. Crochet 566dc85cca Fix tox.ini to use new constraints list management style
Release is failing due to using out-dated constraints management.
Reference: https://review.openstack.org/#/c/524496/1/tox.ini

Change-Id: I946c4dad65a32a20cf6372844f2b15ba01646d4b
2018-01-30 09:18:30 -05:00
Brad P. Crochet 5bee294596 Set up mistral-extra with the ability to run unit tests
Properly sets up the mistral-extra repository with packaging and testing
setup, in order to add gating in CI.

Change-Id: I204745785e63cc8b1ae47da5cc59eda6da18b722
Depends-On: I5e75914e500837babdeb358a76ec7d90c56f61ac
2017-03-03 16:29:49 -05:00
Renat Akhmerov 5eebb0d5dc Restructure mistral-extra repo
* "examples" file tree should not be Python packages
* Examples should have their own dependencies, if needed, not centralized

Next steps:
* Prepare a layout for storing OpenStack actions

Depends-on: Id8e5d55e34ec3b3d555b5482e13f99c2561e871e
Partially implements: blueprint mistral-custom-actions-api

Change-Id: Ic5b0f655686361ee00bdb70ea13bc66ce0769f90
2016-07-12 15:56:39 +07:00
hparekh 9ea6b9a28b Drop py33 support.
"Python 3.3 support is being dropped since OpenStack Liberty."
written in following URL. https://wiki.openstack.org/wiki/Python3
And already the infra team and the oslo team are dropping py33
support from their projects.

Change-Id: I9d98db15a1176254708926cbe68b8091ebbb2b14
Closes-Bug: #1526170
2015-12-24 06:56:14 +00:00
hparekh e48c24f251 Remove py26 support.
As of mitaka, the infra team won't have the resources
available to reasonably test py26, also the oslo team
is dropping py26 support from their libraries.

Change-Id: I8ac26db87a9567c86977ac13c5d2e50da300aca5
Closes-Bug: #1519510
2015-12-24 15:44:53 +09:00
THOMAS J. COCOZZELLO 663b7470c4 Activate pep8 check that _ is imported
Remove the specification in tox.ini that _ is a builtin so that
it will no longer assume that _ does not need to be imported.
This helps ensure that the _ from i18n is used.

Activating this check did not flag any violations.

Change-Id: Ib0988785c73b10281b1c67f1722a2ec637423b34
2015-09-11 22:43:24 -05:00
Jeremy Stanley c1135a1a77 Work toward Python 3.4 support and testing
Change-Id: I470ba545d1f709860791593be4462de557d4e5e5
2014-09-03 19:07:04 +00:00
Renat Akhmerov 709ee551ea Preparing project skeleton
Change-Id: I740c27faaaee8d1dc4d5460705f515e5685c67c7
2014-01-18 01:22:26 -08:00