Commit Graph

32 Commits

Author SHA1 Message Date
Elod Illes bdd17286ef Fix pdf-docs target
Tox version 4 introduced changes that causes new fails in tox targets,
here with pdf-docs. This patch fixes gate.

Change-Id: I0af3e8f869011e76b8cda18cd3418192b437a7b6
2023-02-24 11:48:46 +01:00
Zuul 367eda35ba Merge "Use TOX_CONSTRAINTS_FILE" 2022-07-29 17:16:48 +00:00
Ghanshyam Mann 106f64aaef 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: I083dd5453c6ec0d6d7f35159a8caee053166f860
2022-07-30 01:13:24 +09:00
jiaqi07 01e10a4190 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: Iace49466dd684eeadb0232473aea6c95f6bd55ba
2022-07-25 14:53:39 +08:00
Sean McGinnis ccdf1f9042
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: Icfe472e76835f2e44009110ef5814f2d0f4af2e4
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:47 -05:00
Andreas Jaeger a70fa6bc39 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: Iad5e3891c59713f7dd2cdb0a691a964ff37108cf
2020-03-31 13:13:32 +00:00
manchandavishal d409f50aaa Drop Django 1.11 support
Django 1.11 ends its extended support in April 2020 (which is before
Ussuri release), so horizon drops Django 1.11 support in Ussuri.

tox envs for non-primary Django versions are no longer needed in tox.ini
as testing environments for non-primary Django versions are setup in
the zuul jobs now.

horizon>=17.1.0 is required to use Django 2.2. requirements.txt and
lower-constraints.txt are updated accordingly. for more info. please
refer [1].
Depends-On: https://review.opendev.org/#/c/700733/
[1] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin

Change-Id: If78d9ce4206dae403f0cc03eb3c8601ba3bab752
2020-01-02 19:56:04 +00:00
manchandavishal e4989797fb [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

neutron-vpnass-dashboard is ready with python 3 and ok to drop the
python 2.7 support.

Also this patch update minimum tox version in tox.ini file.
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://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/

Change-Id: Iabd2e1dfb73ec03bf3ed7f8a2a6c6493f036242f
2019-11-27 08:01:39 +00:00
manchandavishal cb1c5e53b0 Add tox env and job for Django 2.2
Depends-On: https://review.opendev.org/#/c/681969/

Change-Id: I95407fe6f9b21ee589f80371663ed35ea2924cf4
2019-09-24 09:40:44 +00:00
manchandavishal 22211beac1 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: If722d87493b0965af4c6b0247606647d7eb29548
2019-09-19 15:49:45 +00:00
Akihiro Motoki 12f7525f89 PDF documentation build
The document is simple enough, so 'howto' is specified as
documentclass instead of 'manual' as most projects do.

Change-Id: Iea024acb205b1045369367bdbf8e800793fedd2f
Story: 2006099
Task: 35136
2019-08-27 17:45:38 +09:00
Corey Bryant 766ad9ecd6 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: Ibc812a81ff6fa0ddf0d6184f2dc255df8c87ca9b
Story: #2005924
Task: #34225
2019-07-05 13:54:56 -04:00
caoyuan 37dcb0f641 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ib2a5eb220be5e3004b6aff15e1fad0bc3162ebe6
2019-04-24 13:30:12 +08:00
Ghanshyam Mann acacf08908 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: Ifc3da467d70e383cbf3c3b2c90113254504b07a0
2019-04-15 19:00:23 +00:00
Akihiro Motoki 82a046cec4 Bump hacking to 1.1.0
Ignore W504 and F405 by configurations.
Reasons of disabling them are explained as comments in tox.ini.
They are already ignored in the horizon repository and
AFAICT it is not easy to avoid them in horizon plugins as well.

Fixes the following new error:
* E123 closing bracket does not match indentation of opening bracket's line

Change-Id: Ic2154fff3b90cebbfba86deb8cf832232682d347
2019-02-14 01:52:13 +09:00
Zuul e49377a974 Merge "fix tox python3 overrides" 2018-06-21 17:09:45 +00:00
huang.zhiping b91f8c0d67 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: I7e6d76b8dd2b037e766d11d1cf1560c0b08c637b
2018-06-09 18:35:30 +08:00
Akihiro Motoki bf02144549 Add python3 django 1.11 job instead of django 2.0 job
Django 2.0 is now used in tox py35 job, so there is no need for
py35dj20 job. Instead, Django 1.11 with python3 is not covered.

- py35dj20 job is dropped from tox.ini.
- python3-django111 is added to tox.ini.
  python3 is specified to basepython to avoid a specific python version.
- .zuul.yaml is updated to consume horizon-openstack-tox-python3-django111
  and drop horizon-openstack-tox-py35dj20.

Change-Id: I1d990e8c9ab2d979a5e462361cf7a8e3d461138c
2018-06-08 10:26:48 +00:00
Akihiro Motoki f9f43f1a8f Follow the new PTI for document build
The detail is described in the following links:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Our documentation build actually does not depends on Django
as we don't create source code reference.
It is a good chance to drop Django dependencies from the doc build.

Change-Id: I7323187a40dbd41848cee983a90dfcf29d74a77d
2018-05-08 07:19:13 +09:00
Akihiro Motoki d9fd377e29 Django 2.0 support
Replace django.core.urlresolves with django.urls

(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was depreacted in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3

Add py35dj20 job to test Django 2.0 integration.
Also drops py27dj110 from tox.ini as horizon droped
Django 1.10 support in Rocky.

Change-Id: Ieb4364d9c46f126d4fa797b42f7602fb73f33a0f
2018-04-02 11:31:50 +09:00
Doug Hellmann 80b5dd2959 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.

--
neutron-vpnaas-dashboard specific:
horizon needs to install horizon master via tox-siblings,
so horizon needs to be specified as required-projects.

Change-Id: I1fc69c9809d408fdf1fb825bef58189d72fda716
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Signed-off-by: Akihiro Motoki <amotoki@gmail.com>
2018-03-27 17:34:11 +09:00
Akihiro Motoki fb159c0d41 Avoid tox-install.sh
Instead of using tox-install.sh, we can install horizon and neutron
now directly from pypi - or use the current branch in CI system using
tox-siblings.

Update tox.ini for this change and add horizon to requirements file.

Change-Id: I114221774cf0e76774e9abfa26852fe3e9f8cb5d
2018-03-15 05:29:34 +09:00
Akihiro Motoki 5a7e49aef1 Drop BRANCH_NAME and CLIENT_NAME in tox.ini
These variables are not used in tools/tox_install.sh,
so they are unnecessary.

Change-Id: Id7fd18f24ee0fcbc65c81c3a23132e866fe56c1c
2018-02-15 03:31:59 +09:00
Monty Taylor d9ce89b640 Align tox_install.sh with other projects
The tox_install.sh here behaves a bit differently than the others, which
is causing some problems when trying to rework some of the shared gate jobs.

Align it to the form used in other repos.

Change-Id: I3d2b391fba9be6290eb245924014134fbdde717a
2017-11-22 18:41:26 +00:00
Cao Xuan Hoang 4654a7e9b7 Update tox from py34 to py35
While running tox, I see it runs against py34 instead of py35.
This patch update this point as per Infra.

Change-Id: I4f78c34c5e7e5ee262cd5fdcb9d5f9a2a065f45b
2017-09-22 11:15:28 +07:00
Akihiro Motoki 55337ba80a Use flake8-import-order plugin
In reviews we usually check import grouping but it is boring.
By using flake8-import-order plugin, we can avoid this.
It enforces loose checking so it sounds good to use it.
This flake8 plugin is already used in tempest.

Note that flake8-import-order version is pinned to avoid unexpected
breakage of pep8 job.

Setup for unit tests of hacking rules is tweaked to disable
flake8-import-order checks. This extension assumes an actual file exists
and causes hacking rule unit tests.

application-import-names needs to be specified in tox.ini
to ensure application imports are placed after third-party imports.

Change-Id: If2067b950737ae7ebc65b2311955754be795758f
2017-08-29 06:52:55 +00:00
Akihiro Motoki 21cf062be5 Consume horizon master
Previously the repository consumes horizon from amotoki's
private github repository for initial testing.
Let's switch it to the main horizon repository.

To test this, local.conf needs to be something like below:
(Patch set number may need to be changed.)
-----
enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas
enable_plugin neutron-vpnaas-dashboard https://git.openstack.org/openstack/neutron-vpnaas-dashboard refs/changes/05/476005/6
-----

Implement blueprint split-out-neutron-xaas-dashboards
Depends-On: Ib304ddef381d80011f7030fdd5049aab0e901ae6
Change-Id: I11a927ae799102def257edc5c18486acd3700299
2017-06-27 15:54:01 +00:00
Akihiro Motoki 53c163513c Setup documentation build 2017-05-20 23:51:40 +00:00
Akihiro Motoki 5ea44d4a92 Cleanup test env 2017-05-20 23:07:40 +00:00
Akihiro Motoki 7eab14a08d Update flake8 and hacking rules 2017-05-20 22:26:36 +00:00
Akihiro Motoki 814097bd2f Use horizon local fork w/o VPNaaS dashboard 2017-05-20 11:30:06 +09:00
Akihiro Motoki dc9ff338fe Setup test environment 2017-05-20 11:30:02 +09:00