Commit Graph

38 Commits

Author SHA1 Message Date
Ayumu Ueha 82bf387f77 Fix tox4 error
Remove skipsdist that it was never supported and causes breakage
when used with usedevelop.

Change-Id: Ia0c03eaa5474f13600880dd6eca79d284bba5ca8
2023-01-12 05:08:29 +00:00
Manpreet Kaur b7f27c3dc6 Update python testing classifier
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file and envlist in
tox.ini.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: Ic732cbd41691b11ae500eb9465423bb1d57c9a1e
2021-12-14 21:18:41 +05:30
Yasufumi Ogawa 861a57594b Drop test for lower constraints
As we agreed on IRC meeting[1], remain lower constraints test only
master branch of tacker and tacker-horizon to difficulty of maintaining
package depencencies for the recent pip dependency resolver. This patch
is to drop lower constraints test from python-tackerclient.

[1] https://meetings.opendev.org/meetings/tacker/2021/tacker.2021-09-14-08.02.log.txt

Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Change-Id: I4e10e76fb2ab06fb3269f115b0bd9b893265e2e6
2021-09-22 23:19:36 +09:00
Manpreet Kaur 4c590294ea Update min version of tox
This patch bumps the minimum version of tox to 3.18.0 [1].
It removes configuration of "install_command" option in tox, as it
turns out that this is the default value provided by tox [2].

[1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23
[2] https://tox.readthedocs.io/en/latest/config.html#conf-install_command

Change-Id: Ia5c5eb499bca5b1319098d86a2f2035f2d5d5efe
2021-05-11 13:16:41 +05:30
Manpreet Kaur 69d9668282 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated, refer [1].

This allows to use lower-constraints file as more readable way
instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: Ie55041121ab9a743285c6bcfd27233b1b60db636
2021-01-29 06:01:02 +05:30
Yasufumi Ogawa 8e2f5f854e Add py38 as a runtime in tox.ini
Drop py37 and add py38 for the latest python runtimes [1], although it
had to be updated in victoria.

[1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html

Change-Id: I48642a703d6d1fe8be3055ee5a48eaafd0a18067
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
2020-10-19 07:21:18 +00:00
Andreas Jaeger d2f4c1748c 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: I7a43ff6d91bad919dcaa450e66ef492a1d3a03ef
2020-04-09 19:55:03 +02:00
Ghanshyam Mann 5ff4c334e9 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-tackerclient 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: I74266f66cd9755208ddc2cc3a36c103c2bb95555
2019-12-13 23:46:06 +00:00
pengyuesheng a1667a9f58 Add Python 3 Train unit tests
See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Story: #2005924
Task: #34237

Change-Id: I32e05c3b0013dd3cb066f660a43ffd5b7896bd26
2019-08-02 11:12:11 +08:00
jacky06 47996394b3 Replace git.openstack.org URLs with opendev.org URLs
1. Replace git.openstack.org URLs with opendev.org URLs
2. Update some urls

Change-Id: Icf9a7857be01056c0967fed0c777f2f46a993b6c
2019-06-19 15:48:59 +08:00
dharmendra 6fd2d466ca Drop py35 jobs
Python 3.5 was the target runtime for the Rocky release. The current
target py3 runtime for Stein is Python 3.6, so there is no reason to
keep testing against the older version.

https://governance.openstack.org/tc/reference/runtimes/stein.html#python-runtime-for-stein

Change-Id: I136f092985be2d05ce933230add5f78469234b14
2019-04-30 09:24:30 +00:00
98k 6cb5d3c704 Add upper-constraints.txt to releasenotes tox environment
Without these dependencies, the releasenotes build does not actually
work.

Change-Id: Iabae8a5730d934473a36d9e2bc83a7005c1aca17
2019-02-11 05:53:32 +00:00
Vieri 2b87f41944 add python 3.6 unit test job
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: I6e5e543f2fcbeda881c506a34e6f55bcb3560c5b
Story: #2002586
2019-01-14 13:55:44 +00:00
Doug Hellmann efb7704778 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.

Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
Change-Id: I5279f9f798c1a9d198e951c8948db78821c7ed7b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-25 01:11:32 +09:00
Nguyen Hai e8b1634d8f Switch to using stestr
stestr is maintained project to which all Openstack projects
should migrate.

[1] https://etherpad.openstack.org/p/YVR-python-pti
[2] https://governance.openstack.org/tc/reference/pti/python.html

Change-Id: Icc11037bd56a75a8d9abbdfda10a832437502565
2018-06-07 17:57:58 +09:00
Doug Hellmann 6184fd9f27 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: Ib1838be4ecd55a070fa30990b25f3135b60c35d4
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 18:04:32 -04:00
Nguyen Hai e3b3d7e50c Add documentation for python-tackerclient
This patch also fix "InterpreterNotFound: pypy" error in tox.ini

This patch also follow the new PTI for document build [1][2]

[1] https://governance.openstack.org/tc/reference/project-testing-interface.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I9fb6637cb95603532b46f89dc4beab185278c833
Closes-bug: #1754556
Closes-bug: #1754926
2018-03-13 12:13:51 +09:00
Trinh Nguyen a6b721690c Fix "F821 undefined name 'unicode' error when run tox pep8
This patch fix the error when running tox pep8 on the master
branch of python-tackerclient:

./tackerclient/tacker/v1_0/vnfm/vnf.py:166:62: F821 undefined
name 'unicode'
            if isinstance(config, str) or isinstance(config, unicode):
                                                             ^
ERROR: InvocationError:
    '/home/projects/python-tackerclient/.tox/pep8/bin/flake8'

Change-Id: I366923e2759ffd85bb4594b82b55472bbdb7f783
Closes-bug: #1751441
2018-02-24 20:17:29 +09:00
yong sheng gong 09bf59d764 Add doc migration framework
Change-Id: Ia175bbe7d83fdc356aa5ecf474d30ba640ab7da4
Partial-Bug: 1706161
2017-12-21 13:42:00 +08:00
Andreas Jaeger 1dc4cbef6b 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: Id0c51375402e9ee1255d25c685821bace9b6084a
2017-12-02 16:59:28 +00:00
kavithahr 410865d358 The Python 3.5 is added
The Python 3 and 3.5 was missing in setup.cfg and tox.ini
hence added that version.

Change-Id: I36b67a969f0521fb7bb638623eddc5d944642dfe
2017-03-08 18:05:48 +05:30
Tony Breeds 64e41e103d 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-tackerclient.

Change-Id: Ibf4801a72637840cc5f908c4938c5d95077ef9d7
2016-12-21 13:29:52 +11:00
Tin Lam f48c03db9b Add reno support to python-tackerclient
Added release notes management to python-tackerclient project similar
to other OpenStack projects.  See [1].

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-November/078301.html

Change-Id: Ib7cf5ac01988fd51dab6196b71e1a9a2e9eff190
2016-06-05 01:54:50 -05:00
Ronald Bradford 231478cb3a Cleanup Oslo Incubator code
Graduated to oslo.i18n.
Remove unused libraries.

Implements: blueprint graduate-oslo-i18n [1]
https://blueprints.launchpad.net/oslo-incubator/+spec/graduate-oslo-i18n

Change-Id: I753cf17f5a798afbb868ae400e91f4ccd00879ef
2016-03-18 13:44:00 -04:00
Martin Oemke 4878cc999c Clean up flake8 ignore list
Due to update of hacking H302 is not needed any more.

Change-Id: Ibc5b5e11e7021caed19c895786f920c300e2109b
Related-Bug: 1516045
2016-01-27 22:02:03 +01:00
Martin Oemke ba46bbf7ac Fix H238 errors in tackerclient code
This Patch fixes all H238 errors and enables this test.

[H238]  Old style class declaration,
        use new style (inherit from `object`)

Change-Id: I184538cf6dcb97a178dcf017a21d878712063f91
Related-Bug: 1516045
2015-12-30 11:55:31 +00:00
Jenkins 95c07f50e1 Merge "Put py34 first in the env order of tox" 2015-12-28 19:02:49 +00:00
Martin Oemke 0820bb1a10 Fix H405 errors in tackerclient code
This Patch fixes all H405 errors and enables this test.
[H405] Multi line docstring summary not separated with an empty line

Change-Id: I93a9f477f27c259bbfed20ff93105e63d5f6f82c
Related-Bug: 1516045
2015-12-26 01:23:16 +01:00
Janonymous 00eb1118c4 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 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.

Change-Id: I33ec32c58539db9770252628cc754e0bb0121b28
Closes-bug: #1489059
2015-12-22 18:33:41 +05:30
Martin Oemke ca1ad7c930 Fix H105 errors in tackerclient code
This Patch fixes all H105 errors and enables this test.

[H105] Don’t use author tags. We use version control instead.

Change-Id: I60e9e844b420b31b8caa86d5338cf04322386506
Related-Bug: 1516045
2015-12-22 00:31:13 +01:00
Jenkins 73a38434fd Merge "Drop py33 support" 2015-12-19 00:52:36 +00:00
Martin Oemke 196ba01bac Fix E265, E129, E113 errors in tackerclient code
This Patch fixes all E265, E129, E113 errors and enables this test for all new patches to tacker.
[E265] block comment should start with '# '
[E129] visually indented line with same indent as next logical line
[E113] unexpected indentation

Change-Id: I708dd9e0c4f3edb0b52a865578aceace726d1c2e
Related-Bug: 1516045
2015-12-18 15:51:26 +01:00
shu-mutou b3e5932385 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: Ie7cd91f72b6bc80723286187ebe5d0bcb769d7d2
Closes-Bug: #1526170
2015-12-15 18:20:27 +09:00
Ondřej Nový 48f1111f8f 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: Ifd9b14f00995371ab3bcce1c8e0efcafe56fe862
2015-12-11 21:26:52 +01:00
ricolin ad5381a91d 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.
Closes-Bug: 1519510

Change-Id: Ie8dc40df5fddce298f31f7a3d5436493b9b090bb
2015-12-03 00:04:31 +08:00
yong sheng gong 6242db9fb1 Update requirements according to global requirements
This is important because if we install tacker along with
other openstack components, this inconsistency will break
system.

Due to the upgrade of hacking, current codes violate many
new rules. These violations will be fixed in follow up
patches.

Author:    yong sheng gong <gong.yongsheng@99cloud.net>
Change-Id: Ib30d31ca804aebf43c02eb8247c718ab00629f6f
Closes-bug: 1516045
2015-11-16 17:02:47 +08:00
Jeremy Stanley 8d1c86bafd Work toward Python 3.4 support and testing
Change-Id: Ib4be154916f1894646cc184459e986f1043de187
2014-09-03 19:16:03 +00:00
Isaku Yamahata 872ab5e336 import python-neutronclient of 1bce6e437e2dd1fa5de6fc2ccdd0ee8ac3f44d18
Imports python-neutornclient whose changeset is as follows

> commit 1bce6e437e2dd1fa5de6fc2ccdd0ee8ac3f44d18
> Merge: 9c77675 cbdd56d
> Author: Jenkins <jenkins@review.openstack.org>
> Date:   Sat Jun 14 04:46:39 2014 +0000
>
>     Merge "Add OverQuotaClient as exception to neutronclient"

Change-Id: I596915c60d349eb5afbc3de245f580f2dd37e270
2014-07-04 19:10:19 +09:00