15 Commits

Author SHA1 Message Date
Jadon Naas
1bf971952d Updates for py312 compatibility
- Removed pins to old version of setuptools.
- Added py312 section to tox.ini [testenv]
- Updated flake8 to 7.1.1 instead of 3.9.2

Change-Id: I4fc2dd34d778bbfebdcb355f47a055b98a81db0e
2024-08-21 17:59:51 +00:00
Corey Bryant
1167cc6133 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: I4cae0a313230a8617beac36a2dbfe0c019c5e0de
2022-09-29 18:09:14 +00:00
Alex Kavanagh
1399f22e66 Update to build using charmcraft
Due to a build problem with the reactive plugin, this change falls back
on overriding the steps and doing a manual build, but it also ensures
the CI system builds the charm using charmcraft.  Changes:

- add a build-requirements.txt
- modify charmcraft.yaml
- modify osci.yaml
    -> indicate build with charmcraft
- modify tox.ini
    -> tox -e build does charmcraft build/rename
    -> tox -e build-reactive does the reactive build
- modify bundles to use the <charm>.charm artifact in tests.
  and fix deprecation warning re: prefix
- tox inception to enable tox -e func-test in the CI

Change-Id: Id14cd0d06f6c98c02d1cffb30c2cd4fe73ed5691
2022-02-01 20:14:02 +00:00
Hervé Beraud
0225c61e76 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: Ib7e61c0293e398b831fbf8a6ade02bf833b78948
2021-12-15 14:04:23 +00:00
Corey Bryant
67944a4b95 Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* sync from release-tools
* switch to release-specific zosci functional tests
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata/tests
* drop py35 and add py39

Change-Id: I4a800cfdf19d33d5a5c4f1d7c34efd082fc14549
2021-11-29 15:45:58 -05:00
Aurelien Lourot
c594438780 Sync release-tools
In order to fix ResolutionImpossible on tox invocation.

https://github.com/openstack-charmers/release-tools/issues/151
https://github.com/openstack-charmers/release-tools/pull/152

Change-Id: I1ff269ac1704b20d41ca8e61f4d4ec412f7d7d44
2021-07-22 14:55:41 +02:00
Aurelien Lourot
834dabccf1 Fix the build
Pin cryptography both in the wheelhouse and the
release-tools boilerplate. The latter comes from
https://github.com/openstack-charmers/release-tools/pull/148

Fix Zaza's expected application status after
https://github.com/openstack-charmers/zaza/pull/451

Change-Id: I3d8fbdd8f464ae5d5f24f0b8786218fa13f7b893
2021-07-02 15:29:21 +02:00
Alex Kavanagh
64637996e8 Updates to flip all libraries back to master
This patchset updates all the requirements for charms.openstack,
charm-helpers, charms.ceph, zaza and zaza-openstack-tests back
to master branch.

Change-Id: I244c1a9ce02c0c06edd2253389895a494f2622dd
2021-05-03 16:06:04 +01:00
Alex Kavanagh
f86db02b7e 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure stable/21.04 branch for charms.openstack
  - ensure stable/21.04 branch for charm-helpers

Change-Id: I82628ab1dca69cbb7c19b43f548d21d26fcf8736
2021-04-09 21:39:50 +01:00
Alex Kavanagh
fc1aed0efe Updates for testing period for 20.01 release
Includes updates to charmhelpers/charms.openstack for cert_utils
and unit-get for the install hook error on Juju 2.9

* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers

Change-Id: Ib7ef820804dc6a47ae5efdfbe4b3aa681103046a
2021-01-15 16:31:01 +00:00
Aurelien Lourot
799ad1724f Sync release-tools
Sync release-tools boilerplate containing these changes
in order to pin pip < 20.3:
https://github.com/openstack-charmers/release-tools/pull/125
https://github.com/openstack-charmers/release-tools/pull/126

Change-Id: I456f793e54b34a76f799dca1625005547a0353aa
2020-12-11 13:57:12 +01:00
Alex Kavanagh
12cf03460a Sync libraries & common files prior to freeze
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard

Change-Id: Idd6860eb35d92b85e61ade7ad7bcfa01dc746f91
2020-09-26 18:34:17 +01:00
Ryan Beisner
0947cb7f86
Sync charm/ceph helpers, tox, and requirements
Change-Id: I1099edb7df4eaaa2b3674f99902df6862bdc99c0
2019-09-30 20:59:17 -05:00
David Ames
580b757b53 ostestr to stestr migration 2019-03-20 07:43:26 -07:00
Dmitrii Shcherbakov
acc262deea initial functional version 2018-05-08 22:54:55 +03:00