Commit Graph

35 Commits

Author SHA1 Message Date
Riccardo Pittau 85630a3797 Fix tox4 errors
- Remove skipsdist that it was never supported and causes breakage
when used with usedevelop.

Change-Id: Id4d4b1306999bef9d0e894a2ae7d104caef55075
2023-01-09 11:29:10 +00:00
Takashi Kajinami 8ae2c2517d Replace deprecated ugettext_lazy
The ugettext_lazy method has been deprecated since Django 3.0[1].

This was already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
[2] cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee

This change also removes usage of the deprecated methods in the pybabel
command to extract log messages.

Change-Id: I6a1f17e310f20e3dc6b510308fb4bd5e768b0212
2022-07-10 23:52:39 +09:00
Zuul 9488051e4f Merge "Changed minversion in tox to 3.18.0" 2021-06-14 08:23:58 +00:00
likui 8459072fca Remove lower-constraints job
As discussed during the upstream ironic community meeting on
Monday Dec 14 2020, the lower-constraints job is being removed.

Change-Id: I924b59583764584822f09557261985d8bcd6be06
2021-06-11 15:32:12 +08:00
likui accb839758 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: If578f12a642f5ee50593c0c5f8ccc501719bb5d4
2021-06-11 15:30:46 +08:00
qianshuai 12eca8ae61 Fix unittest coverage bug
change the way of unittest coverage checking.
Story: #2008517

Change-Id: Iff7ebc1359f7920c797b684e2d2c94639c0a42bb
2021-01-20 06:17:53 +00:00
Ivan Kolodyazhny 0d997bf6ca Add npm tox env
With this tox env CI will run JavaScript tests instead of skipping them.

This patch also fixes issues with running tests using
lates Horizon release.


Depends-On: https://review.opendev.org/755003
Change-Id: I3ddd4893ae60a326751c157f0be85b084a2174a4
2020-09-29 13:32:42 +00:00
Andreas Jaeger 6d253ca7f1 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.
- Update hacking to current version 3.1.0, fix problems found.

Change-Id: I86c18b4c73f9b3dc0b3d804559d825dac5a78436
2020-06-09 14:00:32 +02:00
Iury Gregory Melo Ferreira 1aa9c8f61b Stop configuring install_command in tox.
Currently, we are overriding 'install_command' to use 'pip'. This is
considered poor behavior and 'python -m pip' should be used instead:

https://snarky.ca/why-you-should-use-python-m-pip/

It turns out that this is the the default value provided by tox:

https://tox.readthedocs.io/en/latest/config.html#conf-install_command

So we can remove the line and simply use the default value.

openstack-discuss thread
http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014237.html

Bumping the following libs in lower-constraints to avoid version
conflict:
-osprofiler 2.3.0
-python-keystoneclient to 3.22.0
-python-cinderclient to 5.0.0

Change-Id: Id0049dea1e16f9c459e7e63e5f7d96666fff708a
2020-04-20 11:18:47 +02:00
Riccardo Pittau 31234a301d Enforce running tox with correct python version based on env
Since removing support for Python 2, we changed the basepython
value to 3.
This means that all the tox tests run with the default python
version available in the system.
This is not quite correct when running on environment such as
py36, py37 or py38, since they imply running with different
Python versions based on the environment.
To enforce the correct version we need to add the option
ignore_basepython_conflict available since tox 3.1.0 [0].

[0] https://tox.readthedocs.io/en/latest/config.html#conf-ignore_basepython_conflict

Change-Id: I329e43d51aaeade8d4535b2f68cec7680b5ebfce
2020-01-09 10:31:51 +01:00
manchandavishal 47561ba1e3 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: I29cd34d17a00eb1b576f46d6010203603b5c8165
2020-01-02 19:05:13 +00:00
Madhuri Kumari 318ed8bc9d Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ironic-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://review.opendev.org/#/c/691178/

Change-Id: Iaedcd8e73871583e4dc16860a81eb7351ffae0a2
2019-11-27 17:49:52 +00:00
Ivan Kolodyazhny eabce72bfc Use Python3 for integration tests
Change-Id: I0d678b94454e524484fd7091cebee9d47b858fc7
2019-10-29 15:14:21 +02:00
manchandavishal c5585c00d4 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: I174e607f7b1193eec0fa0a28bb39b2c945013495
2019-10-09 15:45:59 +00:00
Kaifeng Wang c28503f70e Build pdf doc
The is one of community goals that each project could produce a
single PDF file. The pdf should be in the output of openstack-tox-docs
job.

TeX packages are required to build PDF locally, following is recommended:

* inkscape
* texlive-latex-base
* texlive-latex-extra
* texlive-fonts-recommended

More about the goal:
https://governance.openstack.org/tc/goals/train/pdf-doc-generation.html
https://etherpad.openstack.org/p/train-pdf-support-goal
https://etherpad.openstack.org/p/pdf-goal-train-common-problems

Change-Id: Ib7379bb5066ede1956424dc92cf302ec22053f21
2019-09-06 08:48:51 +08:00
pengyuesheng b68684a3ef 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

Change-Id: I6aba9d03ad3cadba7bbd41ea32091a751889db17
2019-07-02 14:15:19 +08:00
pengyuesheng f62d07a8f6 Modify the url of upper_constraints_file
Depends-On: http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ic03eb7de769e40de76afe4156da984156479e5f2
2019-06-18 15:04:24 +08:00
zhulingjie 6670f4339a Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I8a306d1b42cb25296960f88158eb8c8e21b0be08
2019-04-24 01:13:36 +08:00
Ian Wienand 21bab85fb0 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I7f904096fa0acb4182a28197f68594fd7beea2ee
2019-03-24 20:33:55 +00:00
Riccardo Pittau 736ae26883 Supporting all py3 environments with tox
Converting environment py35 to py3 in tox.ini to
show support for all Python 3.x versions.

Change-Id: Ib8291c4c7b19247d39d59c10640661bcded05f28
2019-03-05 17:46:53 +01:00
Ivan Kolodyazhny d73528db1d Add ironic-ui integration tests
This patch adds basic tests to verify that ironic-ui is
installed and could be opened.

ironic-ui-integration-tests job is added in a
non-voting mode.

Depends-On: https://review.openstack.org/634712
Change-Id: Ie77be522679c9076ccbfb133eadaae7228adb03c
2019-02-07 05:49:55 -08:00
Ivan Kolodyazhny b1df65887e Add ability to test Ironic UI with Horizon master branch
For the developers needs it's useful to be able run tests with the
latest Horizon version from the master branch.

This patch introduces new tox environment py3-dev to run tests with the
Horizon master branch.

By default, Horizon will be installed from the master branch of it's git
repository. You can override this behaviour by setting HORIZON_REPO
environment variable to test the plugin with your local copy.

Change-Id: Ie4cda52398dcf97e3e1544052f82c4b5692d2dad
2018-09-12 16:32:02 -06:00
huang.zhiping 36840aaa0d 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: Id785f80aa636569c070727ad4761ad7b34e23081
2018-06-09 02:26:05 +08:00
Doug Hellmann fa66440493 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: Ia39c706f6a817deb3b94a1430b3e505f9c098384
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-05-28 12:04:36 +02:00
Julia Kreger b8ce8be233 Add python api docs to contributor docs
In addition to adding that configuration,
a portion of the documentation conf.py file
needed to be updated from the horizon panel
cookiecutter repository.

Change-Id: I39b1d8718b1de51093a10f50dd04a5ff1d75dd46
2017-07-18 13:47:42 +00:00
yushangbin 8d03957632 Fix oslo_debug_helper not running
Specify test directory so that tox won't complain
`ImportError: Start directory is not importable`.

Change-Id: I1a6f997f6ea3bba9c80131c6e70783f67e7a83ed
2017-02-22 20:10:02 +08:00
Zhenguo Niu be7a60200b Remove py34 env from tox
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from ubuntu Trusty to Xenial, where only python 3.5 is
available. There's no need to continue to keep it.

Change-Id: Ia254a7b9e143cf8e5e9d39e3594b8d3a4ce507a4
2017-02-09 11:39:48 +08:00
Cao Xuan Hoang bd26333c58 Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim
support for Python 3.5 in the classifier.
This patch also adds the convenience py35 venv.

Change-Id: I8f4dc7ffecc2a7a0eb8230d623593d2fdca2a267
2017-01-18 13:46:46 +07:00
Tony Breeds 7227f2ad4f 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: Ib79448302b66ded52763037cc58261058ccda27a
2016-12-21 11:16:08 +11:00
gecong1973 4d08ee9f9f Don't include openstack/common in flake8 exclude list
There is no this directory openstack/common which was used
to keep codes from oslo-incubator, we have retired oslo-incubator.
Removing openstack/commonfrom all OpenStack code in favor of the
Oslo libraries is a project wide goal for the Ocata release. So
don't use this directory any more. We should drop it for improving
searching efficiency.

Change-Id: I55d90ed8b4ae34ea5dbf8005b8ed839ae7ef747a
2016-11-25 11:56:55 +08:00
Rob Cresswell 7e8189b9ac Add translation support
Add initial translation support. This will be followed by an infra
change, and then we can go through strings adding translation tags.

Change-Id: I1ce92fd1f2657e59a8b4597c5a01a98af80f4bf3
2016-09-01 15:11:33 +01:00
Andreas Jaeger a2de2553fa Cleanup tox.ini
Remove old and unused constraints environments.

this does not enable constraints (they were not enabled before) since
ironic-ui is not part of global requirements process.

Change-Id: I3f541f1e6322d229f0136f317cc14d83f2f75186
2016-08-26 11:00:48 +02:00
Elizabeth Elwell 67cba267e7 Add reno for release notes management
Change-Id: Ie5bac79f612443f59ee8b1e9df11e3e4d46f9981
2016-08-16 21:34:24 -04:00
Elizabeth Elwell 1063e15424 Plugin setup
This patch adds an empty Index view and basic test infrastructure,
including a basic test that verifies the panel has been correctly
registered with Horizon.

Following this patch, it is possible to install and register the Ironic
UI, and see the "Bare Metal Provisioning" panel under Horizon's Admin
dashboard.

Change-Id: I5efff7707fb44e6ba016d2aaaf3f46e1a9583084
Co-Authored-By: Rob Cresswell <robert.cresswell@outlook.com>
2016-02-01 13:15:11 +00:00
Elizabeth Elwell 728fed6ee9 Added cookiecutter files
In patch amends have also renamed internal ironic-ui folder to ironic_ui to
ensure not read mathematically to pass pep8 tests. Also added global requirements.

Change-Id: I5689f762194291bbad6070350486d397c376364a
2016-01-20 19:00:52 +00:00