Commit Graph

32 Commits

Author SHA1 Message Date
Cai Hui cd02688d89 Dropped the python 3.6/3.7 in zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support.

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

Change-Id: I57fbd274c237a9f48820a13b123df64c028d34f4
2022-05-15 09:14:33 +08:00
Ghanshyam Mann 750dac7f2a 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: I429e40d21c075de3b8666dc60c878378acfba5e1
2022-04-30 16:03:45 -05:00
Cai Hui ed5462edac Fix pylint error:H405
Fix pylint  H405: multi line docstring summary not separated with an empty line

Change-Id: Ic2579afbc20319fc5e35c5170cf33f1e39a8e7f7
2021-11-06 19:27:41 +08:00
Carl caihui 716266f5d7 Add python3.9 CI
Change-Id: I5dfbf48059b2bfc538a448f626fa07298e1d9dc6
2021-11-05 01:07:17 +00:00
manchandavishal b4f7b7ae78 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: Ib606ad3175a55b7884684adad8e2da87fefae0ab
2021-02-16 12:31:21 +00:00
Caihui e57a654832 Add py38 in tox.
In new release, The project  is used  python38 to replace python37,
so drop py37,add py38 in tox.

Change-Id: I17db2c72a9752fe1484b16f8a1acc149d14bb6ea
2020-07-01 23:42:18 -07:00
jacky06 b248f85a1e Update to hacking 3.0
Update to newest hacking version, it has only minimal changes and full
support for Python 3.

Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
as they are not actually used in tests (other than pep8).

Change-Id: I67f390e6d7b6fb9eeb7522728ba293d3337b3327
2020-05-17 03:14:40 +00:00
jacky06 3e95dbca27 Remove the mock installed
1. Remove the mock installed
2. Remove unittest2 since it not used any more

Change-Id: Ie75cfec3b17dec949a91ce2b401a6220fa90916f
2020-04-30 00:07:52 +08:00
manchandavishal 833a40b7b7 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: I499c5f2fb06caa70c939b6e503f65c14c2c2e474
2020-01-01 20:21:08 +00:00
Ghanshyam Mann 8f353278d4 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

freezer-web-ui 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

Change-Id: I7a85a88ad3d248ea081eb22db6507f9bd21493f7
2019-11-22 01:52:38 +00:00
caihui f894d59db0 Add py37 and remove py35 in envlst
1. Update tox.ini file, add py37 and remove py35 in envlst for UT.
2. Upgrade pylint,astroid,keystoneauth1  version

Change-Id: Ibb7a5ad85343d0ffe5c50d6c72865bce6657ea36
2019-11-15 02:21:33 -08:00
manchandavishal 146a150bc1 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: I2a8bc45f838e9dc56ad015c44e034cf5d009d2ab
2019-10-09 17:08:04 +00:00
Zuul 1fc5b2b3ae Merge "Add python 3.6 unit test job" 2019-01-28 11:59:10 +00:00
Zuul dc732eaca2 Merge "Don't quote {posargs} in tox.ini" 2019-01-28 11:59:09 +00:00
Nguyen Hai Truong 28be18bdce Update document building tox target
This patch set updates the tox targets for doc and reno building so it is
in line with other OpenStack projects' structure.

Change-Id: I70366984cdc49983504c6084e36339bb4f80ac01
2018-11-07 00:19:25 -08:00
Nguyen Hai Truong 1539c5d221 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: Ic187d40934b2cff946860d523783fa42e21ed2d3
2018-11-06 00:21:19 -08:00
Nguyen Hai Truong 4e0a794a4d Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I92f08bc4cd2273738002999165498dac548cb421
2018-11-03 21:29:41 +07:00
Nguyen Hai Truong 76bd7e2722 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: I2927d99acb744ce2ef9ab71940950ec954476a64
2018-11-01 23:52:50 -07:00
huang.zhiping d5b5899488 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: Ieab35197d7ba098080dd9388fcf1e7165ae8b359
2018-08-30 07:54:56 +00:00
Akihiro Motoki 6bf20357fe 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

Note that this commit does not add py35dj20 like other horizon plugins
because there is no actual python unit tests in freezer-web-ui.

Older Django unit tests were dropped from tox.ini
as horizon dropped Django <=1.10 support in Rocky.

Change-Id: I38f3f05655324f2a5f38c6e8c6ab53ebaa42d4c8
2018-05-14 02:34:28 +09:00
Doug Hellmann e68011ed5f 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: Id71e1a71a0f9fa342a286ef62c8dc6ca784ae61a
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-03 10:34:01 +00:00
Andreas Jaeger e2d1f48fd8 Install horizon from git
Install horizon in OpenStack CI from git instead of using tarball, this
allows depends-on to work.

Update tox.ini and requirements.txt for proper setup.

Change-Id: I473a7d378926f9583d695d78da661f58f03ce30e
2018-03-23 08:58:03 +01:00
Vitaliy 36c9dcf564 Replace python version for tox
Basepython version changed from python3.4 up to python3.5 for tox.

Change-Id: I87d38eb710731c7ecf6cfde90cf1609e495996dc
2017-04-05 12:51:03 +00:00
kavithahr 2b4ab9276e The Python 3.5 is added
The Python 3.5 was missing in setup.cfg and tox.ini
hence added that version.

Change-Id: I9e3d7b85d7a7db4dde27fc75820d38c366259c08
2017-03-11 19:12:00 +05:30
nizam 3931b7355a 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: Ia64e7412505fe763e395405a0b3e1fa561677a5e
2016-10-28 19:59:14 +05:30
Iswarya_Vakati 6c40994589 Use upper-constraints for tox envs
Pin tox environments to upper-constraints to avoid conflicts with
library releases.

Depends-On: I72a5733adf53cf21d081f5efc988185eeafbdf56
Change-Id: Iffa0b9a34b13fe497c8e71656a3659ecf973c60f
Closes-Bug:#1628597
2016-10-21 09:55:51 +00:00
Memo Garcia d91aff5de8 Updated tox.ini to support new test environment
Closes-bug: 1611040
Change-Id: I83f9d18db23fb4d8282cdce623dafba84cd89a73
2016-09-04 18:08:50 +01:00
Fausto Marzi 4c5ee4ca57 Add Sphinx doc build
Bump setup.cfg version to 2.0.0 (mitaka)

Change-Id: I3c2d63262a87a7d84bd95640de0140332e3e34ae
Closes-Bug: #1542061
2016-02-09 15:02:05 +00:00
memo b08558eba4 Improved horizon dashboard for freezer
action, job, session, backup, clients are now objects in api.py
shield decorator to avoid having boilerplate code in views
move from freezer_ui to disaster_recovery url
improved actions edition in a job
javascript lint
added clients panel
added actions panel
improved restore functionality from the dashboard

Change-Id: I23aed516bcde3a40b24144b05f858d1e3a49a796
2015-11-12 16:21:27 +00:00
memo f75bd1c7c7 Prepare UI for split
fixed paths to support new repo layout
modified tox file

Change-Id: Ibbe087cc4e0ae02b890824b4a559a9dd0c0a0a49
2015-08-28 17:14:19 +01:00
Jonas Pfannschmidt c24ce93ba8 Copied tox.ini and .pylintrc from root directory
This allows us to split the directory while keeping
the same code standards.

Change-Id: I3fa602a5e585a4c8d22b6efdeccc4c8a678c85cc
2015-06-19 10:53:57 +01:00
Jonas Pfannschmidt 008769587b This version contains the following pages:
- Overview displays charts/reports (Currently only placeholders)
 - Configurations allows to define new backup configurations and link them to
   instances
 - Backups shows a list of all succesful backups and allows to restore them
 - Restores shows a history of all restored backups

It communicates with the api server via the client apis (freeezer.client.client).
The "glue code" between client apis and the UI lives in freezer.api.api.

Implements: Blueprint freezer-api-web-ui
Change-Id: I48cd8cba2b0169c6e64f650233c1a31b91ced34f
2015-05-31 17:01:57 +01:00