Commit Graph

41 Commits

Author SHA1 Message Date
Gregory Thiemonge d6bf1ed92d Fix new issue with tox4
Removing basepython which is no longer needed and which creates
conflicts with py3* jobs

Change-Id: I9dc5e9031cc636450c4da39c6688d01e777c0ba0
2023-01-12 16:32:12 +01:00
sunxifa aadd697e3d Fix tox.ini with tox4
skipsdist setting breaks the docs environment

Change-Id: I7adb8c997fe28078e1b429d1863c612282c01b72
2023-01-01 14:13:23 +08:00
Zuul 734b905ae9 Merge "Drop lower-constraints.txt and its testing" 2022-08-18 09:13:05 +00:00
Ghanshyam Mann 91c6a2de3b 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: I4377339ff52836ad953e3936b3e6a33b3ba73389
2022-08-16 19:57:36 +00:00
Takashi Kajinami eec9bb5984 Bump tox minversion to 3.18.0
Since tox 3.18.0, the whitelist_externals option has been deprecated in
favor of the new allow_list_externals option[1].

This change bumps the minversion of tox so that we can replace
the deprecated option.

[1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I533fe72cc3a5e1900d8f795582dd63d1f0aab70a
2022-08-16 18:04:56 +00:00
Zuul 8bc9329b5f Merge "Switch to hacking 3.0" 2020-07-17 02:44:47 +00:00
Andreas Jaeger b51aa8a5fe 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
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE instead of obsolete UPPER_CONSTRAINTS_FILE.

Change-Id: I4807e406cf6238767ceb02590c713f738686fa1f
2020-06-04 17:34:08 +02:00
manchandavishal 771dcae2ed Switch to hacking 3.0
This patch update hacking version to 3.0.0[1]. In order to make code compatible
with new hacking rules line break before/after binary operator I have added
W504 into ignore list in tox.ini. It also drop flake8, hacking, django-babel,
and mox3 packages from lower-requirements.txt.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I96fc5ca23010958d68cf261793489580b57f3a4f
2020-05-15 14:09:25 +00:00
manchandavishal d30787d677 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: If7c7ce79594449637655c4832db50c2c243ce1c0
2020-01-02 20:47:24 +00:00
Ajay Kumar 2fd7d6ede2 OpenStack is dropping the py2.7 support in ussuri cycle.
octavia-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: I1a7a75ddb132c8e2f41f1e47d3ebca15cb86f461
2019-12-28 13:21:55 +00:00
manchandavishal aa21130ff9 Use Horizon project template for django jobs
Horizon defined a project template 'horizon-non-primary-django-jobs'
for django jobs. This patch use that template to run django jobs
here. For information please refer [1]

[1] https://review.opendev.org/#/c/681969/

Change-Id: Iabbed6052887ba92c07cb68c2333a197f04348cc
2019-10-09 12:56:51 +00:00
manchandavishal b642742af0 Generate PDF documentation
Story: 2006101
Task: 35147
Change-Id: Idc1f1f76d2decf28924f6cdb3c5f0a3491bb8e59
2019-09-21 02:00:11 +00:00
Zuul c9e954517a Merge "Update tox.ini for new upper constraints strategy" 2019-07-14 14:09:20 +00:00
Corey Bryant 22dc5f652e 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: I00809edae939e1e88ddd8e19034bb761ef8492ce
Story: #2005924
Task: #34227
2019-07-05 14:04:11 -04:00
Michael Johnson 9bc0563c0d 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 dashboard.

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

Change-Id: I33588ae6f83b25fd765bc1b2f69ae5f1e2fa0184
2019-06-28 15:53:44 -07:00
manchandavishal af17a8baa3 Changes for url transition to OpenDev
This commit changes openstack.org URL to opendev.org URL

Change-Id: I6cddcab4ff956c3121ba35b0617f991c617dc8b7
2019-04-29 14:06:31 +00:00
manchandavishal b6a1f1e2dc witch python3 versions of test jobs to match Train PTI
In Train, we will use python 3.6 and 3.7 for python3 runtime
in our gate jobs [1]. This commit drops python 3.5 and adds python 3.7.

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

Change-Id: I9628ad9293ea8ccae7d39af564b6713e60d0d4b5
2019-04-15 09:49:39 +00:00
jacky06 12cfaf73d8 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I5dcd4320619c7015dc826c6d39bfe74524dbc8c6
2019-01-12 11:38:59 +08:00
Vieri 8bc9a1611e Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: Icfa8458931d09fc8c15192619e2c50419fa73ede
2018-11-02 06:38:04 +00:00
Akihiro Motoki a5edff2a50 Drop nose dependencies
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.

The change was made in horizon Rocky-3,
so horizon 14.0.0.0b3 is required at least.

Change-Id: I3b9a51d79de04279e1872cc41a2bb7c69a0f08f8
2018-08-18 04:10:37 +09:00
Michael Johnson 63841ad797 Update octavia-dashboard tox for stestr
This patch updates the octavia-dashboard tox environment to use stestr.

Depends-On: https://review.openstack.org/570260
Change-Id: I122cd42fea3972d2e9488a1c4239e061edb8a54b
2018-06-15 14:44:37 +08:00
huang.zhiping 9a4c752312 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: I65ec3ce0c72467486255868bcff79c70b9bf20f8
2018-06-09 18:50:40 +08:00
Jacky Hu 8e9a2f239a Replace noop tests with registration test
Previously the python tests are just some stub code, replace them with
some real tests.

Change-Id: I0d8d7213bf1abc690517d14c97f5c312b34b4112
2018-05-16 09:21:32 +08:00
Zuul 8a31785dab Merge "add lower-constraints job" 2018-03-29 02:06:19 +00:00
Doug Hellmann e4f8ab4ece 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: I0ad0aa3533d324a46289920efb9ad637cbcf37f7
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-28 17:15:14 -07:00
Charles Short e948383e78 Update tox.ini
Add tox env for python3.5.

Change-Id: I18adf7667ffa05fcb413c70227bd839572c504ad
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-03-26 22:35:03 -04:00
Michael Johnson 424b307689 Remove tox_install
Tox_install is no longer required, this patch removes it.

Change-Id: I630f110810f9f3fbd16eeed0034bb3f665f66075
2018-03-14 20:18:16 +01:00
Michael Johnson 199de4dc94 Update the release notes for Queens
This patch adds release notes for the work done in Queens and updates the
release notes tox environment for the new docs requirements.txt.

Change-Id: Idd6c5738d0a353244a672ff711151eb16f24d174
2018-01-29 23:28:29 -08:00
Jacky Hu f6a5e91cb1 Updating for new sphinx docs jobs
There have been recent changes to how docs jobs are run under zuul [1].
This patch updates octavia-dashboard to be able to run under the new
zuul docs jobs.

[1] https://review.openstack.org/#/c/508694/

Change-Id: I44f7ce2538de0ce76860a3a2b477751de322ab02
2018-01-11 22:28:05 +08:00
Jacky Hu e144070568 Make whitelist externals os agnostic
The exact path can vary in different operating systems, also this will
eliminate the following warning:
WARNING:test command found but not installed in testenv

Change-Id: I19c8728c4d6fe13bd021dbfe22797cf0572c8962
2017-12-17 15:41:33 +08:00
Michael Johnson 7bde6225ee Add release notes support to octavia-dashboard
Change-Id: I3c539c0550ee7063fb7619876e3d5a69c722caf3
2017-11-17 11:07:54 -08:00
Jacky Hu 5f29b14577 Make it work with devstack
To avoid the "installation from path or url cannot be constrained to
a version" issue.

Change-Id: Ia602a6509780c394b30c2f663fe1207e69706e32
2017-07-04 08:49:53 +08:00
Jenkins a7e65db38e Merge "Updating for octavia-dashboard" 2017-06-23 20:34:08 +00:00
Michael Johnson 1f0c90f3a8 Updating for octavia-dashboard
This patch updates the imported code to reflect octavia-dashboard.

More work is required to make this work with the Octavia v2 API.
This will be done in followup patches.

Change-Id: I7363105a53642d0003036cada21c5b0cc25efc1a
2017-06-22 16:20:27 +08:00
Jacky Hu bcb4d83b38 Exclude node_modules from pep8 checking
Change-Id: I7ed4329543f7bed1ade2d0df2f96a5c463a9031c
2017-06-20 21:46:52 +08:00
Dirk Mueller ed325793c9 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 neutron-lbaas-dashboard.

Change-Id: Id0a31c878f39355bcb8b2e4b67b0c17b161c8603
2016-12-20 14:35:05 +11:00
lilintan d7e58a7b94 Don't include openstack/common in flake8 exclude list
The directory openstack/common was used to keep codes from
oslo-incubator, we have retired oslo-incubator, so don't use
this directory any more.

Change-Id: I7010754d7cd3c0d0d601b61bd3a870d59e3e6677
2016-09-11 15:53:46 +08:00
Mark Vanderwiel e221f7482a Adding integration test support
* Update requirements for selenium testing
* Add gate scripts
* Add draft integration test config and test stub
* Update tox for running integration tests

A patch for gate job is: I76ab460a110d93b0186ca126858f79ac9e89f09b

Change-Id: I5ca1bf7003a9882648cdfbeab21d2ada37b951f1
2016-02-23 14:54:45 -06:00
Doug Fish 3b72651253 Include javascript lint and unit test in tox
Add lint and unit test environments for JavaScript to tox.ini

Partially-Implements: blueprint horizon-lbaas-v2-ui
Change-Id: I13c1dd18c160c78ef303595cedc8009f58596863
2016-01-20 19:49:51 +00:00
Doug Fish fade35f1bb Make sure django env var is set
Unit tests for the first patch are failing because
DJANGO_SETTINGS_MODULE is not set. Add the pieces to
do this.

Change-Id: I9aff77126acf7c2e2d59966dd825f105e809edee
Partially-Implements: blueprint horizon-lbaas-v2-ui
2015-10-01 14:24:12 +00:00
Doug Wiegley 648464eb8b Initial cookiecutter commit
Change-Id: I0e667a8fafc19ec15de2174b0c6f94d531d2a615
2015-08-07 15:41:49 -06:00