Commit Graph

20 Commits

Author SHA1 Message Date
Ghanshyam Mann 4791c14886 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: I8f4276fbd0f756cf7032822ffb6ca51b4d934478
2022-08-10 15:14:41 +02:00
manchandavishal 23c64ca188 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.

Change-Id: I70c82525454c93d2d763b5f304d8fa7d2f57b1f8
2021-10-11 18:54:49 +05:30
manchandavishal 445306dda9 Fix lower-constraints job
lower-constraints job does not need linters, So we can drop
mccabe to fix the lower-constraints job.

Change-Id: I0342d9a3dfb441f89aa9d100b4eadbc6d49f87e5
2021-03-05 06:08:52 +00:00
manchandavishal 3fc494d173 [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).

removing the python-zmq from bindep as that is py2 things and not
available/needed for Focal/Victoria testing.

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

Closes-Bug: #1886298

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

Change-Id: If68e8dcb2295267195acc4918abe5167e863a7f2
2020-08-12 13:06:35 +00:00
Andreas Jaeger 944da81279 Cleanup py27 support
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 requirements, no need for python_version anymore
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE instead of UPPER_CONSTRAINTS_FILE since
  the later is obsolete
- Increase lower constraints to fullfill package requests

Change-Id: I7126c2646f272b3f8c568630293a194bc5ba98a9
2020-04-28 21:20:48 +02:00
Luigi Toscano 18921beb2e Test fixes: unittest.mock, better l-c job, pytest dep
Now only python 3 is supported, which means unittest.mock
can be used instead of the external mock module.
This change can be done thanks to the Horizon
change I2de669d8e89b8daeb7ee5405ffab35af6307c40b

Switch to openstack-lower-constraints-jobs-horizon
which pulls in the last horizon. The lower-constraint
version of horizon should be bumped when a new
version (post-18.2.0) is released.

Finally, add pytest to the set of test requirements
to prevent an missing import error (even through
the sahara scenario tests still need to be ported
to pytest).

Change-Id: I2c61e9d88b2d05c9f0b68066d7bb15b43cdf083f
2020-04-15 17:59:11 +02:00
Zuul 496de07144 Merge "Update hacking for Python3" 2020-03-31 20:47:09 +00:00
manchandavishal 33d6f261c7 Fix pyScss version in lower-constraints.txt
Horizon requires  pyScss>=1.3.7 [1] but lower-constraints.txt
in sahara-dashboard 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: Ia2415a21f643648ebd02644224ec44dcc773713a
2020-03-31 16:57:10 +00:00
Andreas Jaeger 24e6863ba7 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Remove hacking and friends from lower-constraints, it's not needed
there for co-installing.

Change-Id: I3d250ba82cc14f163f4295381b9b9c232486ac9f
2020-03-31 17:38:17 +02:00
manchandavishal bfce75ee8c 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: I5ddd9d5ba23634f110927e385550d97b66fd2542
2020-01-02 20:35:53 +00:00
Jeremy Freudberg 55f14de598 Bump python-saharaclient lower bound to 2.2.0
Needed for the newest boot from volume stuff.

Change-Id: Ibebd7d789d9233e2c7dee3f41f23d82c3f7f2b8e
2019-03-07 10:04:07 -05:00
Akihiro Motoki 72a6a7a94b Switch test runner to django default runner
nose is not actively maintained now and Django default test runner
seems to have enough features.

* Horizon test setting no longer depends on nose and related stuffs.
  This commit cleans up nose related dependencies.
  The change was made in horizon Rocky-3,
  so horizon 14.0.0.0b3 is required at least.
* Integraion tests is marked via django.test.tag mechanism which is
  introduced in Django 1.10.
* Rename filename of test files to names starting with 'test_'
  so that the django test runner can find tests expectedly.
* run_tests.sh is no longer called from tox.ini, so it can be dropped.
  Note that the similar run_tests.sh in horizon was dropped long ago.

Change-Id: I1e5471078cc95031e8819f01100319a9ee2a3a73
2018-08-21 23:16:36 +09:00
Jeremy Freudberg 55e129f866 Bump python-saharaclient lower bound to 2.0.0
For S3.

Change-Id: Id3b975eb99691b0ec3a94066222b39b65ef33777
2018-07-30 07:59:38 -04:00
Zuul 48adf48e8a Merge "Drop python-cinderclient usage" 2018-07-16 15:05:20 +00:00
ZhijunWei ad82a7a2bd Drop python-cinderclient usage
sahara-dashboard does not use python-cinderclient, so remove it.

Change-Id: I27cb0d08f4dc3d8f3d51bbd8c6358ab9d800b522
2018-07-15 04:29:41 +00:00
Zuul 1679f79691 Merge "Fix the coverage tox target" 2018-07-11 23:18:45 +00:00
Luigi Toscano 56b69d6477 Goodbye mox - no more needed
The porting to mock of sahara-dashboard is complete.
This fulfills the community goal
"Remove Use of mox/mox3 for Testing" set for Rocky:
https://governance.openstack.org/tc/goals/rocky/mox_removal.html

Raise the requirement to the Rocky M2 release of Horizon,
which drops the usage of mox by default (it should be
explicitly enabled). Without a forced import from Horizon
the mox dependencies can be dropped here.
Bump also a dependency needed by this new version of Horizon.

Change-Id: Iaf272af9919f8a69562c0a469130bbf8628936cf
2018-07-04 19:38:21 +02:00
Luigi Toscano 465b10e1ef Fix the coverage tox target
It was broken for a long while, since the migration
of the dashboard code into Horizon, and then back
into this repository, as .testr.conf was removed.

Use coverage directly instead of testrepository,
the same way as Horizon does. We should port
the normal test runner to the Django test runner too,
instead of the custom run_tests.sh script, but
that's for another (future) review.

Change-Id: I08966ddc7e891156a1c934bb115ce8a02f77ec83
2018-06-29 14:53:30 +02:00
Luigi Toscano dd3f3c8810 Require the (soon-to-be) Rocky version of Horizon
... or at least the first published tarball which will lead to Rocky.
On the other side this means forcing the usage of mox as long as
there are tests that depends on it (the switch was already flipped
in Horizon, so it needs to be enabled here).

This allows us to depend on newer Horizon features, including changes
to the test suite that are useful for the mox removal effort.

Change-Id: Ibf95b642f49aee9b3165f46e0422ff6bf56e9391
2018-04-23 22:30:53 -04:00
Doug Hellmann b81d74661c 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.

---
sahara-dashboard specific changes:
- sahara-dashboard uses django.urls module which is only available in
  Django 1.11 or later, so the Django min version needs to be bumped to 1.11.
  Horizon Rocky bumped the Django min version
  to >=1.11
- django-babel needs to bumped to 0.6.2 to support Django 1.11 and 2.0.
- nose-exclude needs to bumped to 0.5.0 to run all existing unit tests.

https://review.openstack.org/555402 allows us to bump lower requirements.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I6cc5d973ea0e586e6fbe2ab4ba1345857722d008
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-03-26 05:13:19 +09:00