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
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>
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: I7a43ff6d91bad919dcaa450e66ef492a1d3a03ef
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
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>
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>
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
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
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
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
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
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
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
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
"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
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
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