tox now always recreates an env although the env is shared using envdir
options.
~~~
$ tox -e genpolicy
genpolicy: recreate env because env type changed from
{'name': 'genconfig', 'type': 'VirtualEnvRunner'} to
{'name': 'genpolicy', 'type': 'VirtualEnvRunner'}
~~~
According to the maintainer of tox, this functionality is not intended
to be supported.
https://github.com/tox-dev/tox/issues/425#issuecomment-1011944293
Change-Id: I77853c2a1b3a12b62db6100c8537ae35cf94b99e
Well, sort of. We enable them but immediately filter out the ones we're
actually seeing, the rationale being that we can address these in a
piecemeal fashion without the risk of introducing new issues.
There's a bit more to be done here. However, the work done in oslo.db
and other projects [1] should provide a guide for how to resolve the
outstanding issues.
[1] https://review.opendev.org/q/topic:sqlalchemy-20
Change-Id: I36a79377016a6913f2c63cac4c820ad8342ffbf6
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Python 3 is EOL. No environment should be defaulting to it. Our CI
environments certainly aren't.
Change-Id: I317072eab37ffe284c820a4c41cb6df82f1a05c5
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
tox.ini started failing with Tox4 which had some
incompatible changes. One of them is due to the
skipsdist = True.
Fixing tox.ini for tox4 changes.
Change-Id: Ib8cf6b88af55d96fde7e1d4d46f6930d2e756a29
This also adds the requirements.txt to the docs tox env,
to fix the failing openstack-tox-docs CI job.
Change-Id: Id920d274100078ad922f8686d29c0b9a8612ac7d
The B319 check to ensure no use of xrange is not an issue in a Python
3-only codebase, while the unittest assert-focused B311, B312 and B321
checks duplicate H203, H204 and H203 (again) from hacking respectively.
An unnecessary 'py3pep8' tox environment is removed since the standard
'pep8' environment uses Python 3 now.
Change-Id: I8eb8c6accd1c2f2c7851a08b372235699a971ad9
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Set the 'PYTHONDONTWRITEBYTECODE' environment variable to avoid
generating '*.pyc' files, allowing us to remove explicit cleanup of
these from some tox environments.
Change-Id: I9b2cb923ec48f997a31d40325b6f0b2c025f8ee9
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found by updated hacking version.
Update local hacking checks for new flake8, remove
test B314 since that tests difference between Python 2 and 3,
there's no need to advise using six anymore.
Use oslotest.base directly, this fixes the hacking tests.
Remove ddt usage in testsuite, it does not work with current hacking
version anymore.
Change-Id: Iee4584c6fde08728c017468d9de1db73f2c79d8d
Move constraints into deps, remove install_cmd.
The default install_cmd is just fine to use.
Increase constraints since they are now finally tested, see
http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014237.html
showed that they are broken. The lower-constraints job is optional,
remove it.
Change-Id: Ieda45ef624e0cd4e60216b740cc04aff0783e863
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove Babel from requirements, it's not needed for running.
- Sync docs deps in tox.ini
Change-Id: Ie1fccdc777be978075e4689eda6c62578bd463e4
This patch updates the gate jobs to stop using legacy
jobs and use the new Zuul v3 jobs instead.
The tempest tests will be re-enabled in a future patch.
Depends-On: I5d2bda5e653ee5d7c17cb7697247802916bdc5f7
Change-Id: Id91f44e8053cf4f40224959021d43736d5525107
This patch adds a `pdf-docs` tox target that will build
PDF versions of our docs. As per the Train community goal:
https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html
Add sphinxcontrib-svg2pdfconverter to doc/requirements.txt
to convert our SVGs.
Also, due to the opposing graphic format, the .gif file
had to be converted (not renamed) to .png so the LaTeX
builder would accept and read the images.
Change-Id: I6384e56222991d39f4fd1bc99e82be6c89fb16a3
Story: 2006072
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.
Note that redirects will be set up as well but let's point now to the
new location.
Fix api-guide building: Use docs requirements.
For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html
Change-Id: I16af26b25e36ab1281f109cd5765db1ead9f3df6
`sphinx-build` command is not found in test-env.
To fix pep8, also blacklist the new bandit warning B105, this will
be fixed in a followup.
Change-Id: Ic1b8c3a4bfd67fff082297b881df66ffb9ca2c50
This is empty and unused, instead there's a in-doc api-ref that is used.
Let's drop this separate copy.
Related-Bug: #1827243
Depends-On: https://review.opendev.org/656671
Change-Id: I0b37ea0fdf15e30244d86a36026e8c9ebc2f7e70
The tests are not written to be run in parallel.
All Quota tests fail itermittenly when run in parallel.
Change-Id: If1b19ffe56d553c500a454731195db455941ed9f
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: Id5b845289c53e012833a38e44598c49335d2c809
The releasenotes tox target fails without this patch because it
can't find sphinx-build.
This patch fixes the releasenotes tox target to use the documentation
requirements file to make sure sphinx is installed in the tox venv.
Change-Id: I55f69e1aa1b3f426cc732cc38947d70bdb0634a5
The 'docs' target currently builds the documentation trees in 'api-ref' and
'api-guide', in addition to 'doc'. This massively increases the amount of
time docs take to build both locally and in the gate. It's not necessary for
gate, since separate jobs take care of the other documents for barbican.
As such, we should stop doing it.
For users that *do* care about this (for whatever reason) a new 'all-docs'
target is included.
Change-Id: I8b65c16d7bf574f045b702de853ad81389f140d5
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: Iec4de0522bcf2a7a81ce6f5ee5aa96ec917588b1
Allow for setting the PKCS#11 encryption and hmac algorithms
in the config file.
This patch also implements CKM_AES_CBC encryption and
decryption.
Change-Id: I847b4b17df51bc4846c37a1e19e6adec76f46b38
Co-Authored-By: Ade Lee <alee@redhat.com>
This patch adds a doc8 check of .rst files to the current pep8 check.
It includes fixes to the .rst files that didn't pass the check.
Change-Id: If9c6fbf51033cd420c605443dbb3049535024697
Vault secretstore plugin doesn't support asymmetric key generation for
now, so disable the related functional tests.
With this patch, the following functional tests sould be skipped:
api.v1.functional.test_orders.OrdersTestCase.test_encryption_using_generated_key
api.v1.functional.test_rsa.RSATestCase.test_rsa_order_certificate_from_ordered_container
api.v1.functional.test_rsa.RSATestCase.test_rsa_order_certificate_from_ordered_container_with_pass
api.v1.functional.test_rsa.RSATestCase.test_rsa_order_container
api.v1.functional.test_rsa.RSATestCase.test_rsa_order_container_with_passphrase
Change-Id: If416f38cb87bdb279a05263b99b5f2af916c1229
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: Iee69eae0043a401eb355a1fcb957879904882e85
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: I0db7cdc38ed8392ec4358467115b6d715c71bb29
Signed-off-by: Doug Hellmann <doug@doughellmann.com>