5 Commits

Author SHA1 Message Date
Clark Boylan
180cc6aeda Be more explicit about using python3 to run tools/
We have python scripts in the tools/ dir the vast majority of which we
run regularly with python3 via our python3 default basepython in tox.
However, most of these use a `python` shebang line which can be
confusing as to whether or not these scripts run under python3 or not.

To make this more clear set them to python3. I've confirmed the scripts
running under tox are happy with these changes. For the ones that don't
run under tox I've done a quick review and they look happy too.

Change-Id: I983d23c33f7780e5708aa728c829c3262fc99ea0
2020-06-08 16:40:44 -07:00
Ian Wienand
4f6629021e Update hacking, fix errors/warnings
This version of hacking doesn't understand f-strings as usable in
Python 3.  Update to the latest and fix current issues, which are all
just formatting fixes.

Change-Id: I0a7d6f93f07477b6dd29ab143130dd9064c250be
2020-01-14 09:40:45 +11:00
Andreas Jaeger
ecc2997769 Update hacking to version 1.1
Update hacking, fix a couple of problems found.

Change-Id: Ie903e3ddf13e78d758b26e884bb1fb0e1a6ed73c
2019-05-17 09:31:30 +02:00
Andreas Jaeger
e7f77f283f Some python yaml fixes
libyaml now needs to Loader keyword to not throw a warning, use
safe_load instead everywhere.

sort_keys isn't supported for reasons surpassing understanding, so
switch to ruamel.yaml for the places where we write contents back
out.

Our ruamel.yaml wrapper strips extra leading space, which is needed
when the root object is a list. When the root object is NOT a list,
it's not needed. Add a flag to the constructor to toggle the
behavior.

For gerrit/projects.yaml this leads to a different wrapping of
description fields, which is included here.

Let ruamel.yaml handle comments

Since we've switched to ruamel.yaml, we don't need to strip
comments. Stop stripping them. Intra-list comments aren't
supported, so just remove them.

Please don't ask me why we can't have a space before openstack-merlin.

Change-Id: I72776774eabd4e397ee5e8bdd58b3632be8fd3a1
2019-04-10 13:33:51 +00:00
Monty Taylor
3f8a44c071
Use the openstack-python-jobs-neutron templates
For the neutron stadium projects, they all need neutron. Use the
template that defines variants adding this.

Also, added the script I used to do this for reference for folks.

Change-Id: I8b622159074bb34324b28a58431e399f0c29508e
Depends-On: I2d79907e67895e6edb832cddce1ae2e3342ddaff
2017-10-02 13:17:05 -05:00