Commit Graph

21 Commits

Author SHA1 Message Date
zhurong 5cd42aecd6 Remove unused scripts
Change-Id: I27ba6ae7ddb5ad97c1924e56a1f42b701b6ccd44
2022-01-17 09:26:45 +00:00
Hervé Beraud 2f543950de 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: Ic9b94ceb733989b4676655cbc94eb20025908408
2020-06-02 20:50:11 +02:00
zhurong 2c2d512124 Use standard cover tox env
Change-Id: I22baa3240adbc1290954cde444df85b4b91a7034
2018-09-10 11:39:00 +08:00
Vu Cong Tuan a90ede0d6c 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: I9a52c912ef5ad19fe24e9294f573a2770436d5e3
2018-07-13 07:57:12 +07:00
Andreas Jaeger 8c911c6dce 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: I614992cea6044be9ca21f4f18ceef92b282dfff1
2017-12-02 16:58:21 +00:00
melissaml 2a0ea35390 Fix to use "." to source script files
Adhering to coding conventions. Refer to ``Code conventions`` at
https://docs.openstack.org/contributor-guide/ for details.

Change-Id: I7af83fdfd7ebaa6e454fde768b278e9b10d27914
2017-08-29 02:26:11 +08:00
gecong1973 23e810e57f Using sys.exit(main()) instead of main()
As we known, Exceptions are raised by the sys.exit() function.
When they are not handled, no stack traceback is printed in the Python interpreter.

In this patch we have known main() got return values(eg:0, 1), but it can't
specifies exit status when terminate the main thread by unusing sys.exit().
So when using sys.exit(main()) instead of main() may be more readable and
reasonable.

Change-Id: I2fbc21b65d62e7d444bd1acf2858114ef7a5995f
2016-12-28 14:43:33 +08:00
zhangyanxian 9176fa7925 Fix typos in cover.sh
TrivalFix

Change-Id: If3e412a00137ff29a99999bb3493fba6a2587bc6
2016-11-16 13:10:45 +00:00
Andreas Jaeger 75b3276529 Sync tools/tox_install.sh
Sync tools/tox_install.sh with python-openstackclient. This brings in
the following improvements:

* Do not leave temporary directory around, instead delete temporary
  directory directly after usage (change
  I939eae82dba3287fd4e4086128ebf4609a0e0770).
* Do not set ZUUL_BRANCH explicitely and remove unused if condition
  (change I0077c986a17d6bb92791474e03d1e77776e9382f).

Change-Id: Ia82bd33c30dee308fea32dd5b7156d724f040172
2016-08-30 19:54:43 +02:00
OlehBaran bce18eea17 Add script for unit test coverage job
This commit will add script and coverage config file that will allow to run
non voting coverage job which will detect any changes in the code coverage
for each commit on review.

Change-Id: I4559c86c840b40b9154f80b04b9e1c741e3236e0
2016-08-11 10:41:44 +00:00
zhurong 157ae8c905 Use upper-constraints in tox test environments
This will force pip install to use the upper-constraints.txt specified
version of pip modules. When you don't do this, you are out on the
bleeding edge and become unstable everytime some python library in the
wide world changes in a way that you don't expect.

The releasenotes job has no constraints file, so override the install
command there.

Change-Id: I531606ce2ed981bddc618dac046ab081de2805eb
Partial-bug: #1598906
2016-07-07 11:14:10 -04:00
bhagyashris e782a9c619 Replace print statment with print function
In PY3, print should used as a function instead of a statement.
This is PY27 compatible as well.

For example, instances of the first case were replaced by the
second case:

>>> print 'help'
  File "<stdin>", line 1
    print 'help'
               ^
SyntaxError: Missing parentheses in call to 'print'

>>> print('help')
help

Change-Id: I247aedf4a3090c2d75338389cf383adb090da231
Closes-bug: #1594741
2016-06-23 09:33:08 +05:30
bhagyashris cc6328793f Fix python 2,3 compatibility issue with six
ConfigParser is available in python2 but not in python3.
ref:http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html

Change-Id: I4e75ebb945de4b37c39cc73f7f1472a69ef72ea9
2016-06-21 20:05:56 +05:30
srushti 1ba5d55103 Fix module's import order
Made corrections in import order for built-in,third-party
and project specific modules as per openstack import
standards [1].

[1] http://docs.openstack.org/developer/hacking/#import-order-template

Change-Id: I1e086ab187aaf31868fcce76917070bb9a95e870
2016-01-21 22:10:58 -08:00
Lin Yang 775a0f8d9b Remove all vim modelines
Vim modelines should not be used in OpenStack project any longer [1].

[1] http://lists.openstack.org/pipermail/openstack-dev/2013-October/017353.html

Change-Id: I4bade9afe033c6f80cbe931cd07486dc32da4174
2015-07-09 12:25:59 +08:00
Kirill Zaitsev e4963ea278 Bash completion script for murano
A script to be used for bash completion of murano CLI tool
commands.

Change-Id: Id50ece6b360832601eefdb9b118c646dcaebcfc5
Implements: blueprint murano-bash-completion-script
2015-04-02 17:40:21 +03:00
Ekaterina Chernova 78a1af57ac Use pretty-tox for better test output
Change-Id: I51465b390fea770f40731fb1c53e13691d49a397
2015-01-22 16:47:35 +03:00
Igor Yozhikov 59920a3d63 Cherry-pick following change-ids from release-0.2.
I155d42b0b45444fe239cb4ac9bd7e26e5c835aa5
Ie8559212b3850a191e61b7eace489ac369f7bfab
I42d3f577270c8330595c1e006e488c6fc4567d12
Ic75310c28e3d65e8871cc974699146c6767a4c6b
Ibf5ded656f7ae2c80e00aeb4c757bf238b7595aa

Change-Id: Ic260349de80e4ab92239c8eef8e492507bbc40e9
2013-09-03 15:15:02 +04:00
Ekaterina Fedorova 7081678e29 Add SSL support to muranoclient
Some openstack common modules updated

Change-Id: I97e01711272489e0fed6a4de46c5b423784ec195
2013-08-09 19:08:48 +04:00
Stan Lagun b66194bacf KEERO-320 - Fix all occurrences of old names (keero, glazier) in python client 2013-04-26 02:00:15 +04:00
Serg Melikyan cc63d38386 Removed all projects except Glazier Api Client 2013-04-09 13:44:21 +04:00