This patch update decorator version to 4.4.2 in
lower-constraints.txt to fix the lower-constraints job.
It also update horizon version in requiremnets.txt to
sync with horizon version in lower-constraints.txt.
Change-Id: Ifacecc79608df3d052679779bc7a9f1338d2d2f6
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: I3cd4ad5c3fe590cb1522b2be1b2059d7c70b45cc
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.
monasca-ui specific changes:
- Unlike other projects, monasca-ui does not support python3 unit tests yet.
python2.7 is used as basepython. This should be updated to python3 later.
- Bump the the minimum version of python-monascaclient to 1.8.0
to pass test_client unit tests.
- nose-exclude needs to bumped to 0.5.0 to run all existing unit tests.
lower-constraints.txt is modified to match the latest horizon requirements
https://review.openstack.org/#/c/555491/:
- unit tests fails with Django 1.8. It passes with Django 1.11.
Horizon Rocky bumped the Django min version to >=1.11, so it makes sense
to bump the Django min version to 1.11.
- django-babel needs to bumped to 0.6.2 to support Django 1.11 and 2.0.
https://review.openstack.org/555402 allows us to bump lower requirements.
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: Ifd967b598db259429cc83046ae88abaf3d50e081
Depends-On: https://review.openstack.org/555034
Depends-On: https://review.openstack.org/555402
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Signed-off-by: Akihiro Motoki <amotoki@gmail.com>
In order to make monasca-ui python3 compatible this
patch set:
- Add six to requirements.txt
- Add py35 to tox.ini
- Replace dict.iteritems() with six.iteritems(dict)
- Replace prit msg with print(msg)
- Replace unicode with six.text_type(msg)
- Replaces urlparse with six.moves.urllib
- Python 3 getting the keys() of a dict returns
a dict_keys object instead of a list
- python 2.x calling keys makes a copy of the key
that you can iterate over while modifying the dict.
This doesn't work in python 3.x because keys
returns an iterator instead of a list.
Another way is to use list to force a copy of the keys
to be made.
Story: 2000975
Task: 4129
Signed-off-by: Charles Short <zulcss@gmail.com>
Change-Id: Ibc644a734edceea0b36f2df2c73300d1e4db925f
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: Ife02518fce62083661bf06c0fb98e683c5c3d311
Previously taken approach, where python-monascacient, is installed
from the Zuul reference or master made the new ZuulV3 based
tox gates failing.
Change-Id: I864a83862958ec21a681254d7c7a0efb72cf194a
Fix problem with unexpected keyword argument 'name' for
build_attrs() from Django. 'name' was passed to the method
as a kwargs. **kwargs in build_attrs() were removed.
Pass 'name' in a dict.
In Django 1.10+ passing Context to render is deprecated and
gives an error, pass instead a dict.
Remove one assertContains from alarm definition create.
Tags in <input> where generated in random order every time
the gates run:
<input type="text" name="name" id="id_name" required maxlength="250" class="form-control" />
<input type="text" name="name" id="id_name" required class="form-control" maxlength="250" />
<input type="text" name="name" class="form-control" id="id_name" maxlength="250" required />
Change-Id: I2d39a10f08ac60c163f80cca3256a2bb24b4e0a2
Story: 2001133
Task: 4844
Being a horizon plugin, concurrent installability is important. This
module should sync from global-requirements. Syncing once manually
in preparation for adding a g-r sync.
Change-Id: I38516a2a2e1477891378c2058ba8dcb513f2fd2e