Commit Graph

9 Commits

Author SHA1 Message Date
wu.shiming 43bdc93796 Remove references to sys.version_info
We support Python 3.6 as a minimum now, making these checks no-ops.

Change-Id: Ie5297e3682834099d2a403652dd875654dc2224e
2021-09-18 10:23:35 +08:00
manchandavishal a09bcb0623 Update lower-constraints for new pip
This patch bump a series of lower-constraints and
requirements to work with new pip resolver. For
more information please refer [1]. It also fix some
pep8 issues.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019285.html

Change-Id: I0ce1e41b6e064866ef1e5e7cf8c55bb8a2cc5963
2020-12-23 13:24:13 +00:00
Hervé Beraud aa600566f6 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: I029a4125cb36f0238a64c6adee8b9a2cac186e33
2020-06-02 20:22:37 +02:00
Shu Muto a5d50dd3ed Fix tox jobs and remove tox_helper.sh
Horizon plugins needs horizon on master branch for our
master development and test.

Recent changes in CI infra and horizon force to change horizon
installation, and added tox_helper.sh as trivial fix.

Now, reasonable fix found for horizon plugins,
so this patch fixes them.

Change-Id: Ieae9bfdfed113795c0a7065964781914a2d041ce
Depends-On: I506e9c761ad1af3126db2c4778aa9dbbcf340130
2018-05-14 14:07:31 +09:00
Shu Muto 7887b3f41a Install Horizon from git repository in tox test
To test UI plugins, we should install recent Horizon
from master branch.

Also, fixed eslint and karma.

To run tox test easily before upload patchset,
adds eslint, karma, docs and releasenotes to envlist.

Change-Id: I82806631e7219eaa2372c2cd62b264056fbea64d
2018-04-13 17:09:23 +09:00
Shu Muto 32aeaeffe6 hacking: Specify white list rules in noqa explicity
If 'noqa' is specified all hacking checks are disabled.
It is better to ignore specific rules explicitly rather than
ignoring all. The recent flake8 supports this [1].

[1] http://flake8.pycqa.org/en/stable/user/ignoring-errors.html

Change-Id: Ieeb62e8d66e626ab2e6cd506ce3a9854c69d5643
2017-06-23 12:53:22 +09:00
gecong1973 39d6562717 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: Ia0737272aaa943b2ecab38ae292c8539e77e8723
2016-12-28 11:13:02 +08:00
Andreas Jaeger efd404095e Proper translation integration
This reverts Ie518bffe825ae1c6d139a0613c30bc9748b52cd7 and
updates the scripts to properly work with the infra scripts.

It replicates now the current setup done by horizon - thus
moving the babel files to the top-level and adjusting run_tests.sh.

This copies over tools/install_venv_common.py from oslo-incubator so
that the message extraction works with the parameter that the infra
scripts expect.

The infra scripts have been adopted to work with this setup, see
change I09350bfd384f84d132dc03d9bae2a5015acb6b0f.

Change-Id: I6f5c8a4dc8897b27f9f700be42d5dd38f7d278d0
2015-10-31 09:39:07 +01:00
Bradley Jones c17cc5beb4 Initial skeleton repo
Add the basic structure for the magnum-ui repository to serve as a 
starting point for contributions. The structure is likely to change
as development progresses.

Change-Id: I5458741e2dd4c3409992315efaa60b33824b4ec8
Implements: blueprint repo-skeleton
2015-09-08 23:02:28 +00:00