Commit Graph

14 Commits

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

Change-Id: Ie0396e889cd9ae37f1330adb7e6906f128b3270a
2021-02-19 14:57:06 +08:00
wangzihao a2122e7432 Remove all six usage
Remove six Replace the following items with Python 3 style code.

- six.string_types
- six.text_type
- six.itervalues
- six.StringIO

Change-Id: I32401859129843242922f1d0510b21e32bb7d8cc
2020-10-14 10:24:52 +08:00
Ghanshyam Mann e45d4e97e5 [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: #40207

Closes-Bug: #1886298

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

Change-Id: I98cf0e5cee8f1996943b6274e914fcbca667fef7
2020-08-04 03:45:57 +00:00
Zuul 138925c041 Merge "Remove the unused coding style modules" 2020-05-26 13:52:09 +00:00
Andreas Jaeger 8e914079c6 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering

Update Sphinx version as well.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

Set openstackdocs_auto_name to use project as name.

Depends-On: https://review.opendev.org/728938
Change-Id: I11c609d70b7a020547b1897cce60a7a2365e7dd8
2020-05-18 20:57:21 +02:00
jacky06 f15936b84e 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: Icce6c4bca1d3a68326733b556708a501e24dad40
2020-05-15 17:19:46 +00:00
Zuul 314c4e7915 Merge "Use unittest.mock instead of third party mock" 2020-04-06 15:06:02 +00:00
Andreas Jaeger 4838541e98 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: I76369aad2778418182eab7c3eaf331b8d6b8fb1d
2020-04-02 14:59:15 +02:00
Sean McGinnis cc7f78cfa6
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: I0ec3d1c0f53bf859ea1ec115ebb47f1d5f3b217c
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-31 14:43:17 -05:00
Hervé Beraud 57cfce71db [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: I700fe8837312c5c9d88dcdd073389f81a1d874bd
Sem-Ver: api-break
2020-02-06 10:25:49 +01:00
caoyuan 8a37087388 tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: Ied545a35429a87dc32b746ed54595311d903fea2
2019-10-24 14:52:46 +08:00
Vu Cong Tuan 8d49f91349 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: Id762418616487dfb0955675b7c50085b48307879
2018-07-03 16:05:38 +07:00
Doug Hellmann 409c15e175 fix lower constraints and uncap eventlet
Fix the lower constraints values to match the expected values.

We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.

Change-Id: I2974d8d119664e6d21decc6f4fc5b16fdb5724a0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-12 10:47:33 -04:00
Doug Hellmann a3ee768864 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: I161c55335b8fa6a57164bfadbc7be0adb6fed33b
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-24 21:02:48 -04:00