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
As discussed during the upstream ironic community meeting on
Monday Dec 14 2020, the lower-constraints job is being removed.
Change-Id: I924b59583764584822f09557261985d8bcd6be06
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
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
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
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
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
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
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
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
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
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>
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
Specify test directory so that tox won't complain
`ImportError: Start directory is not importable`.
Change-Id: I1a6f997f6ea3bba9c80131c6e70783f67e7a83ed
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
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
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
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
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
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
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>
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