tox.ini started failing with Tox4 which had some
incompatible changes. One of them is changing
whitelist to allowlist. Other failure is due to
the skipsdist = True.
Fixing tox.ini for tox4 changes.
Change-Id: I113bb6dd90efe0f9b272a76939947bd913fe707f
This change converts the existing legacy job into a native one.
It also re-enables the execution of functional tests, which are
otherwise not executed. It seems the initial idea of this job
was to run them, but this part has been probably lost over time.
This require a new 'functional' tox environment which focuses
on the functional tests.
Without the functional tests, this job is just a
simple devstack deployment job which tests the installability
of zaqarclient, but without really going through its code.
Unfortunately, as they haven't been executed for a while,
only a minority of the functional tests work. Only a subset
of them has been then enabled for now.
Change-Id: I6f33ca4b2da44cdaf4c85d30a3d520b0fdddce85
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 install_command from tox.ini, the default is fine
Change-Id: I623b1e0bfc2ec8cd9ce017556101cdeb06a1bb4c
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: I3062215fcfc2e448e0f29402104496f80945aeee
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: If1a3a6e1c70e3ed99070f230d6dcdcc0beaa9e2b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
as described in
https://governance.openstack.org/tc/reference/pti/python.html
projects should use 'stestr' as unit tests runner.
This patch moves unit and coverage tests to use stestr as test runner
instead of nose.
Change-Id: I8508caa6ea08c5c98b67f34be7f61417df2d7c1e
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: Ia9d96bf5542b8aa3d1b3a9c19161b4509d2d1124
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.
With tools/tox_install.sh - which a previous change of mine removed -
the -U was not harmful, but with the current set up, it might cause
upgrades, so remove it.
Change-Id: Id5de420cbccc27ced25a595b9502b9d13b77b373
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: I1d1d00202782b421d0c0fa4c4becf1fcf35612d6
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: I2e7f5c8b6a86b4e121265bf625c23f2f7ff35dab
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-zaqarclient.
Change-Id: I43da802224be8e3ff249a8fa1d5bd4d6475ba391
Directory openstack/common has been out of date,so we can delete it,
and we should also delete this directory in flake8 exclude list.
Change-Id: I98af8dd332807343730b81a7f2c8422b63e6c38d
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: I3c027c1201c011d1aaedbdb209f0c435d2097d70
Zaqar client is depending on keystone client and openstack client,
both of them don't support pypy. And our pypy gate is always failed,
and we don't have enough resource to fix it. So this patch is going
to remove the pypy support for zaqar client.
Change-Id: I9fc5694143dc7404cb7a4d7426cfaa8692f2f4d9
To solve the problem of "db type could
not be determined" on py34 we have to run py34 env before py27.
This patch puts py34 first on the tox.ini list of envs to avoid this
problem to happen.
Change-Id: I25d1bbd1abaafa4a443d36c9b68481891391ddf7
Closes-bug: #1489059
"Python 3.3 support is being dropped since OpenStack Liberty."
written in following URL.
https://wiki.openstack.org/wiki/Python3
And already the infra team and the oslo team are dropping py33
support from their projects.
Since we rely on oslo for a lot of our work, and depend on infra
for our CI, we should drop py33 support too.
Change-Id: Iadcce946a0e4646c99cf99a9cf4cc207bb40ca8f
Closes-Bug: #1526170
As of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.
Change-Id: I6420a95a58c85830412ae5792208d952116ca7e6
Closes-Bug: 1519510
Bring over the cleaning line from run_tests.sh for the pyc files to
all the tox runs.
This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.
Change-Id: Ibcc824370ed3d48835780cca6c1075856f1dfacc
Closes-Bug: #1368661
Zaqar's client library is lacking of any kind of documentation. This
needs to be fixed, hence this patch. The patch adds the docs'
infrastructure to start writing the required documentation for the
library.
Change-Id: Ife171e352da4ec977202efcb3f1dcf573edcdc27
This makes OS-jenkins run our tests in Python 3.3 mode in addition to
Python 2.6 and Python 2.7.
Rationale: keep our Python 3 compatibility high
Change-Id: I0c5d4948462d99b4f561c35232204c7ba4075ca8
Rename tools/pip-requires to requirements.txt and
tools/test-requires to test-requirements.txt.
These are standard files, and tools in the
general world are growing intelligence about them.
Fixes: bug #1179008
Change-Id: Iecf14056de51aed75f8ce46c6ef43f3167d7736d