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
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>
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
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>
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>
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
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
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>
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
Add the bandit security scanner to the pep8 job.
Change-Id: I257529cabf0c4de2107783a6758d963ddc887ed9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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>
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
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>
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
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
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
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
* 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
From lifeless: pbr reflects the package dependencies from
requirements.txt into the sdist that tox builds.
Change-Id: If54f291e4f3f1a05a1b6142e724cbd33110bac1d
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
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
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
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
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