In Zed cycle, we have dropped the python 3.6/3.7 testing
and its support. Moving the py36 job to py3 based so that they run
on latest supported python 3. Updating the python classifier also to reflect the same.
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.
This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
Signed-off-by: Sean McGinnis <firstname.lastname@example.org>
Tox targets for docs jobs were missing the upper constraints
enforcement. This adds constrained dependency installation for these
Signed-off-by: Sean McGinnis <email@example.com>
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Remove hacking and friends from lower-constraints, they are not needed
Revive the S3 driver that was supported up to Mitaka and add multiple
store support to correspond with the features added to glance_store from
Newton to U cycle. In addition, the use of the S3 SDK used by the Mitaka
S3 driver has been deprecated, so this implementation will be changed
to use the new version.
Implements: blueprint re-support-s3-driver
The current Python Testing Interface specifies the use of
stester, so update tox.ini to use it.
Co-Authored-By: Nguyen Hai <firstname.lastname@example.org>
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.
Signed-off-by: Doug Hellmann <email@example.com>
Brings the legacy functional test jobs into the project repository,
rewritten for zuul3. The base functional test class has been refactored
to use clouds.yaml, and the functional-swift test has been refactored
to use keystoneauth1. The devstack hooks have been removed as they
are not necessary with zuul3.
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.
Co-authored-By: Nguyen Van Trung <firstname.lastname@example.org>
Infra is now ready to use constraints everywhere, adapt the
environments to use the default install command instead of a specific
non-constrainted install command.
With this change, now all tox environments use constraints.
As per the deprecation indicated in change
I139c36c2d591a55f0f91ea32efa963f80c28e444 , we are on track to removing
the S3 driver from glance_store in Newton.
The process of maintainers for individual drives was initiated in .
However, S3 doesn't have a maintainer and has been deprecated in Mitaka.
This commit intends to remove the S3 driver completely from the
glance_store source tree. If required, we recommend that this driver be
maintained outside of the glance_store source tree until you or someone
you know intend to support the code for long term. In the later case, we
hope that you will welcome our spec process to help plan the project
This patch adds bandit security linter to tox jobs. It ignores
files in the 'tests' directory.
This patch will also fix or exclude any issues as a result from
Currently all the functional tests are ran together in one job. This
patch breaks the tests apart so only certain parts of them have to be ran.
This will mean the tests can be ran in parallel and only the particular
ones that are required, as the functional tests require that backend to
An extra -c causes the script to read the url in error.
The tools/tox_install.sh script is using this -c option:
So, -c is unnecessary in tox.ini.
This will force pip install to use the upper-constraints.txt specified
version of pip modules. When you don't do this, you are out on the
bleeding edge and become unstable everytime some python library in the
wide world changes in a way that you don't expect.
There are a few 'post' jobs as Andreas has mentioned on this review,
that have the install_command overridden (until that will be supported
in upstream infra).
This change has been inspired by
Ie1133e4c020106e8098685ba9125f84b356d8e0c , notes from jaegerandi in the
openstack/glance's tox.ini file and Ihar's python-neutronclient's fix
Make use of the testr OpenStack wrapper ostestr instead of
Signed-off-by: Danny Al-Gaaf <email@example.com>
To solve the problem of "db type could not be determined" on py34 we
have to run first the py34 env to, then, run py27. This patch puts py34
first on the tox.ini list of envs to avoid this problem to happen.
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 flag violations and they were fixed
in this patch.
This adds explicit dependencies for the stores in the extras section.
Users can now install glance_store and specify which backends to install
dependencies. For example:
$ pip install glance_store[swift]
should install glance_store and the dependences to use the swift store
(currently python-swiftclient and httplib2).
This has a number of benefits, primarily that if the dependencies for a
particular store change, the installation process should remain the
Remove py33 from tox.ini and remove Python 2.6 classifier from
setup.cfg. OpenStack doesn't support Python 2.6 and 3.3 anymore. There
is no py26 nor py33 gate.