heat/tools
Hervé Beraud 8c96a4d856 Remove six and python 2.7 full support
Six is in use to help us to keep support for python 2.7.
Since the ussuri cycle we decide to remove the python 2.7
support so we can go ahead and also remove six usage from
the python code.

Review process and help
-----------------------
Removing six introduce a lot of changes and an huge amount of modified files
To simplify reviews we decided to split changes into several patches to avoid
painful reviews and avoid mistakes.

To review this patch you can use the six documentation [1] to obtain help and
understand choices.

Additional informations
-----------------------
Changes related to 'six.b(data)' [2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

six.b [2] encode the given datas in latin-1 in python3 so I did the same
things in this patch.

Latin-1 is equal to iso-8859-1 [3].

This encoding is the default encoding [4] of certain descriptive HTTP
headers.

I suggest to keep latin-1 for the moment and to move to another encoding
in a follow-up patch if needed to move to most powerful encoding (utf8).

HTML4 support utf8 charset and utf8 is the default charset for HTML5 [5].

Note that this commit message is autogenerated and not necesserly contains
changes related to 'six.b'

[1] https://six.readthedocs.io/
[2] https://six.readthedocs.io/#six.b
[3] https://docs.python.org/3/library/codecs.html#standard-encodings
[4] https://www.w3schools.com/charsets/ref_html_8859.asp
[5] https://www.w3schools.com/html/html_charset.asp

Patch 28 of a serie of 28 patches
six fully removed now!
Thank you six for the rendered services!

Change-Id: If44ee4b565cc9390fa0422fba4dda080b4f90b98
2020-04-23 14:49:12 +02:00
..
dashboards Dashboard: Add stable branch reviews 2019-12-23 18:48:35 +00:00
cfn-json2yaml Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00
custom_guidelines.py Remove six and python 2.7 full support 2020-04-23 14:49:12 +02:00
heat-db-drop heat tools : heat-db-drop prompt for missing password 2012-07-05 10:46:53 +01:00
README.rst Merge "Switch to review.opendev.org" 2019-09-26 04:43:36 +00:00
test-setup.sh Prepare for using standard python tests 2017-02-04 09:49:18 +01:00

Files in this directory are general developer tools or examples of how to do certain activities.

If you're running on Fedora, see the instructions at https://docs.openstack.org/heat/latest/getting_started/on_fedora.html

Tools

heat-db-drop

This script drops the heat database from mysql in the case of developer data corruption or erasing heat.

cfn-json2yaml

(bulk) convert AWS CloudFormation templates written in JSON to HeatTemplateFormatVersion YAML templates

Package lists

To test that every Linux package is installed that is necessary to successfully run heat's unit test suit on a clean new Linux distribution run tox -e bindep. This will report missing dependencies (based on bindep.txt in heat repository).

Review dashboards

Generate gerrit review URL for heat. This can pop up some patches that might requires reviews. You can generate it with following command under gerrit-dash-creator repo ( https://opendev.org/openstack/gerrit-dash-creator )

$ ./gerrit-dash-creator heat.dash

The sample of heat.dash can be found under ./dashboards/

Get the output URL and add it to your gerrit menu (at https://review.opendev.org/#/settings/preferences).