Commit Graph

27 Commits

Author SHA1 Message Date
Pierre Riteau fa1a31a448 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

Change-Id: Ib425c4791477803224460b536fe88c506e36d623
2023-09-14 18:49:00 +02:00
manchandavishal 58acda9e06 Update tox.ini for tox4
OpenStack CI now uses tox4 by default. This patch
drop "skipsdist = True". When skipsdist=True is specified,
a target application is not installed into a tox env, but
there seems no reason to do so. In various other OpenStack
projects, a target applicatin needs to be installed into a
tox venv, for example, in docs and/or linter jobs and it
causes failures with tox4. So dropping it would avoid potential
future failures.

Change-Id: I18d5ee7f96e77e345f304536bbc385d87bb859f2
2023-01-17 20:56:13 +00:00
Takashi Natsume 5876f70d95 Change minversion of tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace whitelist_externals with allowlist_externals option.
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Change-Id: I8799f81b3bb6c305e14d589066bb8127b7f556fa
2021-05-31 12:19:19 +02:00
Pierre Riteau 46ac7b8c7d Fix PDF docs build
Update tox config to include upper-constraints as dependencies. This
resolves issues with building PDF docs.

Change-Id: I1d83437079f224a0d560dd3cc339bf3ce5213534
2021-05-31 11:52:51 +02:00
manchandavishal 63012469a0 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>.
For more info. please refer [1].

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

Change-Id: Id062b4014a61adf75fd9917a6928c0521739fc01
2021-02-16 12:32:21 +00:00
Pierre Riteau 0a184a0a05 Configure bandit security linter
Change-Id: I4c3b4fec50e7b2aedd8cb3b7dfa5dacd0d44c329
2020-10-02 16:48:11 +02:00
manchandavishal 76040f4ce0 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: Ia8695eb481235043b6aedda2c92aeb7f49a3c00b
2020-05-15 17:43:57 +00:00
Pierre Riteau 4209178fcc Fix build of html docs
Change I379c086a15477da4b0223fddd48035c829992c88 mistakenly generated
HTML docs into the wrong folder.

Change-Id: Ia9a9025b773448598891fc229166b668f21fb7b4
2020-05-12 17:13:19 +02:00
Andreas Jaeger 26fda6b697 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
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Update hacking to version 3.0; remove hacking and friends
  from requirements, they are not needed; fix warnings found
- Use unittest.mock

Change-Id: I379c086a15477da4b0223fddd48035c829992c88
2020-04-16 15:23:47 +02:00
jacky06 0447828e8f 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: Ib28727f18d3ff2c86f5dc9ab3dc49bb031650b55
2020-01-20 22:43:05 +01:00
manchandavishal 6e4429a7e3 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 information,
please refer to [1]. This patch also removes py36 from tox.ini.

[1] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin

Change-Id: I9d0784d1a5b5c48414bb08600cae69002433c30b
Depends-On: https://review.opendev.org/#/c/700733/
2020-01-06 14:11:19 +00:00
Tetsuro Nakamura 6abf50fdc7 Stop testing with py2
Python 2 is no longer supported. Python 3 is required.
This patch stop testing with python2 and issue the release note.

Change-Id: Idb4c37948b9ad5b19229a86fbbc42c2b63f585eb
2019-12-06 04:14:10 +00:00
manchandavishal 792699c0a3 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: I750d6acaa3231b60fe1680b59d483fe10b091017
2019-10-05 09:55:21 +00:00
manchandavishal 32b1570c4c Generate PDF documentation
Change-Id: I425dfb6d1ef3af313875945392e4d57bdc72be52
Story: 2006073
Task: 34796
2019-09-19 08:58:27 +00:00
manchandavishal 7a05a61f43 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I58121bda4cdedd930c64429c25c66c12f5d310e0
2019-09-19 07:32:49 +00:00
Corey Bryant e7b1b3f717 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: I0362accbea950ce67401872716df393b416a72db
Story: #2005924
Task: #34199
2019-06-21 17:16:18 -04:00
jacky06 39e9ba4f2c Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I67df079c0a61099f5728a7d9cd7a186ec14b2741
2019-06-03 12:45:59 +00:00
Le Hou 264a1327c8 Update to opendev
Change-Id: I812238cc25020b2eb333879ae4e3ae4feba14a77
2019-04-23 16:06:58 +08:00
Ghanshyam Mann c65a8568cf 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: Iadf3c4d3aa284a6701f0e9bfd4f1f1e9c8e5cb51
2019-04-15 18:49:30 +00:00
Zuul 334a69130a Merge "fix tox python3 overrides" 2018-07-16 21:59:54 +00:00
Akihiro Motoki 6afba68e6b 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: I46bff5b942a31b2c33679e2f4414e003510f2687
2018-06-12 23:56:30 +09:00
huang.zhiping a6a17e6ee2 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: I3e2b7f9990b7d1b269a75070db6c4e6b056e4df7
2018-06-11 07:09:06 +00:00
Akihiro Motoki cff0dc4884 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.
Also drops older Django unit tests from tox.ini
as horizon dropped Django <=1.10 support in Rocky.

Change-Id: I099c7b019c930307d3aae64b1729d6f532fc1653
2018-05-10 23:09:55 +09:00
Doug Hellmann 13d2964e2d 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.

python-blazarclient 1.0.0 is not available on PyPI,
so the minimum version is bumped to 1.0.1.

Change-Id: Icbecf09ff90d7b5e563df27fe1d8db2438ac6c4a
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-04-26 02:59:34 +00:00
Andreas Jaeger f900478598 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: I0e2986d2fe06d07b5c08d73ac7f13fc3778eccc3
2018-03-29 21:35:52 +00:00
Hiroaki Kobayashi 0c286007c3 Use OpenStack documentation standards / Nova hypervisor-list API
This patch updates documents for aligning with OpenStack documentation
standards which include using the openstackdocstheme.
This patch also replaces Nova host-list API calls with hypervisor-list
API calls because the former was superseded by the latter [1].

These changes are not related but squashed into one patch for passing
gate tests.

[1] https://docs.openstack.org/releasenotes/python-novaclient/queens.html#id4

Change-Id: I1fe652c17983f2b4505be50d01a26678bf50ef29
Partial-Bug: #1721489
2018-02-13 09:19:21 +00:00
Hiroaki Kobayashi c4afe8b438 Add Horizon plugin for Blazar
This patch adds a Horizon plugin for Blazar. The following features are
currently supported:

* Show a list of leases
* Show details of a lease
* Update a lease
* Delete lease(s)

Change-Id: I24c14e697d4280fa29d84d11324fb881009f089b
Partially Implements: blueprint climate-dashboard
Co-Authored-By: Pablo Andres Fuente <pablo.a.fuente@intel.com>
2017-08-03 10:23:54 +00:00