The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.
Bump horizon to 18.3.0 in lower-constraints.txt since it is the
first version with "Use unittest.mock instead of third party mock"
change [1]
[1] 7eeb9e14f9
Change-Id: Ic64fffaeded18ac11ce438c77526e60a37aeaa1d
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.
Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.
To avoid similar gate break in future, we need to bump the hacking min
version.
- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
Change-Id: I7028aa296303e1dd138bcbc511072a4e4f228aad
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:
* Wheel is not needed for python 3 only repo
* Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore
- Remove sphinx requirements, the repo has no docs
Change-Id: I3ee6abac9b5c4c639521bb2834a104bc53ce93ed
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found by updated hacking version.
Remove hacking and friends from lower-constraints, they are not needed
for co-installing.
Change-Id: Ibef3bbaceb61612d678c542bc8c95da24a7e2c87
1. Update hacking version to latest
2. Update some urls to https
3. change the py35 to py36 since py35 is removed
Change-Id: I6de72299d865225ccb522dca8316a024eebe75fd
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
This change fixes `requirements-check` Zuul job.
Change-Id: Ifa99a376c2b0e0e2504a8078cfa4fe1d45881310
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.
django_nose is unnecessary in test/settings.py.
The related settings are dropped.
Change-Id: Ic8683e670f472079bfbe57e1cdd0f9105a358023
create_stubs in test.helpers is also dropped in this
commit because this creates a stub using mox
This is part of mox-removal community goal in Rocky.
Story: 2001546
Task: 8719
Change-Id: Ic97d45f3b265cf61ad483c33b4d29b975dd93a5f
Signed-off-by: Charles Short <zulcss@gmail.com>
monasca-ui misses policies file to control the permissions
over actions executed from within Horizon plugin.
Extra:
* enabled running tests with configured policies
* removed unbounded policy sample file
Change-Id: I273f06332fa11a81ea8de2c13059dce9d160e90d
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848
Change-Id: Ibce7593f94908f85bcd9bc0abc8c5f917a8e9bb2
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
"./run_tests.sh --compilemessages" is failed due to oslo packages
version mismatch. Oslo packages are required by Horizon. So monasca-ui
does not need to specify these packages. Unit tests are passed even
without these packages.
Change-Id: I8514d1fefe18c0a03d34b1bd7be85d7064c3bb26
* add simple proxy for kibana requests
* organize settings in `local_settings.py`
* narrow down coverage to monitoring package
* fix requirements with stable versions
* upgrade Horizon
Change-Id: I618485e9b6fa11fe423c3b1b3ad5f8c02cc163b4
- Update horizon version
- Remove --upgrade option in venv installer and tox.ini
- Freeze oslo libs versions
Change-Id: I4b6697cba20699da59af8f9cc7440a669d9f0c6e
This was added to work around bug 1091333. A new sphinx has been
released and so this is no longer necessary.
Also update sphinx requirements from global requirements.
Change-Id: I9107884d964757a9154bdd1feb4ea6df4e9df43e