Commit Graph

8 Commits

Author SHA1 Message Date
dengzhaosen ca5be3512b Ussuri+ is python3 only and update python to python3
Change-Id: If3f844ee6bfebc16f15263dc03653cb2aba27bf2
2021-05-06 10:22:37 +08:00
Hervé Beraud e764cd92f4 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I2b54ba480ce256d133be58a98b567d0964c25428
2020-06-02 20:41:31 +02:00
Andreas Jaeger d90726a1eb 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: I3f23bf09ef24fe34e128102c34382da98e10f5c1
2020-04-02 15:10:56 +02:00
Andreas Jaeger 464a948d77 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: I0acb957501680b85919ca1672a5d8ad751eac5da
2017-12-02 17:06:59 +00:00
Tony Breeds dfe61b1b1b Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove oslo.utils.

Change-Id: I612b881da465c96ee8200118f8f2b90ef2f02225
2016-12-20 14:20:50 +11:00
Doug Hellmann 9b3763b42b Remove run_cross_tests.sh
This script is part of the oslotest package now.

Change-Id: If8060f485d89e81bd9d9b21f0962afb2b4beaab3
2015-05-05 19:39:52 +00:00
Doug Hellmann 6e0b86164b Improve performance of strutils.mask_password
Only apply substitution patterns related to key values that appear in
the string.

Replace .*? in patterns with more explicit patterns that don't require
backtracing.

Add a performance test script for future testing work, with references
to large data files that can be downloaded but that we don't want to
check into the source repository because of their sizes.

Change-Id: Ic3ed252d181c93b8a0db465db6c8c4a7ca97da42
Related-bug: #1408362
2015-01-07 14:12:26 -05:00
Davanum Srinivas 01bca57862 Get the tox tests working 2014-06-18 23:12:10 -04:00