Commit Graph

27 Commits

Author SHA1 Message Date
liyou01 daaef2951b Fix tox4 error
tox.ini started failing with Tox4 which had some
incompatible changes. One is passenv where we need
to pass each value in newline otherwise, it fails with
error:

 failed with pass_env values cannot contain whitespace,
 use comma to have multiple values in a single line,
 invalid values found.....

Other failure is due to the skipsdist = True.

Fixing tox.ini for tox4 changes.

Change-Id: Ib1e58d792ff12d3c3b72a001e04fa9b8c62d1ef8
2023-01-10 16:24:12 +01:00
Zuul 26af987323 Merge "Changed minversion in tox to 3.18.0" 2022-08-10 14:53:46 +00:00
Zuul b48c102e31 Merge "Replace deprecated UPPER_CONSTRAINTS_FILE variable" 2022-07-08 09:10:12 +00:00
likui c4e381e18f Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: Ic8901f6dddb0a4b6ca5777dda5ead264852fdf3f
2022-07-08 09:02:10 +08:00
Ghanshyam Mann ebd7334127 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I96aa562840823478139775fe33ea0f4ee495aef2
2022-07-07 10:39:03 +02:00
Tom Weininger e7b57a1210 Move to Python 3.8
Update Python base version from 3.6 to 3.8. For Zed the minimum
Python runtime versions are Python 3.8 and 3.9 [1]. As a third
Python version I also added 3.10 already.

Removed ThreadedHTTPServer and replaced it with ThreadingHTTPServer from
standard library, which is new in Python 3.7.

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

Depends-on: https://review.opendev.org/c/openstack/octavia/+/839604

Change-Id: I4f0d640879da5afaa4694484ad4c52f25445a8ae
2022-05-06 10:53:51 +02:00
likui c9e0e91a1f Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is old name and deprecated

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

Change-Id: Ic25b25a069fac3a5ceff60f46612300d01727e40
2021-08-18 11:14:12 +08:00
Zuul 5f7195466f Merge "Replace deprecated UPPER_CONSTRAINTS_FILE variable" 2021-08-12 09:51:37 +00:00
likui 6a9cd92ae0 Fix PDF docs build
Update tox config to include upper-constraints as dependencies. This
resolves issues with building PDF docs.

New pylint 2.9.0 provides some new checkers and detects new errors with
existing checkers:

 - consider-using-dict-items

Similar change was done in Octavia repo already.

Change-Id: I48106513291263a7f754cfe7f9edc3703f8fbb7a
2021-07-08 16:50:29 -04:00
likui c3fd4d17db Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is old name and deprecated

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

Change-Id: Ic2447c58d46ba1cceab2472866d0028ef5039c70
2021-05-17 16:27:38 +08:00
Brian Haley de91d1e1ed Stop configuring install_command in tox.
Currently, we are overriding 'install_command' to use 'pip'. This is
considered poor behavior and 'python -m pip' should be used instead:

https://snarky.ca/why-you-should-use-python-m-pip/

It turns out that this is the the default value provided by tox:

https://tox.readthedocs.io/en/latest/config.html#conf-install_command

So we can remove the line and simply use the default value.

Change-Id: Ib057c917b5703bc461630cab394fa36c882d6ea9
2020-10-14 14:13:14 -04:00
Andreas Jaeger 7b52b7caa5 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Change-Id: If11b38493aacc7b888a6b64bf50c1a2782efd9ae
2020-03-31 06:46:44 +00:00
Brian Haley 36902d90a4 Fix flake8 tox.ini directive
Do not specify posargs on flake8 line in pep8 section, as it
breaks using 'tox -e pep8 HEAD~1' to check just code changed
in current change. While here change to match octavia tree
regarding enabled extensions.

Also fixed basepython warning now generated after removing
python2 code.

Trivialfix

Change-Id: Ib4326a1947845a229418b6b4213efc9f2bb12b32
2020-01-02 14:57:17 -05:00
Brian Haley c9a1c39eee Stop testing python 2
Since it's no longer supported past Train, let's stop
running the tests.

Co-authored-by: Ajay Kumar <ajay.k@india.nec.com>

Change-Id: If81d0a45c423c173aa3c40dd2cfce37462dbf900
2019-12-09 18:09:13 -05:00
Michael Johnson 5ea72f9f2c Generate PDF documentation
Change-Id: I71a0820f2322be7f84ab6555b534368d76bb0359
Story: 2006101
Task: 35148
2019-09-13 10:51:05 -07:00
Michael Johnson 28f1e74546 Clean up octavia-lib docs and remove oslo.log
This patch cleans up the octavia-lib documentation and removes an
unused requirement for oslo.log.

Change-Id: I4ddcb51fcfb976e825cd204d5f4f561d60ee0455
2019-08-09 11:50:41 -07:00
Zuul 0c09bcc8df Merge "Add Python 3 Train unit tests" 2019-07-13 20:16:00 +00:00
Corey Bryant 6216fbb27c 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: I57e06cfdfc94f483d61ed517dc84bd0a461f1e73
Story: #2005924
Task: #34227
2019-07-05 14:04:37 -04:00
Michael Johnson 19fb4f19c9 Update tox.ini for new upper constraints strategy
The requirements team has defined a new strategy for handling
upper constraints[1]. This patch applies those strategies to
Octavia-lib.

[1] http://lists.openstack.org/pipermail/openstack-discuss/ \
    2019-May/006478.html

Change-Id: I573d10820fdf8e4ce74393b2eaef3cad87667e8e
2019-06-28 16:19:02 -07:00
Michael Johnson 3a55b28428 Add tox "requirements" env
This patch adds the "requirements" env to tox to allow local
requirements test runs.

Change-Id: I00f0307784137e5f7555105f992a0ccc5bc16838
2019-06-20 13:13:17 -07:00
caoyuan 625f171dcd Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I531e92ead8aad8930f477904d5202035067e9f7c
2019-06-05 21:37:22 +00:00
Michael Johnson effa28ac20 Add python 3.7 testing
This patch sets up octavia-lib to run the python 3.7 unit tests.

Change-Id: I65ad2a4b418da9ee198551aa6e2928ef3984d91b
2019-04-28 20:42:35 +00:00
Michael Johnson 1215103717 Remove python3.5 jobs for Train
The TC has decided that python 3.5 tests are not required for Train
forward[1]. This patch removes the python 3.5 jobs from octavia-lib.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/ \
    005097.html

Change-Id: Ice875dde4eeb82962f3c635cb312f157d9a8331a
2019-04-15 06:55:16 -07:00
Michael Johnson 7f3e0742c4 Add FLAVOR as a constant.
Change-Id: I60842ecf2cff3e2018931a250b9e5f11453e3d04
2019-02-04 14:11:32 -08:00
Carlos Goncalves 768465784c Add missing libraries to requirement files
Change-Id: I596d29bcadd409eb78bf1e456201bd5d616a6e84
2019-01-26 18:40:20 +01:00
Michael Johnson e55c7eccc9 Initial provider driver library checkin
This patch is the inital move of the provider driver modules from
Octavia to octavia-lib.
This patch also moves the required constants and makes them available
to the provider drivers.

Change-Id: I7c1b5d7ae59ce8971d21db225174095f8b5919ce
2018-11-12 10:39:44 -08:00
Michael Johnson 5f833c77d2 Initial cookie-cutter commit for octavia-lib
Setting up the base repository for octavia-lib.

Change-Id: I023fe839b39d9d826425aeca5e0fd39dc9c38275
2018-10-12 14:03:43 -07:00