Commit Graph

14 Commits

Author SHA1 Message Date
wu.shiming ad720c3371 Remove lower-constraints remnants
These were missed in change : Icd090cf8a36fa560bf7b0c67d0e1c4923c221c65

Change-Id: I07b577f4e948c03d1751145e5f898b90ac1c197a
2021-02-19 14:38:30 +08:00
Ghanshyam Mann e42c73343f [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:
- Bump the lower constraints for required deps which added python3.8 support
in their later version.

Story: #2007865
Task: #40207

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

Change-Id: I978482f860a766c474944c77e2c569541f4849b1
2020-09-06 00:53:30 +00:00
Zuul a0f44c1755 Merge "requirements: Drop os-testr" 2020-07-10 17:07:01 +00:00
Stephen Finucane a9e699227d requirements: Drop os-testr
Change-Id: I9525eda24465bdedb9ae917350263fa91e9b780a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-07-09 11:37:49 +01:00
jacky06 43e263ece8 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: I01944ebdbf6311580f8991da61256e93be6823b3
2020-05-15 17:16:23 +00:00
Sean McGinnis b903d4e1ee
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: I3e1e5ed4e72837d45b78e5ccb9ce8cca416e5c11
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-31 14:31:03 -05:00
Stephen Finucane 1eb03f187a Drop use of six
No need for this in a Python 3-only world.

Change-Id: I8923f2b87c1bd114b8c55210100c7485a0de8f28
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-02-25 17:33:41 +00:00
Stephen Finucane d4038860ce Remove final references to mox
We don't need it anymore. Drop references to it.

Change-Id: Icade65ce11f4dbbf2d2f903985cea941cb7e8cf7
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-02-25 16:57:45 +00:00
Stephen Finucane e4f2020b94 Raise minimum SQLAlchemy version to 1.2.0
Per [1], this is the latest supported version of SQLAlchemy. 1.1.x and
earlier are EOL.

[1] https://www.sqlalchemy.org/download.html#relstatus

Change-Id: I63e4baf772be9ddfb787ac3aff01fcaddf7b901c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2020-02-25 15:52:47 +00:00
Sean McGinnis 82098f63bc
Drop unittest2 usage
unittest2 was needed for Python versions <= 2.6, so it has not been
needed for quite some time now. See unittest2 note on:

https://docs.python.org/2.7/library/unittest.html

This drops unittest2 in favor of the standard unittest package.

Change-Id: I40882f14ff2ac121764b432fc745b21ae751e321
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-01-12 11:36:56 -06:00
Ben Nemec 57333e902a Bump psycopg lower-constraint to 2.7
Earlier versions don't work with postgresql 10, which is now showing
up in distros.

Change-Id: I56589eb4ac55bec426d16f355398720f2994edcb
Closes-Bug: 1821400
2019-03-22 19:34:32 +00:00
Vu Cong Tuan 944fe4b6c1 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: Ifd51e726de277d33ff61db47110bf8b5563fcda7
2018-07-13 10:18:54 +07:00
Mike Bayer 43af1cf083 Remove most server_default comparison logic
Added a new test case that covers comparison of a MySQL server default
defined as text("0") in the model as well as in the database.   The
MySQL default comaprison logic in oslo.db was not accommodating of the
model side here being a text() construct.   As modern Alembic
versions supports most of the use cases tested here,
remove all server defaut comparison logic except for the boolean
comparison workaround.

Alembic minimum is bumped to 0.9.6; the issue repaired between
0.8.10 and 0.9.6 is http://alembic.zzzcomputing.com/en/latest/
changelog.html#change-5459a7552a17d8b658f0f710bedf6da0

Depends-on: I1a8244edae47b04b7b1fed54e577d6534945bcd8
Closes-bug: #1776527
Change-Id: I48a103e28d86128ea84466da4d9d6faab1dd9a9d
2018-06-15 13:31:38 +10:00
Doug Hellmann f659198dfc 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: I33404e115161a430ce0587bf203450c8145db0a0
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-24 21:02:26 -04:00