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
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
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
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
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
This allows the user to run code coverage on specific tests.
Change-Id: I29ed5c320418c82e2bc79b0a32fbea9a81be5a28
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
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>
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>
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>
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>
Unless anybody has major objections, we can drop coverage for them.
Change-Id: I3337987bae825ede377d5c88d2c028b25e66dfb1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
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>