Commit Graph

10 Commits

Author SHA1 Message Date
Daniel Bengtsson 5c806d492b Fix requirements issues
This patch is the merge of 2 current fixes that need to be solved in the
same time. Indeed each issue lock our gates independently.

Dropping lower constraints testing

We facing errors related to the new pip resolver, this
topic was discussed on the ML and QA team proposed to
to test lower-constraints [1].

I propose to drop this test because the complexity and recurring pain needed
to maintain that now exceeds the benefits provided by this mechanismes.

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

Move flake8 as a pre-commit local target.

The goal here is to avoid conflicts between flake8 and hacking version each
2 days.

Inspired from nova's approach[1].

The flake8 version to install will be determined by hacking and
requirements[2] will stay aligned instead of relying on different versions.

[1] https://opendev.org/openstack/nova/src/branch/master/.pre-commit-config.yaml#L26-L35
[2] https://opendev.org/openstack/hacking/src/branch/master/requirements.txt#L1

Co-authored-by: Hervé Beraud <hberaud@redhat.com>
Change-Id: I2f41e05df1cc978821bf7cb6d9a95bf543c7fba3
2021-03-25 11:53:12 +01:00
Zuul d1f871ae54 Merge "Remove the unused coding style modules" 2020-05-25 15:22:20 +00:00
Zuul 5f179a1868 Merge "Drop use of six" 2020-05-18 19:17:53 +00:00
jacky06 d198330e98 Remove the unused coding style modules
Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
as they are not actually used in tests (other than pep8).

more info: https://github.com/openstack/requirements/blob/master/blacklist.txt

Change-Id: I65f45f9e8788d3a7df4078c3f1cc6eaf0069c140
2020-05-15 17:18:18 +00:00
Sean McGinnis 37ceca6d0c
Drop use of six
Change-Id: I53005107bf4c05809182dc3865c5dc72c77b1054
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-06 07:12:09 -05:00
Sean McGinnis 8b2aaa3f6c
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I15fc9e39d69f817fb5db8ce7111d0397a25c94b0
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-31 14:32:21 -05:00
Hervé Beraud 0f769d4c9f [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in Ussuri cycle.

Complete discussion & schedule can be found in
-
http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I8604e1a22d7cb13251e2ef22ef86318ad2de346e
2020-02-03 18:15:43 +01:00
Cyril Roelandt baf3193f6a Do not use the deprecated best_match() method
This requires an upgrade of WebOb to 1.8.0.

Change-Id: Ifb0abb958ca30f19b4937384d9d732e2dc4e35a5
2019-03-28 21:32:21 +01:00
Vu Cong Tuan 48ec101f15 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I9b230222866d41a12713f321cee88da896ba76a1
2018-07-04 08:20:45 +07:00
Doug Hellmann 880f29d72e 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.

Change-Id: I477dc48b392c20e93c69464b2b45c21ba7f4805b
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-24 21:02:38 -04:00