Commit Graph

59 Commits

Author SHA1 Message Date
Takashi Kajinami 989c440fe6 Use upper-constraint in doc generation
Currently doc jobs are broken because the latest sphinx 7.2.0 is not
compatible with the latest release of openstackdocstheme.

This updates the docs/releasenotes target to use the global upper
constraints to avoid that issue.

Also, the following flake8 error is fixed by this change.

cliff/tests/test_formatters_table.py:53:10: E721 do not compare types,
for exact checks use `is` / `is not`, for instance checks use
`isinstance()`

Change-Id: Ia923ba1d0e2cf3327317e142cfa38470d9f053d2
2023-08-21 09:53:41 +09:00
songwenping fa0535a888 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: I5d419e881a42e627fd0699cb2ab68b66e7295cee
2021-04-20 02:37:33 +00:00
Stephen Finucane b04cba81ac Remove lower-constraints
This is not part of the PTI and is currently broken. While discussions
are ongoing about removing it from every project, there's a definite
lean towards doing so. Let's do just that. We can re-add in the future
if necessary.

While we're here, we fix some indentation in 'tox.ini'.

Change-Id: Ib4784d9da96d05a54acdfbb3744af0cb053c0c6c
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2021-01-27 17:14:10 +00:00
likui f05d554e34 Update requirements URLs in tox config
Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org so will switch to the correct
upper-constraints list automatically when the requirements repository branches.

Change-Id: Ia69a02b539230e65e25da65d5d76a9f650490256
2020-10-30 09:52:24 +08:00
songwenping 83b2bae062 Bump py37 to py38 in tox.ini
In wallaby cycle, we should test py38 by default.

Change-Id: If1644b27dfe7b94d9fd709bbd9bc5d93afb2a374
2020-10-06 15:33:59 +08:00
Monty Taylor 1582c55a24 Migrate to stestr
testr isn't what we use anymore.

Change-Id: I4cb8b9ca41da6efd7053a5a7bacfce1654a73576
2020-06-06 12:14:24 -05:00
Andreas Jaeger 9724108710 [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

Cleanup setup.cfg, conf.py, and tox.ini from cruft.

Change-Id: Icb08c704cb5d0d8004d0a5408822c9d53ae9c728
2020-02-04 15:05:33 +01:00
Corey Bryant 48d4a0fdf2 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: I5b08ef6ac98eb4650a2f3df5cb559144172fb29c
Story: #2005924
Task: #34232
2019-07-05 14:17:15 -04:00
Zuul 13801a59d3 Merge "Updates for OpenDev transition" 2019-05-04 18:49:41 +00:00
Ghanshyam Mann 4465e2501d 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: I56c541c6afda611d10bb6d30af9aa6a86cf948c6
2019-04-22 23:36:49 +00:00
Dean Troyer ffb579b76c Updates for OpenDev transition
Change-Id: If5a40b37102d4f729c5eb5a0316f7e3857afe151
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-21 10:07:45 -05:00
Doug Hellmann 838fc650a9 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: I6b107fce3daa8292b5fe6b5730a03008bf8987f0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 15:27:00 -04:00
Doug Hellmann 73a5d6529f 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.

Update the lower bound for PrettyTable so the unit tests pass.

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

Change-Id: Ia146248b505e66adf871d17ae1e4921d7888bb85
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-09 10:24:28 -04:00
Monty Taylor d8cb8ca09b Remove tox_install.sh and just pass -c in tox
The tox_install.sh scripts are there to enable dealing with constraints
support. All of that can be accomplished directly, it turns out, by
simply adding the -c line to the requirements list.

Remove tox_install.sh and just set constraints directly.

Change-Id: I888ee148995c080f793f90e168613348283d0ff0
2017-12-02 17:05:45 +00:00
Monty Taylor 2f687e3373
Move doc requirements to doc/requirements.txt
Put these in place as a setup for the new versions of the doc build
jobs. Keep using them from the normal dep list until the jobs are
changed.

While we're here, update the docs env to use sphinx-build instead of
python setup.py build_sphinx. Also add python2.7 to the docs env, since
I accidentally tried building it with my python3 tox and it blew up
substantially.

Change-Id: I0fcc50c4c396758e839c329ce786a6f609bb1342
2017-12-01 12:35:37 -06:00
Doug Hellmann 3662d5a809 do not require installing demo app to build docs
Remove the dependency on the demoapp and just add it to the import
path so it is available to be imported. Copy the entry point settings
into the main cliff setup.cfg to ensure they are registered for the
doc build to find.

Change-Id: I390410bc5247e8b6c8d0a8fec8e7ecb223d8d6c1
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-12-01 13:18:53 -05:00
Akihiro Motoki bc162de126
Use in-tree cliffdemo app for docs build
Previously cliffdemo is specified as the dependency, but it installs
cliffdemo from PyPI which is older. It is better to build the doc
from the in-tree cliffdemo app.

Change-Id: I5821b52b05f257a82d7cae317bf75ea0c8455cf2
2017-11-29 10:47:42 -06:00
Doug Hellmann ec7aedb921 add bandit to pep8 job
Add the bandit security scanner to the pep8 job.

Change-Id: I257529cabf0c4de2107783a6758d963ddc887ed9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-11-10 18:14:09 -05:00
Akihiro Motoki 3e028aa340 Generate demoapp CLI refernece
We have no way to check the cliff sphinxext work expectedly now.
It would be useful if we can check the cliff sphinxext in our doc.

Change-Id: If0578460dd678ffd33c20cf3707c08fa637eaf87
Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
2017-10-10 16:10:13 +01:00
Dean Troyer 5e836d6ee1 Updates for stestr
Change-Id: Ie66255fc59e351baf279123be26efbf324066212
2017-09-14 16:54:13 -05:00
Thomas Bechtold 5c37935139 Make openstackdocstheme an optional doc dependency
cliff is a library that is used outside of OpenStack, too. Having
a build requirement that needs something OpenStack specific makes
life in cases (eg. for downstream packagers) more difficult.
So let's make openstackdocstheme an optional requirement.

Change-Id: I0f94a431be083b8b4baec850b1885ba07b5bf5c2
2017-08-07 09:28:04 +02:00
Doug Hellmann c548b7b44c covert test suite to use testrepository
Drop the use of nose in favor of testrepository. Set up the gitignore
rules for the output files.

Add coverage reporting to test jobs.

Update tox.ini so the default environments make sense so it is possible
to just run "tox" for local development.

Change-Id: Ieeffdde3bb8a1869af01f5be2bc682a1a834ba13
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-04-23 10:16:30 -04:00
gengchc2 4aa2da591c 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: I8fc96da9fcbdebdbd71491b7115e65a1e67bd252
2017-03-13 21:09:38 +00:00
Tony Breeds 10f5b920d8 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 cliff and at the same time pull any required
libraries from git.

Also the egg name fro python-neutronclient is wrong resulting in
warnings in the logs[1] so correct that wheil re-writing the deps in
tox.ini

[1] http://logs.openstack.org/42/412742/1/check/gate-cliff-tox-neutronclient-tip-ubuntu-xenial/e1ce5c0/console.html#_2016-12-20_04_40_50_638986

Change-Id: Ifa5cc8446cfbfec0c8b48b293feb76ce66a34d92
2017-01-04 08:55:06 +11:00
Tony Breeds f55c13c2fe Remove tox environments that no longer work
Remove neutronclient-stable and openstackclient-stable which are designed to
run the latest cliff code/change under review against those 2 libraries to
reduce the chances of regressions.  At some point in the past they ceased
to function as expected and rather then correct them remove them as they're
not used in the gate anyway.

Change-Id: I8fa88134c730ed55afc40c6513f135912cbed5e6
2017-01-04 08:54:20 +11:00
Tony Xu 337610d156 Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim
support for Python 3.5 in the classifier.
This patch also adds the convenience py35 venv.

Change-Id: Ia67e5efb2deb62942914b31d04f217308d0be304
2016-10-25 22:58:26 +08:00
ChangBo Guo(gcb) 12a544a091 Drop Python 2.6 support
* Remove py2.6 from tox.ini
* Use itertools.compress(added in python 2.7) directly
* Use logging.NullHandler(added in python 2.7) directly
* Remove python 2.6 bug work around and related tests

Change-Id: Ie56a1590b9d4f0c544ebc5e7a4d40624e1ef4359
2016-02-11 01:55:34 -05:00
TerryHowe b1c17f657a Remove py26 as a default test from tox.ini
Change-Id: Ib3180081c95cbdb8f966e13c0669dc96c6bb2579
2015-07-24 19:06:36 +00:00
TerryHowe b0c92065e7 Remove requirements.txt from tox.ini
From lifeless: pbr reflects the package dependencies from
requirements.txt into the sdist that tox builds.

Change-Id: If54f291e4f3f1a05a1b6142e724cbd33110bac1d
2015-07-17 11:24:47 -06:00
TerryHowe 1f21e0f209 Fix pep8 tests for lambda
Change-Id: I1c23d025fadcf38e64fe5c9dd63cc7c17b698ea7
2015-02-20 09:33:20 -07:00
Doug Hellmann f72da89f28 Fix git repo urls in tox.ini
Update the URLs for projects being installed from source.

Update the installation command to match what the rest of the Oslo
projects use.

Remove the py33 target from the default list.

Change-Id: I6f048f17aff33a2d8da88b658b2a408cfc9315d3
2015-02-19 16:15:16 -05:00
Doug Hellmann 476c1dcba1 Bring doc build up to standard
Move the requirements definitions and documentation files to the
standard places used by other OpenStack projects so our doc publishing
jobs will work.

Remove the todo extension and all todo items from the documentation.

Change-Id: Iea630d827976fe517afacf4e373b3a125efff9c9
2014-10-26 00:22:44 +00:00
Jenkins 26838213e1 Merge "Add docs environment to tox.ini" 2014-09-11 04:29:24 +00:00
Monty Taylor d636fab217 Add docs environment to tox.ini
As per the governance resolution https://review.openstack.org/119875,
projects should have a docs environment in their tox.ini testing
interface. Add one.

Change-Id: I35e3142a0e21760136ea31a630f67a0df39bf720
2014-09-08 13:47:48 -07:00
Jeremy Stanley a010edc26b Work toward Python 3.4 support and testing
Change-Id: I6b9f7dd4fc4f5e876f566816e19aabd902f5481a
2014-09-03 19:03:23 +00:00
Doug Hellmann ac1347cde4 Clean up default tox environment list
Reorder the list to place python 3.3 first to avoid the issue with
python 2.6/7 choosing a dbm format not available in 3.3.

Remove python 3.2 from the default list so that running tox without any
arguments runs a useful set of tests.

Change-Id: I181f73871df16b44de6426f7cddc40956e338c72
2014-07-25 11:48:56 -04:00
Doug Hellmann a52c09fa34 add doc requirements to venv
Change-Id: Idb93d5ad7e9987a60cb5845e83ccdcab49f35f65
2014-04-03 07:36:51 -07:00
Doug Hellmann 5fad56e89f Add integration tests with known consumers
Run the tests of some consumers of cliff to ensure that changes
being made do not break the apps or downsteam libraries.

Change-Id: Ifded67608b49044cc6a0832389ad7fe825148a3c
2014-01-03 22:58:50 +00:00
Doug Hellmann 472c11cea1 add venv environ to tox config
Change-Id: I9c2091ccac212e7bd8f5f6af571426dd10a1d18e
2014-01-03 11:54:02 -05:00
Doug Hellmann 79a8791e7f Move to stackforge
Update links in documentation, add a contributing file, and update the
tox configuration file.

Change-Id: I42b5a652501160978c7896b8eabfb46061cd80ed
2013-12-20 22:49:02 +00:00
Doug Hellmann 9939729827 add pypy test env configuration
Change-Id: Iff4023d0078b7c1ac38396725f314f44e2ab2ffc
2013-09-23 15:45:31 -04:00
Doug Hellmann e957181c35 force python2.6 for that test env
Change-Id: I3aa10ae666c5806048145b7640e705bc5fca16ea
2013-08-16 12:40:00 -04:00
Doug Hellmann 50de738446 move tests into cliff package
Change-Id: I1c1f20b51fdfb84b3ed657d26dccedfd23e780eb
2013-07-26 15:19:03 -04:00
Doug Hellmann 3c08b794b2 turn off distribute in tox
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-12 10:57:34 -04:00
Doug Hellmann b8b0c21977 fix flake8 issues with setup.py
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-11 14:01:44 -04:00
Doug Hellmann fba2c8abea add python 3.3 to tox
Change-Id: I55c1238e078ade1aff02cb026c32c2e0120b4b17
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-03-26 16:56:16 -04:00
Doug Hellmann c56d60512c add style checks to tests
Change-Id: I34990c619e66df21148f28bc6d6d743332a4fa16
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-03-16 13:37:18 -07:00
Doug Hellmann 18f649c229 use flake8 for style checks
Change-Id: I25af2e978a8d11b84b930308516d597c75b387e0
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-03-16 11:04:11 -07:00
Mark McClain 6e8b642aa3 Add python2.6 support 2012-08-29 15:15:11 -04:00
Doug Hellmann cb6222fec4 pep8 cleanup 2012-06-01 10:37:13 -04:00