Commit Graph

11 Commits

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

Change-Id: I2c9051126b4a42706bdce025b07706e4689a09ae
2021-02-19 15:05:19 +08:00
Daniel Bengtsson 3847688ab7 Remove the yamlutils module.
The pyyaml is now safe by default:

https://github.com/yaml/pyyaml/pull/74/files
https://access.redhat.com/security/cve/CVE-2017-18342
https://github.com/search?q=oslo.serialization+yamlutils+user%3Aopenstack+language%3APython&type=Code

So the yamlutils is now useless. No project in OpenStack used this
module. We can remove it.

Sem-Ver: api-break
Change-Id: If0a98f1e15d83131cb309e02f892372f353fa5da
2020-06-08 11:44:27 +02:00
jacky06 24608da627 Remove the unused coding style modules
Change-Id: I89b439336d92cbe0a87f1b33113b3d46afcdf6be
2020-05-16 01:10:09 +08:00
Andreas Jaeger 5ee9b7bf54 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: I94aabb5b1ef43e8f0a5850620afce91ae0755e97
2020-04-02 15:06:39 +02:00
Sean McGinnis d3159d4b60
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: I5b6f25b1154b9d655843615ca8402fe4f73e923f
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-13 11:46:12 -05:00
Stephen Finucane ad356ea9c2 Drop use of six
Another one bites the dust.

Change-Id: I1fadcad8219322b569eeecd81e454a44641e8b1e
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-03-02 10:10:22 +00:00
Hervé Beraud 9e4adf56b2 [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: Icc43428c885853007a6ee9fc4acaf079f6349619
2020-02-03 18:34:40 +01:00
Vu Cong Tuan dc592c68e3 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: I78a93c29f2c9033bba1859c79d826578d72257f5
2018-07-04 08:23:05 +07:00
Morgan d5855294a8 Stop using encoding='utf-8' with msgpack
msgpack is throwing a warning that the unpacker has deprecated the use
of encoding argument. Instead the unpacker uses `raw=False`, which
does an unpack with similar behavior to the old encoding='utf-8'
mechanism.

This will reduce a lot of warning spam for projects using msgpack
such as Keystone. The change to the kwarg "raw" from "bytes_as_raw"
happned between 0.5.1 and 0.5.2. Changing the lower constraint is
required to ensure the new arguments are matching the method
signature.

Change-Id: Iadbee3ec8def9512369a415fb4603dc05d0cbc56
2018-06-03 00:25:50 -07:00
Morgan Fainberg bd10ae04a1 Unblock requirements changes
Add ipaddress===1.0.17 to unblock updates of requirements.

Update requirements.txt for msgpack to be 0.5.1 matching
lower-constraints.txt

Change-Id: I94e0dd9dc54822a6fa8daf6d2dce1f203451cb22
2018-06-03 00:24:48 -07:00
Doug Hellmann 7d03e2d7e4 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: I1a851389a2bb2f445dac922fab2d151ec23b8c6d
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-24 21:02:54 -04:00