Commit Graph

18 Commits

Author SHA1 Message Date
Clark Boylan 0a344201a2 Move grafyaml to Bookworm and python 3.11
This updates python testing to py311, adjusts the trove identifiers to
match, and switches the docker file to using python3.11 on Bookworm.

The motivation behind this is once OpenDev has updated all services to
Bookworm and python3.11 the old bullseye images and images for older
python versions can be cleaned up.

Change-Id: I3dde845ba05bfec915e19c44959c187162254204
2023-09-19 11:06:20 -07:00
Clark Boylan fda05305bd Move from testr to stestr
Running `python setup.py test` and similar commands is no longer
supported by setuptools. These rely on testr anyway which has been
replaced by stestr in most places. Just switch to using stestr to avoid
these problems.

Note that we drop the coverage tox target since that requires a bit more
effort to setup now, but this was not used in CI and probably isn't
super important for a tool like grafyaml. It can be added back in if a
need arises in the future.

Change-Id: I86039d1d143b0199285d9195a3582640d447b36e
2023-09-19 11:06:17 -07:00
Clark Boylan 757e2d24c8 Migrate grafyaml container images to quay.io
This migrates the published container images to quay.io. We also update
the source of the python base image to quay.io.

Three tox.ini changes are made. The first is to stop skipping sdists
which skips all installation of the software entirely. This prevents
AUTHORS file generation which breaks the docs build. We also need to
stop using develop installs to ensure AUTHORS files get generated.
Third we replace the setup.py build_sphinx command with sphinx-build as
setup.py commands are deprecated and don't work properly with modern
setuptools.

Depends-On: https://review.opendev.org/c/opendev/system-config/+/881932
Change-Id: Ia738ee9553368464dc498e4e04e1389c6dfbb969
2023-05-08 10:33:18 -07:00
Ian Wienand 878b20898d Drop Python 2 support
This has bit-rotted as libraries have updated to Python 3 only.

Switch to hacking; some minor changes to regex-strings is all that is
required.

Drop py27 markers and move to Python 3 only.  Update requirements.

Depends-On: https://review.opendev.org/737666
Change-Id: Iabf201965129b3284166e1aedcb9f1c9d6109077
2020-06-24 11:52:23 +10:00
qingszhao 4c88f902c8 change default python 3 env in tox to 3.5
Change-Id: I71ca6994abfa7d3c1e84686c83d8471e200cf640
2018-06-15 08:33:19 +08:00
qingszhao 3e4f2e5ee3 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I0d7c93b0c7e48dd86f3e1591596ca6e10caff196
2018-06-12 00:41:17 +08:00
Paul Belanger d745eb483f Allow --testr-args for tox -ecover
This allows the user to run code coverage on specific tests.

Change-Id: I29ed5c320418c82e2bc79b0a32fbea9a81be5a28
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-23 17:20:22 -04:00
Paul Belanger 4e643e5d06 Replace oslo_config dependency with argparse
This is for the same reasoning as oslo_log. We don't want to depending
on OpenStack libraries.

Change-Id: I34e66af578d3f4b5ac5e710554aad91524285816
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-09 10:12:57 -04:00
Paul Belanger ead66d299d Clean up tox.ini
Leftovers from the cookie-cutter import.

Change-Id: I694104fe44a4b78214ae33a2bcc3470db397f572
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-01 14:12:24 -04:00
Paul Belanger d35649e495 Reorder tox.ini envlist
Here we are replacing pypy with docs.  Mostly because we gate on docs
and not pypy.

Change-Id: I896e403a397b3964dcb3209cfcc84efcbe513fba
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-10-01 10:38:23 -04:00
Paul Belanger 103a882cbf Add caching support
Like we do with JJB, we create a md5sum of the dashboard then cache
it.  This is a simple way to determine if a yaml file has changed.

Change-Id: If7b80b84c5bbcb0d30b0325bae6b8e726bb2f41b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-29 11:34:31 -04:00
Paul Belanger 42ef61dde0 Add a slug to better track dashboards
Currently grafana will generate a slug based on the title name. For
now, we can use an existing python library to do this.  Ideally, we'll
need to make sure the slugs generated between both are kept in sync.

How hard can that be?

Also move our validation logic into parser.py, since they are closely
related.

Change-Id: Id43f51d3f9db9131c25a8130f957572344a7d8f1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-09-28 10:15:10 -04:00
Paul Belanger 766af4a6c5 Drop support for py26 and py33
Unless anybody has major objections, we can drop coverage for them.

Change-Id: I3337987bae825ede377d5c88d2c028b25e66dfb1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-06-08 11:49:52 -04:00
Paul Belanger 779abee654 Fix tox -ecover command
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-11 14:53:24 -04:00
Paul Belanger 4b14f334f6 Add oslo.log for logging
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-06 16:01:03 -04:00
Paul Belanger 804f133d33 Add configuration file
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-06 15:40:12 -04:00
Paul Belanger e117767f9b Add grafana-dashboards cli client
This is the first attempt at the CLI client.  Right now, we just support the
update function, which will blindly create a dashboard in grafana with ZERO
validation.  Additionally, we blindly override any existing dashboard that has
been created.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-05-06 13:02:55 -04:00
Paul Belanger f65385a578 Initial Cookiecutter Commit. 2015-05-04 13:14:07 -04:00