Commit Graph

10 Commits

Author SHA1 Message Date
Hervé Beraud e2bf7cff22 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: I73b532283079d346b75a925e2aee707c4de8fa9e
2020-06-02 20:54:04 +02:00
Andreas Jaeger ac65fa735c 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: I65e1e4d40fbd56c7e2f7e4a59c0438d7176c36b4
2017-12-02 16:54:12 +00:00
Amrith Kumar 1ae94d4107 Get python-troveclient to use upper-constraints.txt
In review[1] which passed just fine in check some days ago failed in
gate today. This is because the current tox environment uses requests
v2.12.1 which appears to not work and is beyond the value in
upper-constraints.txt. As observed in [2] we need
upper-constraints.txt in python-troveclient.

But since python-troveclient is itself listed in upper-constraints.txt
you can't just stick it in tox.ini and expect good things to happen.

I'm adding a co-author to this change based on [2].

[1] https://review.openstack.org/#/c/382493/
[2] https://review.openstack.org/#/c/398339/

Co-Authored-By: jiansong <jian.song@easystack.cn>
Change-Id: I386efb2d5c147417af7ea25704405977c9b6bbcd
2016-11-16 22:38:20 -05:00
Davanum Srinivas a1c390ec34 Last sync from oslo-incubator
oslo-incubator will cease to host common code soon. This is
hopefully the very last sync from oslo-incubator.

Change-Id: I00fe0502de6f97712ffa5173c513304d66be55d5
2015-11-12 14:13:00 -05:00
He Yongli 59ec2bb433 Remove vim header
No need to set tabstop tons of times, this can be set in your vimrc
file instead.

More disucssion:
http://openstack.10931.n7.nabble.com/Remove-vim-modelines-td21780.html

Change-Id: I45766d91f0c0b3622bbdc7dc5517497c87ebee8c
Closes-Bug: #1229324
2014-02-16 13:08:07 +08:00
Michael Basnight fd43cbd73b Massive refactoring to the troveclient
The new client adheres to the standards of the other clients
now. It prints out tables, uses ENVVAR's for auth, no longer
stores pickled json in a login token, uses openstack common,
and moves the cli operations into a v1 module for the future
of trove when it has a v2 api.

Please note for compatibility, the troveclient.compat module
has the old cli. In order to deploy it, amend the setup.cfg
to include the compat module.

implements blueprint cli-compliance-upgrade

Change-Id: Ie69d9dbc75ce90496da316244c97acca1877a327
2013-10-09 19:21:08 -07:00
Monty Taylor 257d4a8601 Update to pbr/d2to1.
Change-Id: I5f4bb2cb3d068fec24a58b7d9b395b9cc31fa613
2013-06-17 22:25:41 -07:00
Deniz Demir 4fb6634480 Adding unit tests for auth.py
implements blueprint https://blueprints.launchpad.net/python-reddwarfclient/+spec/reddwarfclient-unit-tests

Also changin the unit test library from unuttest2 to testtools per request of CI

Change-Id: I1b50cd4bf762c90b846ecb51db47f2afbfb6f175
2013-01-08 09:59:47 -08:00
Deniz Demir 8c13466950 Adding pep8 coverage for tests directory, and fixing existing code to comply with pep8
bug 1091757

https://bugs.launchpad.net/python-reddwarfclient/+bug/1091757

Change-Id: I821d8235095fef740a54e06334a0caa2b6ced7c2
2012-12-18 08:54:38 -08:00
Josh Dorothy 7079d5054a Complying with
http://wiki.openstack.org/ProjectTestingInterface

Fixes: bug 1083835
Change-Id: I31f525c62cdb3b4c7eb695b6a431e4df6443f673
2012-11-27 16:44:43 -08:00