This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz .
Change-Id: Ie0538de1dd8df45009ca24bab379980d7d1b9613
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
- Switch to using sphinx-build
- Use openstackdocstheme instead of python2 only oslosphinx
- Remove install_command from tox.ini, the default is fine
- Fix two hacking problems, those were masked by ignore
to an empty string.
Change-Id: I8f67f8a7998a16805cbda52854a6b0f0ade05dc8
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix warnings found.
Change-Id: If966592a0f0d2c1000d5dc1ddafe2a3bcae88551
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 is updated accordingly.
For more info. please refer [1], [2].
[1] https://review.opendev.org/#/c/700733/
[2] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin
Change-Id: Ifc49a69d4b34b32d64a95cca488c3a1ab7eb2ef6
babel extractors are now registered via python entry points,
so there is no need to declare babel extractors in babel configs.
This change is important to make translation work in Django 2.2.
django-babel does not work with Django 2.2 and looks unmaintained
for over two years. The horizon team is thinking to switch the extractor
to enmerkar (a fork of django-babel) to make extraction of translation
string work again near future. It is important to drop the extractor
definition to make the transition smooth.
django-babel (and enmerkar, a successor of django-babel) will be
installed via horizon, so we don't need to have it in requirements.txt
explicitly. It would make the transition of the babel extractor easy.
Babel is dropped from requirements.txt from the same reason.
Django dependency is also upadted to sync global-requirements.txt
to pass the requirements-check job.
Change-Id: I093d2c9789a142e909da6f3bedc12a91b181ab02
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: If66f8edc7208b406d39cce90d22be53dd7e21301
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Remove unncessary "=="
Change-Id: I3ba06e23519177c05352b97c42dd95d2674d5b0a
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.
Change-Id: I79d6f1be1a2efbdab78769817a97419556176a5a
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: Id7de113d53e86770172bd15d537f82e34b0ce9fb
Story: #2002586
Task: #24303
icalendar package is required to karbor-dashboard to work.
It is imported and used at
bfcecfee68/karbor_dashboard/triggers/utils.py (L18)
If package is not included, horizon fails to start, this dependency
should be fixed in karbor-dashboard side rather than in deployment
tools/packagers.
Change-Id: I7eb826ee6f08366f0aa934342e0cdf0eaaa0bae0
Closes-Bug: #1787040
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: Ie14819fe7be1fc6d7d8e04f2aa9f123bb6ad17e6
This patch does several things at once:
- Remove mox from KarborApiTest. Use mock instead
of mox3 to mock out the karborclient.
- Use mock to mout the karborclient.
- Drop mox3 from the test-requirements.txt.
This is apart of the mox community goal for Rocky.
Change-Id: Iea9e65778777746682895521f17ca69f5c27f7fd
Signed-off-by: Charles Short <zulcss@gmail.com>
Currently, karbor use 'calendar' format as the default
time format, but karbor-dashboard use 'crontab', this
makes the trigger creation failed. This patch convert
the time format of the dashboard to canlendar to make
it work.
Change-Id: I7a89365005af3256bdf02478dd60428a118a8bbe
Closes-Bug: #1613587
django_openstack_auth has been merged into horizon tree
as an effort of blueprint merge-openstack-auth.
There is no need to depend on django_openstack_auth any more.
Change-Id: I2fce88f4aba3c3e6ef44a75dae8357444ea88804
Currently, previous page in checkpoints pagination not
work, it always throw an error in the web page. It is
because that checkpoints in karbor do not need reverse
the order (checkpoints are sorted by 'timestamp@id' in
the backend, so we can not do the reverse only be the
id or name)
This patch will fix it.
Change-Id: I45c3e7337bf2ee9d3f2fbf9ee7a438884b8b8ca9
Closes-Bug: #1714909