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: Iea3bfeba70fc91c4c5b3f5741111dcd5afa5b324
magnum-ui doc generated the module reference,
so requirements.txt should be here to apply upper-constraints.
Change-Id: I12a57a5d8a59dbc958512641a1ef49fee5c81152
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: Ic25ac51fb1134b06a1db148026da17239f43beed
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: I4d1809663bcfe4539607cbf1e7040110b0cd46ea
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This patch prepares python3.6 support.
We should add py36-local into tox.ini and support for python3.6
into setup.cfg when we decide to support python3.6 formally.
Change-Id: I3db71b72071d789e8214dcb65b8515b196bbceb0
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.
To install horizon, check python3 version and set target directory
in postinstall script on package.json.
Change-Id: I321a3555a4d9ae3dafbf1da39d165462933b8c44
Co-Authored-By: Shu Muto <shu.mutow@gmail.com>
Since the horizon remove the 'run_tests.sh' file,
so there should remove '.venv' from the '.tox.ini' file.
Change-Id: I32fe60fd0f7e76b62d4bac2abde17bcd48b225db
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: Ib6f271d9cc8446875d6284a1f7d9f17aab90c47c
Horizon plugins needs horizon on master branch for our
master development and test.
Recent changes in CI infra and horizon force to change horizon
installation, and added tox_helper.sh as trivial fix.
Now, reasonable fix found for horizon plugins,
so this patch fixes them.
Change-Id: Ieae9bfdfed113795c0a7065964781914a2d041ce
Depends-On: I506e9c761ad1af3126db2c4778aa9dbbcf340130
To test UI plugins, we should install recent Horizon
from master branch.
Also, fixed eslint and karma.
To run tox test easily before upload patchset,
adds eslint, karma, docs and releasenotes to envlist.
Change-Id: I82806631e7219eaa2372c2cd62b264056fbea64d
Django 1.11 is latest LTS and horizon team drops django<=1.10
from testenvs and requirements. So we drop them.
Instead add py35dj20 testenv for future support.
Change-Id: I2215be8a28f8bc180aeac093418fdb90f9272fdd
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: I530d7fced04c8e6668e92ed5feb78ae3a863979c
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Starting in Django 1.7, standalone scripts, such as a sphinx build
require that django.setup() be called first. See:
https://docs.djangoproject.com/en/1.8/releases/1.7/#standalone-scripts
It does not always necessary, but it is needed to avoid warnings
when creating autoindex.
Note that horizon no longer generates the autoindex to avoid warnings.
Drops setenv DJANGO_SETTINGS_MODULE in docs env in tox.ini.
DJANGO_SETTINGS_MODULE is configured in doc/source/conf.py,
so there is no need to pass envvar.
Add warning-is-error sphinx setting to avoid doc build warnings.
Change-Id: I2de87c0df05abf589c90fb3ad691322e1125c310
If 'noqa' is specified all hacking checks are disabled.
It is better to ignore specific rules explicitly rather than
ignoring all. The recent flake8 supports this [1].
[1] http://flake8.pycqa.org/en/stable/user/ignoring-errors.html
Change-Id: Ieeb62e8d66e626ab2e6cd506ce3a9854c69d5643
To enable py35 tests, refresh test environments.
Also, update docs, remove run_tests.sh that is no longer used.
Change-Id: I9bcf4acdfd4a9811ab2f0fc3bd02898a46fbd112
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.
Change-Id: I376b2140d7fa9520d976c213bd12dc814c6cf532
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: Ifaa336eb08c697f022bda17aaf38e39e891a0c72
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: I7e537a47eff76116101c62e0621b0f3426ee6db6
PhantomJS has setup issues and is slowing down the gate with false
failures. We should change to Chrome until Phantom is more
reliable, at which point this patch can be reverted.
Change-Id: Ifb3c8f1bcc27ea79151a44b0d044f46e1d856f6d
Karma and coverage tests scatter its result around.
And recently, infra team seems to set a subdirectory called
'cover' for coverage tests by default.
This patch accumulates their results into 'cover' subdirectory.
Change-Id: I9c32da1ffdbb2f3104d9ecd6303f1f92fc0fcda8
About run_test.sh, the report of test coverage seems
not create at the moment.
Also tox for cover doesn't work well.
This patch fix it.
Change-Id: I408b4c053c4290c7a205d892c43cb7cd2bbff641
This patch setups JavaScript test environment.
- eslint
test at local: `tox -e=eslint`
- karma
test at local: `tox -e=karma`
Change-Id: I08675d8377214c52745ed7928bb58ec460a949b1
Implements: blueprint js-test-env
Fixes a bunch of missing __init__.py files to make the docs job pass
without warnings, also cleans up tox (to move away from run_tests)
Change-Id: If305c701b4d601e66f1f9987d2dd70d6634ea624
Openstack infra now supports upper constraints for
all jobs. This patch removes install_command for
upper constraints from all post jobs.
Change-Id: I37fa82d49bcdea0409ec526063c077c32dbf094f
Closes-Bug: #1614117
This will force pip install to use the upper-constraints.txt specified
version of pip modules. When you don't do this, you are out on the
bleeding edge and become unstable everytime some python library in the
wide world changes in a way that you don't expect.
The post jobs can not use constraints file, so override the install
command there.
Change-Id: I4776140ee20ccbddb219c87cb613d48460c3b98e
Closes-Bug: #1563038
The Django version is set to [Django>=1.8,<1.9 # BSD]
in the global-requirements.txt of OpenStack/Requirements.
The tox.ini should remove the py27dj17 like Horizon.
The Django version in the requirement.txt should be updated.
Change-Id: Ib0af7d45ac4ac6e412dd4cb7091c113f5a53ffcf
Closes-Bug: #1552124
There are a lot of H405 violation codes.
We need to fix the code for avoiding more violations.
Change-Id: I0db7b2276126f60768dde0cdf6ebd8681029ec10
Closes-Bug: #1521899
Add the basic structure for the magnum-ui repository to serve as a
starting point for contributions. The structure is likely to change
as development progresses.
Change-Id: I5458741e2dd4c3409992315efaa60b33824b4ec8
Implements: blueprint repo-skeleton