Commit Graph

38 Commits

Author SHA1 Message Date
Ghanshyam Mann 2afede75ca Fix tox4 error
tox.ini started failing with tox4 which had some
incompatible changes. One of them is to allow
external command to run by adding them into allowlist_externals
and make passenv in new lines.

Fixing tox.ini for tox4 changes.

Change-Id: Ic10c68cf73f0e181c1182b348f49b9fff1f4cf24
2023-01-09 20:36:40 +00:00
jiaqi07 b23ca23187 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: I5a45367ad1086d3a079ab54481d1d0460298e47d
2022-08-12 09:08:32 +00:00
songwenping a4f8e09732 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update this at
each new cycle.

Wallaby support officially the following runtimes [1]:
- Python 3.6
- Python 3.8

During Victoria Python 3.7 was used as the default runtime [2] however this
version isn't longer officially supported.

[1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: I6ca58e8e71b95ce560c1f04be41bb783ae46b74c
2021-04-20 03:18:16 +00:00
manchandavishal f5473fc236 Fix gate jobs
This patch update the following:
* add ignore_basepython_conflict = true in tox.ini file.
* replace horizon tarballs dependency with constraints file.
* update hacking version to latest 4.0.0 version.
* fix pep8 warnings.

Change-Id: If0275b78f9084e314e6a69e267a79fc4472c0dfe
2021-02-16 18:06:05 +00:00
Sean McGinnis 144731796f
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: I77603777138a8f39f22ac9f51c2beb8e63c00c02
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:43 -05:00
manchandavishal 01dd28e53b 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 is updated accordingly.

Depends-On: https://review.opendev.org/#/c/700733/
Change-Id: I8f97ac0e749c6c108d809f246b044ba3e8a0010d
2020-01-01 20:57:31 +00:00
Ghanshyam Mann dcd4303c4b [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

mistral-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://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: Ib39cbe4f526d5ace03f959e21eb4907c97ac7b65
2019-11-16 17:01:11 +00:00
manchandavishal d621a752e5 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: Ib3e48ff828faef59a6594f9a1155eaa3a8bf0cf0
2019-10-09 16:29:10 +00:00
Corey Bryant eba4d3acec 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: I298d3edae82bb54d8f23bd87be8cd641edec9714
Story: #2005924
Task: #34222
2019-07-05 12:02:57 -04:00
pengyuesheng 51166f3ebe 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

doc8 command is dropped from docs and releasenotes tox envs.
We run doc8 in pep8 tox env, so this hurts nothing.

Change-Id: I253e0f109b9be68c28792e4b3a53b26b512a08dd
2019-06-25 15:17:44 +08:00
pengyuesheng cbf3a8caa0 Modify the url of upper_constraints_file
Depends-On: http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I4361d3a59c33465db07e31eeee286a63950285ca
2019-06-18 09:20:19 +08:00
pengyuesheng 59f0ab44d1 Add python37 job
Since we've entered Train and the runtime proposed include py37[1],
we need to include it in gate as well as local env.
This patch adds the support for the same.

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

Change-Id: Ie9da36e048c8f13f625369b59c8c46eb5673194f
2019-05-16 10:58:31 +08:00
Vu Cong Tuan fc53013471 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I739cd53efa4f685d721dc4c9095d5df273b2acae
2019-05-03 19:55:09 +00:00
Zuul 3f259bd0cc Merge "Dropping the py35 testing" 2019-05-02 18:09:11 +00:00
Ghanshyam Mann 8b4ca12f7a 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: Ib68a1cb57957e5705dcdf1ee0f46cf9359a6bf47
2019-05-02 17:48:02 +00:00
pengyuesheng a8cd02da9d Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I4797b7c1a988e0eeee16df9ee4f0f2c43f143d36
2019-04-26 15:32:33 +08:00
Zuul f2fe1287d1 Merge "Update min tox version to 2.0" 2018-11-13 09:23:39 +00:00
Nguyen Hai Truong c3c6cd7a42 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: I84c22c847929650e4ea8a8670e704d8002d792ab
2018-11-02 22:30:25 +07:00
Sean McGinnis 395741b871 Remove setup.py check from pep8 job
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.

Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.

More details can be found in this mailing list post:

http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html

Change-Id: I17ac028930428a5c3cc4a9954a189dae56715864
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-30 10:21:19 -05:00
Dougal Matthews 56cf418e74 Add the restructuredtext check to the flake8 job
This follows a recommendation in this thread on openstack-dev.
http://lists.openstack.org/pipermail/openstack-dev/2018-June/131233.html

Change-Id: I81f5283813a18a1807c1fe68b3fae83a35423c8c
2018-06-08 11:30:27 +01:00
Doug Hellmann 924f64aa1c 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: I716ec44a6dd6d14f1ac221e058f365b8d44fb423
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 16:06:02 -04:00
Akihiro Motoki 3ae1e8aae3 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 deprecated in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3

Add py35dj20 job to test Django 2.0 integration.

Change-Id: I6d2e38201387012ba9a02c4b0bd8377895a5919a
2018-05-15 06:14:48 +09:00
Charles Short 78ae62315e Add py35 to tox.ini
Add py35 to tox.ini so we can check
for pyhton3 compatibility.

Change-Id: I9a652d01fcc1a13e07f94a9a7e48b23d1877e1c8
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-03-26 14:22:28 +00:00
Jeremy Liu 24852cd0b3 Fix oslo_debug_helper not running
Specify test directory so that tox won't complain
`ImportError: Start directory is not importable`.
Also fix a warning when running debug.

Change-Id: I7111c553bef110130abcd23f1e402d35868e3852
Closes-Bug: #1666560
2017-03-05 21:22:36 +08:00
Jenkins 3254802ee2 Merge "Remove django<1.8 from tests" 2017-01-08 15:55:59 +00:00
Zhenguo Niu 55425db080 Remove django<1.8 from tests
Django < 1.8 is not supported any more by upstream, and Horizon
has dropped django 1.7 and lower version support, so we don't need
to keep them here.

Change-Id: Ic4c1500c3403652f5e0936d81ad2797f1ab4b368
2016-12-23 13:33:53 +08:00
Sharat Sharma 70370480b6 Remove the dependency on horizon repo
* Due to this dependency mistral devstack pluging doesn't get
  installed properly because it can't constrain this dependency
  to a certain version

Change-Id: Ife4a2e3ace9d6325b27f995ceeafcd345dd8cc6d
2016-12-21 23:26:21 +05:30
Tony Breeds 5584e25277 Add Constraints support
To be co-installable with other OpenStack projects and have consistent
testing it's a good idea (tm) to use constraints when creating tox
environments.

Change-Id: If3e7de5c46d92a096db239611a24393f3ffb9e15
2016-12-21 11:49:42 +11:00
Sharat 539d53cf31 Delete *openstack/common* in flake8 exclude list
There is not *openstack/common* directory in mistral-dashboard,
we should drop it for improving searching efficiency.

Change-Id: I0f41e65e78e082cdd0f637ab07fb872b1b195a86
2016-11-05 19:12:43 +05:30
Sharat Sharma 21563bfc65 Maintain releasenotes for mistral dashboard
All the components of openstack maintain releasenotes. Similarly,
mistral dashboard must also maintain releasenotes. This adds
the releasenotes directory to the mistralclient repo.

Change-Id: Ia095ec4d6ac286cf6c27817765855a97a61502b1
Implements: blueprint maintain-releasenotes
2016-10-05 12:06:16 +05:30
Zhenguo Niu f01a2ed0c6 Remove "builtins = _" from tox.ini
"_" (ugettext_lazy) is defined by usual imports,
so "builtins = _" in tox.ini is unnecessary.

Change-Id: Ie3452b1ae1b57e0742f1846ff24c8edbdb850df1
2015-12-24 10:10:45 +08:00
hparekh 820f9f4b10 Delete python bytecode before every test run.
This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.

Change-Id: I668c1baac23b29750fa19ccb0a4302504399dd75
2015-12-08 14:17:04 +09:00
Zhenguo Niu ea6d14f99c Remove H101, H803, H238 from ignore list
Enable H101 check,
H803 was removed from hacking,
Fix H238 errors and enable the check.

Change-Id: Ifa69d18bb1ee54f7b42c6a281d76dc720e2043ba
2015-07-14 21:52:56 +08:00
Zhenguo Niu 3c05709b93 Remove H302 check
we already removed H302 rule from hacking.

Change-Id: Idd9baf4b7eac680489e04ef2f6ec7624f8004694
2015-07-14 10:22:03 +00:00
Zhenguo Niu 79e6d9c136 Fix H306 errors
Change-Id: I1ff850e87979a05f5daec489d8a50008e2489e97
2015-07-13 09:42:33 +08:00
Zhenguo Niu 6014afd6c1 Enable Unit Test
Enable Unit Test add additional tooling to support running tests
and building virtual environments to mirror what is done in horizon.

Partially implements blueprint mistral-enrich-dashboard

Change-Id: I15b2b28a3a30e8c2ead3b2f68bf2986becbe7914
2015-07-07 17:44:45 +08:00
Christian Berendt 8fb902e2a3 Enable hacking check H306
* H306  imports not in alphabetical order

Change-Id: I8a679afa0893c84e391d3daddc85c3d8f29f60d8
2014-07-21 18:02:43 +02:00
Kirill Izotov 28bde7a230 Move dashboard from python-mistralclient
Also:
- add license headers
- set up tox for flake8 checks and venv
- remove run_tests.sh, tools/ and other stuff we don't need at the moment
- add basic sphinx setup for later use

Change-Id: I0d34fb9fd0bfd351d20474da88715b30ff3c3d61
2014-06-17 13:53:16 +07:00