Commit Graph

38 Commits

Author SHA1 Message Date
Elod Illes 5dc68bb5d5 Fix tox 4 compatibility issues
Tox version 4 introduced changes that causes new failures in tox jobs.
This patch fixes these issues.

Change-Id: I76b01501a60941ff33caf9064a7771f60a1b891b
2023-02-24 12:02:39 +01:00
Zuul d5792c9c3f Merge "Replace deprecated UPPER_CONSTRAINTS_FILE variable" 2022-07-20 14:06:46 +00:00
likui 85962675a1 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: I274a49b402caec096c377cd4954f85d1b74b48c5
2022-05-17 17:57:27 +08:00
maliangyi 48943b1feb Update python testing as per zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing and its
support. Add release notes and update the python classfier for the same.

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

Change-Id: I3598276117406260194e9469ae8420ed901c15b0
2022-05-16 15:22:59 +08:00
zhouhenglc 6ab2105bd9 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: I5bc51f982fa516acbda4b48466504be336cf4933
2022-05-03 15:19:57 +08:00
ZhouHeng e8463a1ad4 Revert "Retire neutron-fwaas-dashboard project"
This reverts commit 4a0f1a3ae5.

Reason for revert:
Neutron drivers team agreed to include neutron-fwaas again to Neutron
stadium[1], and goverance change is proposed at [2].

[1] https://meetings.opendev.org/meetings/neutron_drivers/2022/neutron_drivers.2022-01-28-14.00.log.html#l-14
[2] https://review.opendev.org/c/openstack/governance/+/828078

Change-Id: I5018dfdf9ea866e113a17f9bd5a3b153e4f1c08f
2022-02-10 20:58:31 +08:00
Slawek Kaplonski 4a0f1a3ae5 Retire neutron-fwaas-dashboard project
Governance change is proposed at [1] and project config patch is
proposed at [2]

[1] https://review.opendev.org/735828
[2] https://review.opendev.org/#/c/735812/

Change-Id: Ib78ff301076c0295aad9b1bf49eed0f1a7adb7c2
2020-06-16 12:39:14 +02:00
Zuul 322dbc5113 Merge "Cleanup py27 support" 2020-05-04 12:21:05 +00:00
Sean McGinnis ec072d3dec
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: Ied60fa88c5a2538cdc908d119253a5296b05f816
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:46 -05:00
Andreas Jaeger 0f9a50ed8d 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
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.

Change-Id: Icab2b68608002968bbc56791faedd119db7516e7
2020-04-22 07:34:10 +00:00
Andreas Jaeger 6882b4232f 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: I55462940a883caac05e9d1cfc804bd9ea1b1b42c
2020-03-31 13:12:59 +00:00
Akihiro Motoki b7b288f030 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.

Depends-On: https://review.opendev.org/#/c/700733/
Change-Id: I21b71ad592559e40a8ac6e5abee34cbbad4ea417
2019-12-29 07:16:42 +09:00
Zuul 03a33e4c5a Merge "Add neutron-fwaas-dashboard integration tests" 2019-12-19 14:54:07 +00:00
manchandavishal 4571ce7124 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

vitrage-dashboard 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: I6a0fa5005f7f509e784cb85844f0574904b673cd
2019-10-30 10:49:05 +00:00
Ivan Kolodyazhny 725e1ac496 Add neutron-fwaas-dashboard integration tests
This patch adds basic tests to verify that neutron-fwaas-dashboard
is installed and could be opened.

Also this patch decoupless sphinx vesrions for Python 2.7 and 3.x
to fix gates.

neutron-fwaas-dashboard job is added in a non-voting mode.

Change-Id: I1dca0bfbdc44186fffcbe757a142c930f5bc14b4
2019-10-21 17:33:35 +03:00
manchandavishal 70495c6295 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I9f2bef04e057b36ac8674bc0a7db101bb2e50939
2019-09-19 15:46:25 +00:00
Zuul 93be03d291 Merge "Add tox env and job for Django 2.2" 2019-09-13 05:57:55 +00:00
Akihiro Motoki 6515e6ce50 Add tox env and job for Django 2.2
Change-Id: I3f24ac39d01490a88ab6211879bf15ad4c6c4a61
2019-09-13 05:01:03 +09:00
Zuul 919357fed7 Merge "PDF documentation build" 2019-09-12 19:39:32 +00:00
Akihiro Motoki a9766d4faa PDF documentation build
The document is simple enough, so 'howto' is specified as
documentclass instead of 'manual' as most projects do.

Change-Id: Ic6d9e893afc9853fe054756eba34767677510cfe
Story: 2006099
Task: 35130
2019-09-04 05:45:54 +00:00
Corey Bryant e473c8ca69 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: I5e4718df8760458dc7830f1ad4be3cd09d76fe78
Story: #2005924
Task: #34225
2019-07-05 13:52:50 -04:00
caoyuan fadd275554 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ie05a11bfc92e9682c96d8de75aa4c3d8d1dc2efe
2019-04-24 01:07:01 +08:00
Ghanshyam Mann 16a4efe025 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: I0a105097fb407df0d36c3ea26f8f4ba4e28c2c38
2019-04-15 02:34:13 +00:00
Akihiro Motoki cb790cc9e2 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.

Change-Id: Ie25ad2dc20102e7ae34629747566d77ff12c80ad
2019-02-14 01:52:10 +09:00
Nguyen Hai Truong b2cadca905 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: I77b4d2de48d9c637424dfb5cb7e00332835690d8
2019-01-13 03:45:45 +09:00
Zuul 22a9d1d59d Merge "fix tox python3 overrides" 2018-07-19 14:57:32 +00:00
Akihiro Motoki 45c47fb9c0 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: I4bf1a19f46a895f3569d7a79739ac1a7ebf91cbc
2018-06-13 20:27:36 +09:00
huang.zhiping f3afc180c9 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: I31a783516ef06ec0a97dc3dd7a9f610f581b560c
2018-06-09 18:19:05 +08:00
Akihiro Motoki 36e8f3999e 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.

blueprint django2-support

Change-Id: I8e0dcb64e1c82580767db482631450ba38654fc3
2018-04-03 19:37:55 +00:00
Doug Hellmann 0653854bbd 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: Ifc0a37fc787ed3340aefb7e182dbc74bb36352f2
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 16:30:55 -04:00
Akihiro Motoki 9b3f41c7eb 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: Ife1aa2df08181fb7d7fcc00fdc225c92425fe6c8
2018-03-15 05:32:51 +09:00
Akihiro Motoki a34c083fd0 Some more cleanup around tox_install.sh
Change-Id: I983902321a6a22dad7ba46e76e50f5bf38f915ad
2017-11-30 19:39:35 +09:00
Andreas Jaeger 56f739de36 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: I843c4e104c6d694074899912cbdf0332bfcf2a26
2017-11-22 19:54:22 +01:00
Cao Xuan Hoang 2d903d1318 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: Ibb128aeadc93601a29c3277b52eb002178f52b9e
2017-09-22 11:39:06 +07:00
Akihiro Motoki 5a85b444d0 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: I4d6703c7cbad6ed0845d0605ecf494b0b3a8f154
2017-08-19 07:39:35 +00:00
Akihiro Motoki 2b622863f1 Pin to stable/pike until stable/pike is cut
neutron-fwaas-dashboard adopts cycle-with-intermediary in Pike
so we still use the master branch for Pike development.
requirements and horizon repositories are now open for Queens.
We need to pin them to stable/pike for a while.

This patch should be reverted once stable/pike branch is cut.

Change-Id: I59e3ea94d4e5e4cf72ab26c6366d41b66bfbeb99
2017-08-14 05:39:21 +00:00
Akihiro Motoki 883ded237c 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-fwaas https://git.openstack.org/openstack/neutron-fwaas
enable_service q-fwaas-v1
enable_plugin neutron-fwaas-dashboard https://git.openstack.org/openstack/neutron-fwaas-dashboard refs/changes/13/476413/1
-----

Implement blueprint split-out-neutron-xaas-dashboards
Depends-On: Ieaca88dbe28cc2330d9b333082ff7e92c91e8639
Change-Id: Ie46e54ad732e816b02d56f52b09382773f481643
2017-06-27 14:43:29 +00:00
Akihiro Motoki e489f47798 Initial commit 2017-05-22 13:36:41 +09:00