From 1edba34f3ea07d2b4564f12bc1b5ce3a3fd1b21e Mon Sep 17 00:00:00 2001 From: Felipe Reyes Date: Fri, 16 Feb 2024 11:50:23 -0300 Subject: [PATCH] Add constraints file(s) for testing environments. This change introduces a place to keep the constraints needed to build testing environments. It will be global to all charms under the Charmed OpenStack umbrella, they will be enforced by zosci at the gate. These constraints are not meant to be used to build charms, for that the tooling that should be used is pip-compile. --- constraints/README.md | 19 +++++++++++++++++++ constraints/constraints-2024.1.txt | 9 +++++++++ constraints/constraints-master.txt | 9 +++++++++ 3 files changed, 37 insertions(+) create mode 100644 constraints/README.md create mode 100644 constraints/constraints-2024.1.txt create mode 100644 constraints/constraints-master.txt diff --git a/constraints/README.md b/constraints/README.md new file mode 100644 index 0000000..faba20f --- /dev/null +++ b/constraints/README.md @@ -0,0 +1,19 @@ +# Constraints + +This directory holds the pip constraints used by the different testing +environments used by Charmed OpenStack. + +It's worth emphasize that these constraints are used for testing environments, +that means used in tox.ini files, but never to build charms. + +## Naming scheme + +The constraints files follow the following nomenclature: + + constraints-$RELEASE.txt + +`$RELEASE` represents the OpenStack release, with the special exception of +`master` that's used to apply constraints to the `master` and `main` branches. + +For example for the case of OpenStack 2023.1 (Antelope), the constraints file +would be named `constraints-2023.1.txt`. diff --git a/constraints/constraints-2024.1.txt b/constraints/constraints-2024.1.txt new file mode 100644 index 0000000..794742a --- /dev/null +++ b/constraints/constraints-2024.1.txt @@ -0,0 +1,9 @@ +# NOTE: this constraints file can be (and will be) consumed by downstream. +# +# Known consumers: +# * zosci-config: job definitions that declare what juju version (snap channel) +# is used in tandem with this constraints file to lockdown python-libjuju +# version. +# * zaza-openstack-tests +# +juju>=3.1.0,<3.2.0 diff --git a/constraints/constraints-master.txt b/constraints/constraints-master.txt new file mode 100644 index 0000000..794742a --- /dev/null +++ b/constraints/constraints-master.txt @@ -0,0 +1,9 @@ +# NOTE: this constraints file can be (and will be) consumed by downstream. +# +# Known consumers: +# * zosci-config: job definitions that declare what juju version (snap channel) +# is used in tandem with this constraints file to lockdown python-libjuju +# version. +# * zaza-openstack-tests +# +juju>=3.1.0,<3.2.0