Commit Graph

34 Commits

Author SHA1 Message Date
niuke 16634e3942 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.

Change-Id: I8b07aa4d5ad6824b049144e87468fb941f57135f
2023-05-26 14:27:55 +08:00
wu.shiming bbd8a501f4 Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

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

Change-Id: Ia8b7f322eec1f3120c71ee03771f87e60cdea311
2021-12-21 10:02:57 +08:00
wu.shiming 01ff88b2dd 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: I1cb8eadf6b649329e8faf5e63a32b2b017b01ebf
2021-05-31 09:57:11 +08:00
manchandavishal 22ff9ab520 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated, refer [1].
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

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

Change-Id: I2318835ca129ba973d1086a3d56e506a7400dc7c
2021-02-03 10:06:58 +00:00
Zuul 79b287ba53 Merge "Bump default tox env from py37 to py38" 2020-08-15 22:32:32 +00:00
jacky06 03cb12b999 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I5a4123c0c5e18c0e25383491253299fc5b54618b
2020-08-14 23:22:57 -03:00
manchandavishal c5dd32442b 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: I8e3ddcdbdd9ad9defe257312564785993f0650d4
2020-05-15 17:50:45 +00:00
manchandavishal cade8de984 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.
For more info. please refer [1], [2].

[1] https://review.opendev.org/#/c/700733/
[2] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin

Change-Id: I6f393b85306e514f9e00567dfd2b9940d6f26253
2020-01-08 02:44:37 +00:00
Luka Peschke dcb3dc2ed0 Dependency and tox.ini cleanup
Change-Id: If88fc483936bfb9a8d4e0b8900efde51ae79d748
2019-12-12 11:31:40 +01:00
Zuul ee44069e4d Merge "Drop python 2.7 support and testing" 2019-11-20 09:22:42 +00:00
Zuul b9a2e9d0fc Merge "tox: Keeping going with docs" 2019-11-18 08:28:06 +00:00
caoyuan 99993584bb tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: I44a317a3551c108b3872e4c8c37ccdbd414972b2
2019-11-14 10:32:52 +08:00
manchandavishal 6317aca3f9 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

watcher-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: I1d80d7f7206cafa3a91a107cd670cfa9d91187c1
2019-10-31 07:42:26 +00:00
manchandavishal 44d0eae809 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: Id48d23c5cd0fb031ba4c8ce40be900185858d89c
2019-10-09 15:49:45 +00:00
manchandavishal 00aa16d41e Generate PDF documentation
This commit adds a new tox target to build PDF documentation.
It's a part of community goal, see storyboard for more
information.

Story: 2006075
Task: 34809

Change-Id: I537aaea5c0e3341f8026589fc4b2c56505707ffb
2019-09-12 11:03:37 +00:00
pengyuesheng 493f219472 Modify the url of upper_constraints_file
Depends-On: http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ieb3f85da802def113386402e0702c7b6b076813b
2019-06-18 09:49:30 +08:00
pengyuesheng 0325640fb1 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: Ic9f4b8a462e6ff78428ce544c7de307b15b2d64d
2019-06-03 17:25:06 +08:00
Le Hou c01b4543c2 Use opendev repository
Change-Id: Ia168c5bd7b6821733948b0ca861751bc2b2a582e
2019-04-23 16:57:52 +08:00
Ghanshyam Mann 77cbc34d7f 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: Iad2ed577adfa0b73037901ce2da63d46b67b168a
2019-04-15 09:41:21 +02:00
taoguo 8b898aea63 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.

Change-Id: I220c4eebad06e87402e78e97b52cc8c6d3ec94fc
2018-11-10 15:03:01 +08:00
huang.zhiping 724132faea 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: I827159da11b4808c9a4177e2b3cf9258d00b7649
2018-10-03 01:56:20 +00:00
Doug Hellmann b199f84c9f 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: I58e5dd00143b0acaf997c79b4ee2852a2b75dd2d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:50:34 -04:00
kavithahr d41d9941b6 The Python 3.5 is added
The Python 3.5 was missing in setup.cfg and tox.ini
hence added that version.

Change-Id: I3b22f72f8b3b7d45cc22c50ec53fef6beef5424e
2018-08-07 07:26:26 +00:00
François Magimel 33339cdd4e Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html#documentation
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Remove the '[build_sphinx]' as described in:
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Change-Id: I255b0892a3b0ec0e528172ae2ddabf8abfa507a8
2018-07-27 21:19:58 +02:00
Ha Manh Dong 42379399a2 Switch to use stestr for unit test
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
So we should switch to stestr.

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

Change-Id: Iee13deb54056e1c81d3732cb51a61c68481607fa
2018-07-17 15:54:45 +07:00
Jeremy Liu c4b68d9176 Fix oslo_debug_helper not running
Specify test directory so that tox won't complain
`ImportError: Start directory is not importable`

Change-Id: Ib2122760de21cea7f61ebf668639acd0e1dad123
2017-02-21 23:42:25 +08:00
Jenkins 9fb1813e21 Merge "Added release note for cloudkittydashboard" 2017-02-02 17:44:01 +00:00
Anusree e328edad8e Remove py26 support
As of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.

Change-Id: I95b3f2bb86a52361d506a54ae3b0218fc525faf4
Closes-Bug: 1519510
2017-01-20 03:04:28 +05:30
zhangguoqing 1299dc4c3c Added release note for cloudkittydashboard
This adds the releasenotes directory to the cloudkittydashboard repo.
It maintains the releasenotes for cloudkittydashboard.

Change-Id: I3f4b76de96c3e6d9526d8e05d553f404597db23d
2017-01-12 14:18:41 +00:00
Jenkins ced3468cb5 Merge "Don't include openstack/common in flake8 exclude list" 2017-01-05 14:40:32 +00:00
Jeremy Liu 2118c2b694 Set upper-constraints for tox
Change-Id: Ic96e3efa10451595d7748c12cacec15fb039b77b
2016-12-14 11:06:25 +08:00
Jeremy Liu 97d25aecfc Don't include openstack/common in flake8 exclude list
And remove the configuration file.

Change-Id: I6320b0b2e75c518dcd13577b5f10ec3839094131
2016-11-14 21:53:43 +08:00
Guillaume Espanel 3364dc8dd2 Rewrite of the whole dashboard.
Change-Id: I91d2338ce3225e80ba4c53a1a88a5300d5af9c44
2015-05-12 15:24:53 +00:00
François Magimel 5f47bf4fa8 Init the repo with common files
Change-Id: I5229e6714b99d89ac15126378344b94494ed6c56
2014-08-24 10:15:05 +02:00