summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Stop to use the __future__ module.Hervé Beraud2020-06-021-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Avoid tox_install.sh for constraints supportAndreas Jaeger2017-12-021-55/+0
| | | | | | | | | | | 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
* Get python-troveclient to use upper-constraints.txtAmrith Kumar2016-11-161-0/+55
| | | | | | | | | | | | | | | | | | | 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
* Last sync from oslo-incubatorDavanum Srinivas2015-11-121-40/+1
| | | | | | | oslo-incubator will cease to host common code soon. This is hopefully the very last sync from oslo-incubator. Change-Id: I00fe0502de6f97712ffa5173c513304d66be55d5
* Remove vim headerHe Yongli2014-02-161-2/+0
| | | | | | | | | | | 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
* Massive refactoring to the troveclientMichael Basnight2013-10-091-0/+213
| | | | | | | | | | | | | | | | 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
* Update to pbr/d2to1.Monty Taylor2013-06-172-12/+0
| | | | Change-Id: I5f4bb2cb3d068fec24a58b7d9b395b9cc31fa613
* Adding unit tests for auth.pyDeniz Demir2013-01-081-1/+2
| | | | | | | | 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
* Adding pep8 coverage for tests directory, and fixing existing code to comply ↵Deniz Demir2012-12-181-1/+2
| | | | | | | | | | with pep8 bug 1091757 https://bugs.launchpad.net/python-reddwarfclient/+bug/1091757 Change-Id: I821d8235095fef740a54e06334a0caa2b6ced7c2
* Complying withJosh Dorothy2012-11-272-0/+10
http://wiki.openstack.org/ProjectTestingInterface Fixes: bug 1083835 Change-Id: I31f525c62cdb3b4c7eb695b6a431e4df6443f673