Commit Graph

36 Commits

Author SHA1 Message Date
Ghanshyam Mann d78bf91ebc Fix tox4 error
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
2023-01-24 00:11:55 -06:00
Luigi Toscano f2e850019b Native Zuulv3 and fixes for python-zaqarclient-functional
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
2020-09-08 22:09:07 +02:00
Zuul 708b684e26 Merge "Update hacking for Python3" 2020-05-06 02:23:15 +00:00
Andreas Jaeger d399c7dbe1 Cleanup py27 support
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
2020-04-28 07:50:10 +02:00
Andreas Jaeger d7c3cb9799 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I3062215fcfc2e448e0f29402104496f80945aeee
2020-04-28 07:45:21 +02:00
Ghanshyam Mann 93811d1ab1 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-zaqarclient is ready with python 3 and ok to drop the
python 2.7 support.

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://review.opendev.org/#/c/691178/

Change-Id: I7df21753bccf435b81b5f42a63845d67fe209a55
2020-04-28 10:44:19 +08:00
Corey Bryant 374f3ad959 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: I2628f4502fec5031d5439ad1eed1b51b920f105f
Story: #2005924
Task: #34258
2019-08-26 11:50:18 +00:00
Zuul 789dc41cc9 Merge "Comply with Python PTI" 2018-09-12 07:25:42 +00:00
Doug Hellmann 1a50023196 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: If1a3a6e1c70e3ed99070f230d6dcdcc0beaa9e2b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-25 04:37:53 +00:00
Pavlo Shchelokovskyy 32c5ad3b06 Comply with Python PTI
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
2018-06-18 14:07:34 +03:00
xywang 06f40b8beb Fix doc CI failure
Change-Id: Ie7fa0d9882821273c9f0a2bdf3609260743804de
2018-06-11 15:57:39 +08:00
Nguyen Hai a38a7ecb63 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Remove [build_sphinx] section as described in:
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Change-Id: Ief4342133f5b2f094feb9816f154c6d17a2d028e
2018-03-30 00:04:19 +09:00
Doug Hellmann 0796199a19 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.

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>
2018-03-26 04:47:26 +00:00
Andreas Jaeger a827823aed Remove -U from pip install
'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
2017-12-02 19:19:55 +01:00
Andreas Jaeger 9a662f30bb Avoid tox_install.sh for constraints support
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
2017-12-02 09:45:23 +01:00
Rui Chen cdfc955f04 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: I2e7f5c8b6a86b4e121265bf625c23f2f7ff35dab
2017-02-09 10:25:12 +08:00
Tony Breeds 32feb8f712 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 python-zaqarclient.

Change-Id: I43da802224be8e3ff249a8fa1d5bd4d6475ba391
2016-12-21 22:58:17 +00:00
wangxiyuan c9db6cc642 Add releasenotes for client
Change-Id: Icf5c7e7048ba9a13f88245d4eee60b8d24ecdc83
2016-12-21 14:12:00 +08:00
Jenkins 5507161dfa Merge "Add Python 3.5 classifier and venv" 2016-12-19 03:12:15 +00:00
xianming mao 8c7afbe89a Delete deprecated directory openstack/common
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
2016-11-24 11:49:10 +00:00
Tony Xu 68e27da93d 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: I3c027c1201c011d1aaedbdb209f0c435d2097d70
2016-10-26 10:38:31 +08:00
Fei Long Wang 20f54aab89 Remove pypy support
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
2016-03-10 09:26:33 +13:00
Janonymous 15e804449e Put py34 first in the env order of tox
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
2015-12-26 16:42:40 +05:30
shu-mutou d49cdd8170 Drop py33 support
"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
2015-12-15 17:36:24 +09:00
Ondřej Nový 120f3a1d36 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I7984d64958d815745b8e7db0443c9a2ad8f1f224
2015-12-11 21:27:09 +01:00
Jenkins 176658c802 Merge "delete python bytecode before every test run" 2015-12-04 01:58:55 +00:00
Md Nadeem 66b703c69e Remove py26 support
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
2015-12-02 17:57:43 +09:00
Md Nadeem a995ccfcec delete python bytecode before every test run
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
2015-12-02 13:42:02 +09:00
Flavio Percoco d8a50610ed Setup developer docs for zaqarclient
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
2014-10-23 22:27:12 +02:00
Jeremy Stanley c328538890 Work toward Python 3.4 support and testing
Change-Id: I85ba559a368b5fc51f054649db490285e520f424
2014-09-03 19:06:07 +00:00
Flaper Fesp 793b0313f2 Update tox.ini and setup.cfg
Change-Id: I14a8fb9b959819001fafbe5550284fcec7dbe78b
2013-09-12 11:29:34 +02:00
Alex Gaynor fa7ff0a7df Added support for running the tests under PyPy with tox
This is a precursor to having them run under check and gate.

Change-Id: I1e56f44c370a444b99bd2a60ebe2d3843a9648b6
2013-08-28 10:41:37 -07:00
Alejandro Cabrera 2c39126c4b Gate on Python 3.3
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
2013-08-01 16:22:01 -04:00
Alessio Ababilov 5b385d116a Rename requires files to standard names
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
2013-07-10 13:15:38 +03:00
Alessio Ababilov 6125c86cf9 Migrate to pbr
Change-Id: Ib0a19dee8c138d91fda61635cd4f53cf25c965d3
Fixes: bug #1179007.
2013-07-10 13:15:03 +03:00
Flaper Fesp c6d5f92659 Lets get the party started :)
Change-Id: I0be6bb1d2016f3c7592eacc33d280706cc23c754
2013-05-07 17:09:55 +02:00