Commit Graph

28 Commits

Author SHA1 Message Date
Ghanshyam Mann d2f6c39f5c 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: If4f5b6aff58241c16da70fcf61e5d00324a64af0
2022-04-30 15:33:24 -05:00
Anand Bhat 27c426a76f Migrate from testr to stestr
* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore, test-requirements.txt and lower-constraints.txt
  files accordingly
* Use py3 as the default runtime for tox and 3.18.0 as the
  minversion for tox
* Add a new job, openstack-cover-jobs, to run the coverage in Zuul

Change-Id: If6fa3f2f861d5eb6787743edcc6333e5aacef7d0
2021-07-01 16:12:14 +05:30
Martin Kopec e875b75392 Bump hacking max version to 3.0.1 and fix pep8
pep8 job is failing because the version of flake8
(flake8<2.7.0,>=2.6.0) requested by hacking<1.2.0 is not
compatible with pyflakes>=2.1.1. Therefore the patch increases
the max version of hacking.
Also the patch fixes a few pep8 errors.

Change-Id: Ib9f1cb5a77947cfb1ab28a7f26e97edba007466c
2021-01-03 11:52:53 +00:00
wuchunyang 56c539ace9 Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is old name and deprecated
-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: Ib52b501dc43bc9d6685ffd2dd79ceb881044a1f3
2020-11-27 09:27:30 +00:00
maaoyu e4ccb1dfd4 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: I23079372b2cbbc083f6c4fef1df2268755a2da1e
2020-10-12 16:58:36 +08:00
maaoyu db0aeecfe1 Remove install unnecessary packages
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: Iebf119fe20e8767d3d8f088d889eb5a8d38a81b2
2020-09-24 08:56:51 +08:00
jacky06 912c96d408 tox: Keeping going with docs and cleanup setup.cfg
1. 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.

2. pbr hasn't need the hook configuration since forever [2]

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

Change-Id: I22e930f9876ca29750093a78e4bf3a7d4a479eb9
2020-01-20 22:45:10 +01:00
Tetsuro Nakamura aa7690b48c Stop testing with py2
Python 2 is no longer supported. Python 3 is required.
This patch stops testing with Python 2 and issues the release note.

Change-Id: I7dc416927ea23d581dbee366d54a733ee53498cf
2019-12-06 04:15:12 +00:00
Corey Bryant 3ea2b186d3 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: Ibc4be4c59c2dca995f1999879ea2a9e70b129f7f
Story: #2005924
Task: #34199
2019-06-21 17:17:19 -04:00
jacky06 2ea393fb6a Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I30a1b8d6a5b3c8e402fc9c3671065ffe13bcbead
2019-04-23 06:16:44 +00:00
Ghanshyam Mann fe02d32339 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: I08d1764ad06ae1a30f5c3e30437823459bac7ec8
2019-04-14 19:12:50 +00:00
Vieri 74c5eb818e 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: I1b9cc38fceb099e30c46d8c5f2ac84fbffabaf76
Story: #2002586
2018-11-28 06:30:12 +00:00
Pierre Riteau d22c8e3ebe Add reno for release notes management
Change-Id: Idad067060648eab4350a312048b750109ea5b1c4
2018-06-26 14:56:31 +02:00
Doug Hellmann 38b794ab96 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: I059cec653a686413dda48f67eacee41bd3677ddf
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 17:58:16 -04:00
Doug Hellmann 01a5551274 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: I214404165597acc35f3b107d462d51bdeef813e3
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-20 16:24:53 -04:00
Andreas Jaeger 868d2934e4 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: Iaf2172c3bd84e11ba11b9995cce92b5c80eebc33
2017-12-05 09:17:26 +00:00
Masahito Muroi 581c1170a3 Migrate Python namespace from climateclient to blazarclient
The python-blazarclient repository has been using the climateclient
namespace.

This patch converts the climateclient namespace to the blazarclient
namespace. Additionally, some classes, methods and variables that
include 'climate' in their name are also changed to 'blazar'.

Change-Id: Ibf900f9a8a7a7bfb0b6b213545b9cbf121ce0df7
Closes-Bug: #1662735
Closes-Bug: #1311746
2017-02-21 21:53:05 +00:00
Tony Breeds f30b60ce8f Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove python-climateclient.

Change-Id: I48d55899c999f56d4a018aff9a10d50c336dd483
2016-12-21 14:07:57 +11:00
Pierre Riteau ea26e9923a Update default environment list
The Blazar code base is not yet compatible with Python 3. Having tox
environments for them is a first step towards fixing it.

Change-Id: I2bc764bd57f09ecaa4575628735ff68791b867cd
2016-12-05 21:15:03 +00:00
Steve Martinelli 7726cc6297 use oslotest
Move over to the fancy new oslo testing library.

Removing openstack/common from all OpenStack code in favor of the
Oslo libraries is a project wide goal for the Ocata release.

Also removed all openstack/common references throughout codebase.

Change-Id: Ib5c8a1f7a00eae883308fe77ca379dd1e0ea9b6b
2016-11-12 17:43:04 +00:00
Steve Martinelli 1c401cb265 use oslo.i18n
Move over to the fancy new oslo i18n library.

Removing openstack/common from all OpenStack code in favor of the
Oslo libraries is a project wide goal for the Ocata release.


Change-Id: I6ec6252b01f04f211602369a6ce6a86bf75e77ad
2016-11-12 17:42:47 +00:00
Steve Martinelli c62ef54c34 use oslo.utils
Move over to the fancy new oslo utils library.

Removing openstack/common from all OpenStack code in favor of the
Oslo libraries is a project wide goal for the Ocata release.

Deleted files that were no longer used.

Removed reference to lockutils in tox.ini.

Change-Id: I4e588a6cac86d954a5bb2c10e825de88cf06a777
2016-11-12 17:42:29 +00:00
Jenkins 77202c1dd5 Merge "Deprecated tox -downloadcache option removed" 2016-03-01 12:32:51 +00:00
Andreas Jaeger 5d1a9375dc Fix testing
Update hacking version so that it works with newer pbr releases, other
requirements depend on newer pbr and this causes a conflict.

Add pbr to requirements since it's needed.

Add pep8 ignore for those tests that currently fail.

Rename oslo.config to oslo_config in imports.

Change-Id: I23c0afa855be4773a8799d09d1cda011e85367bd
2015-12-20 11:48:16 +01:00
Ondřej Nový be3854c944 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I5a5c337da09e7fed32c30a2e193c23960cc4b7a2
2015-12-11 23:21:40 +01:00
Nikolay Starodubtsev 53c79034a6 Add test framework for climateclient
Add oslo modules which we will need for tests implementation. Also
add base class for tests, tox instruction for coverage and changes
to dot files.

Change-Id: Ia105f1e5e088ee91ce4b30149d4721df81d28368
2014-02-24 09:06:03 +04:00
Pablo Andres Fuente 2d571b2d7e Fix PEP8 H302 import only modules
Added a # noqa next to the import to fix pep8.

Change-Id: Ie53b1c7d9123c486e2be170350ab89967cd35bde
Closes-Bug: #1276642
2014-02-05 13:11:03 -03:00
Dina Belova aaf7c93ae6 Initial Climate client implementation
Partially implements: blueprint python-client

Change-Id: I7ac8aedf5b7504c63d12119e1ba0842e3ce01e63
2014-01-14 16:19:03 +04:00