Commit Graph

16 Commits

Author SHA1 Message Date
Yves-Gwenael Bourhis 43c60708e5 Use python 3 to build docs
The CI fails to build docs with python 2.7 because Sphinx requires
Python '>=3.5'
So we build docs with python 3.

Change-Id: If94342cbc5ad440009c515d70f1e79295241997c
2019-06-04 13:38:22 +02:00
Vieri b9e7afe86f Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: I2a71f220ebbc969dc30b55804cb393c0e2f60605
2018-11-02 07:06:59 +00:00
Victor Stinner af88d16028 Python2: Fix tox -e py27
With this change, unit tests now pass on Python 2.7: tox -e py27.

Changes:

* Replace "yield from ..." with "for item in ...: yield item"
* Remove last annotations from utils.py
* tox.ini: use python3 as basepython rather than python3.5 to support
  Python 2.7 and Python 3.6
* tox.ini: add py27 to envlist

Related-Bug: 1726399
Change-Id: Ief1a95402e8a31a34ada2937a7ae6a604f7f8757
2017-11-13 09:13:46 +01:00
Jordan Pittier 5cca232ba4 Make MyPy checks stricter
Change-Id: I87018c5d5a5dc04af386b257d4438b759461459c
2017-02-01 16:59:29 +01:00
Jordan Pittier f86c9b8360 Prepare functional tests in Gate run
We need to have, in addition to unit tests, some functional tests
running.

Change-Id: I26ed40a5035c3129bb93319f67d8df940677afa2
2017-01-24 14:28:21 +01:00
Jordan Pittier 3ea94225fc OSPurge; rework tox.ini to test multiple versions of Python
Change-Id: I01e0b61c1a39c9ce8fe425ac4c0922fc8c18ce4e
2017-01-05 10:41:26 +01:00
Jordan Pittier 3a612efd53 OSPurge version 2
This commit is a whole new version of OSPurge. Currently OSPurge suffers
from the following limitations:
* It's slow (monothread)
* It's not guaranteed to complete. If a resource fails to be deleted then
OSPurge can choke on deleting other resources that depends on the first one.
* Not properly unit tested.
* Not modular (one huge file to deal with all services)

This new version is:
* Faster (multithreaded, thanks to a ThreadPoolExecutor)
* Safe (we check and wait for some prerequisites before attempting a
delete)
* 100% unit tested.
* Modular (one file per service)

Note that it's Python3.5 compatible. It also uses OpenStack Shade
and OpenStack client-config libraries so that OSPurge focuses on the
cleaning logic only.

Overall I believe this is a better version of OSPurge and more future
proof. NOte that we tagged and released OSPurge 1.3 recently in case
the new version was not satisfactory to everybody.

Change-Id: I5eb92a0556df210ea3cb4e471b8db3b5bf7ed5ee
2016-12-15 10:49:25 +01:00
Christian Berendt 0d906d8649 Fix syntax issues in bash scripts and add bashate check
* [E] E003: Indent not multiple of 4

Change-Id: I7cd5c8b5348de065d84d03a316dc120f121841f3
2015-11-19 22:34:15 +01:00
Christian Berendt 6ba266f5a9 Improve README file and add an initial Sphinx environment
Change-Id: I06e892f2259ab29698b100145e57c9410fba8eea
2015-11-17 20:52:18 +01:00
Jordan Pittier f27785eddd Bump HACKING to 0.10
Change-Id: I96d5a7caf40d0d8d10e412538593f0e55005bdb1
2015-03-10 17:16:45 +01:00
JordanP 82a76e5c4b Add tox py27 target + cleanup to enforce Hacking rules
Change-Id: I69595cca258c45a740bb222328cad4bbab991e49
2014-10-20 15:55:28 +02:00
Jenkins 889a4b9c8f Merge "Add flake8 to tox whitelist_externals" 2014-09-28 21:16:41 +00:00
JordanP 26ac7622d7 Don't overwrite *LANG* env variables
Change-Id: I88f7720d3f5e7c9d7eb5ea42e987b2acf9dcec13
2014-09-26 16:43:31 +02:00
JordanP 4c3ca40001 Add flake8 to tox whitelist_externals
Stop triggering triggering a “not installed in virtualenv” every time
flake8 is called.

Change-Id: I8c242febe4e15debc5a98fde74332079456a523d
2014-09-26 16:40:32 +02:00
JordanP 3dbbda18c9 prepare for flake8 gate job
Change-Id: I5eb4bd47cda6ccd8c428cee93ad33aced637fa8d
2014-09-25 14:38:45 +02:00
JordanP 59dabda444 add Tox
Signed-off-by: JordanP <jordan.pittier@cloudwatt.com>
Change-Id: I8b2e0b375bb041f4f27933cc0f2ba6a5e22bc8a0
2014-03-06 10:37:37 +01:00