Commit Graph

15 Commits

Author SHA1 Message Date
Ghanshyam Mann d791f72d3f Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: Id1033264dea1d8b72ee49e33cc776d5dac6193b9
2022-04-30 20:25:10 -05:00
manchandavishal ced9789139 Bump decorator version in lower-constraints.txt
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
2021-09-17 12:47:19 +05:30
wangzihao 61c84581e9 Align lower-constraints for new pip
Bump a series of lower-constraints and requirements to work with new pip
resolver, testing with steps outlined at [1]

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019285.html

Change-Id: I7034058612ff66d1bb7d8350c8120f007384ad7a
2020-12-09 14:43:03 +01:00
wangzihao c1ae54b120 Remove six
Remove six Replace the following items with Python 3 style code.
- six.text_type
- six.moves.urllib
- six.PY3

Change-Id: I8d2357e51d570e9e0513326248878fd0133144bb
Story: 2008305
Task: 41203
2020-11-03 11:21:10 +01:00
manchandavishal 56958ac0fd [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8
support in their later version.
Story: #2007865
Task: #40197

Closes-Bug: #1886298

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal

Change-Id: I88cdf86365a0af8450e5fb823eab830834ce8fa1
2020-08-21 11:42:57 +00:00
Hervé Beraud ca55abec23 Use unittest.mock instead of mock
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
2020-06-10 13:59:58 +02:00
Zuul 135d98dfa3 Merge "Fix pyScss version in lower-constraints.txt" 2020-04-16 08:45:02 +00:00
manchandavishal b1caa0128f Fix pyScss version in lower-constraints.txt
Horizon requires  pyScss>=1.3.7 [1] but lower-constraints.txt
in monasca-ui uses pyScss 1.3.4 which can cause the
failure in future. So this patch update pyScss version in
lower-constraints.txt to sync the change.

[1] https://review.opendev.org/#/c/715241/

Change-Id: I792c90993db19ecf4821ff45da0279658bae4719
2020-04-15 17:48:23 +00:00
Andreas Jaeger d694236c3a Cleanup py27 support
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
2020-04-15 19:01:08 +02:00
Andreas Jaeger db7c489c7a Add pytest requirement
Fix py36 and py37 tests, they are failing since pytest is not installed.
Horizon tests need this.

Change-Id: I8755d7e11e17aad6b48e7917eb07bf286fbd6e4f
2020-04-15 15:21:04 +02:00
Andreas Jaeger f037523797 Update hacking for Python3
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
2020-04-01 12:22:43 +00:00
manchandavishal f8d3417d0b Drop Django 1.11 support
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
2020-01-02 19:40:26 +00:00
Akihiro Motoki 4701b0f681 Drop nose dependencies
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
2018-08-17 01:59:02 +09:00
Witold Bedyk 36b30a74c1 Fix README.rst and add syntax check
Additionally:
* fix Zuul configuration for lower-constraints job
* raise lower bound for Horizon (due to mox3 removal)
* remove Django from requirements.txt (already included from Horizon)

Change-Id: I44d6cd7477ac0d318705077109b4dc233a5a37d8
Story: 2002163
Task: 24398
2018-08-08 18:04:12 +02:00
Doug Hellmann b526e21436 add lower-constraints job
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>
2018-04-10 16:42:22 +00:00