Commit Graph

10 Commits

Author SHA1 Message Date
Corey Bryant c1c0741322 Add Antelope support
* sync charm-helpers to classic charms
* change openstack-origin/source default to antelope
* align testing with antelope
* add new antelope bundles
* add antelope bundles to tests.yaml
* add antelope tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases

Change-Id: I482a4f2b2f76bcf88cf47c5744ab494f79613d2e
2023-03-07 23:57:37 +00:00
Corey Bryant 884d6c0ab1 Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml

Change-Id: I2cb698f719106e54b06009f24ea47259419e9cad
2022-08-26 18:40:41 +00:00
Alex Kavanagh c9f9802fdd Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
  target.
- ensure that the openstack-origin is yoga
- Remove overlay as no longer needed in charmhub with explicit .charm
- Pin setuptools < 50.0 in src/wheelhouse.txt

Change-Id: Ie15e3e0530345f488565454e673e40981f606bdd
2022-04-07 18:16:39 +01:00
Hervé Beraud ff9280d24d Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: I821bf39f976be059f6e7e03b337d6f323787dcb0
2021-12-15 14:18:49 +00:00
Ghanshyam Mann 85e56fd6fb [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

charm repos need few updates on either py2 drop or updating
ussuri python template.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I81b0b89339bc91cfbb6a3938aa7125fcb93d7ae3
2020-03-24 17:12:04 +00:00
Corey Bryant e49d35f00e Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Note that python35-charm-jobs is retained since this charm is supported
on Xenial.

Change-Id: Ide9f404d46a12cad640b488237e85a902b462484
Story: #2005924
Task: #34228
2019-07-30 10:20:34 -04:00
Paul Goins b893eeba30 Added tox environment for gathering coverage
This technique was borrowed from the tox "cover" environment in
openstack/nova's tox.ini.  This leverages the fact that stestr lets
you override the python executable via the PYTHON environment
variable.  Doing this allows us to easily generate coverage for our
unit tests.

An important caveat is that this does not provide any coverage for
tests via zaza, amulet, etc.  It is purely focused on the unit tests.

Note that this replaces the previous .coveragerc; coverage
configuration is instead pulled from tox.ini.

Change-Id: I191b4f8a584e03b967e423a72657622c761f246a
2019-03-01 14:42:23 +01:00
Liam Young 4d27c53606 Configure for CI
* Update bundle to use next branches
* Add zuul config
* Add gitreview config

Change-Id: Ie9383dac05f2e37d5838d293ffebb72c55f218b4
2018-11-02 10:46:47 +00:00
Liam Young e256f5ef8c Remove zuul config
To import the repo into openstack the zuul config seems to need to
be removed:

ERROR: Found .zuul.yaml on branch origin/master
  Remove any zuul config files before import.
2018-10-09 08:02:27 +00:00
Liam Young 26eb1039f4 Add zuul config 2018-10-08 15:02:09 +00:00