16 Commits

Author SHA1 Message Date
Frode Nordahl
fa3721f369
tox.ini: Fixup
Remove pins.

Properly format passenv list.

Drop the outer tox.ini func-target hack.

Drop the incepted tox in src/test-requirements.txt.

Drop pip.sh script.

Change-Id: I25dec5d1853a5aeb686df353d7c661f4a6eb5b69
2023-01-04 23:37:10 +01:00
Frode Nordahl
8e47acd497
Use charmcraft reactive plugin for build
Charmcraft 2.1 provides the required functionality to build the
charm using the reactive plugin.

Add missing `kinetic` series in src/metadata.yaml.

Drop the `build-rective` target, old charm-tools environment
variables and redundant minversion in tox.ini.

Fixup the bases configuration and make associated changes to test
bundles.

Change-Id: I559e49ab80ca6de8b42192e1b961448a4522ce86
2022-10-11 18:44:56 +02:00
Corey Bryant
d901631ecd
Ensure build continues if src directory exists
This change also aligns the entry point with openstack charms.
For example:
https://review.opendev.org/c/openstack/charm-cinder-lvm/+/859408

Also fix ppc64el and s390x build failure.

Closes-Bug: #1991128
Change-Id: I614f464896ba1466e37764a628a2b9fe69b51277
2022-09-28 17:35:40 +02:00
Corey Bryant
9a1325e307 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-09-20 18:36:45 +03:00
Dmitrii Shcherbakov
f7a4a460ad Build separately for each supported series and use binary builds
Charms for OpenStack Yoga supports both Ubuntu Focal and Jammy
which means Python 3.8 and Python 3.10.  Managing dependencies
across those two versions is non-trivial and we need to build
the charm on the series the charm is supposed to support.

Switch to using a binary build which allows pip's dependency
resolution to work.

Change-Id: Ibfe317d1056e44baa32c414d33f54d656887d2a1
2022-09-20 16:33:37 +03:00
James Page
2ea68bb50d
Updates for jammy/22.03 enablement
- charmcraft: build-on 20.04 -> run-on 20.04/22.04 [*archs]
- Refresh tox targets
- Drop impish bundles and OSCI testing
- Add jammy metadata

Drop NRPE from Jammy bundles as the charm is not updated to
support Python 3.10 yet.

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/742
Change-Id: Idd8a2e2387da0012ba78d50960630e7a1472dc8e
2022-04-06 17:13:36 +02:00
Alex Kavanagh
81d7faefa8 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: I3199f7dba089767d27638ec3ca2b126a083fbe82
2022-02-01 21:04:37 +00:00
Corey Bryant
9a0782a8a8 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: I33a8831474633c5516a956fec86d13e333a03b76
2021-11-22 08:23:48 -05:00
Alex Kavanagh
1c35d6287a Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Ic8780e9b5fea8a541fea4ddfcd7b07e0306df4c7
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-10-08 10:49:43 +02:00
Aurelien Lourot
1d5290cf0f 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: I949a3dcd343638f8715537f52fc8d2f546bf0bc2
2021-07-22 15:00:10 +02:00
Alex Kavanagh
78710b50d2 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: Ia060b7ebef8585b0976afaf7b8c26f18abdd7b15
2021-04-07 18:46:45 +00:00
Alex Kavanagh
3abcbef449 Updates to pin charm-tools to 2.8.3
* Update requirements.txt to pin charm-tools to 2.8.3
* Update tox.ini to change the build parameters.
* This upgrades from <2.7 which adds reproducible charms
* Bug was fixed that controlled the default output directory
  doesn't get 'builds' appended.  The tox change puts it
  back so that stable & master both build to the same
  directory.  This may be reviewed in the future.

Change-Id: I716de45b98f97d19138d424fc0279a5a058b30c1
2021-02-17 12:17:35 +00:00
Alex Kavanagh
e20e4528d0 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: I077b698c3302dc32a5ffdca0e86dade9f49d7b96
2020-10-08 14:09:24 +00:00
Alex Kavanagh
1c09dafbe6 Release sync for 20.08
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild
- sync tox.ini
- sync requirements.txt and test-requirements.txt

Change-Id: Ibcd5bb8591c9e044bbd581ac9f2e39417b48488a
2020-07-27 20:58:21 +01:00
Frode Nordahl
59eb531c7b
Consume chassis code from layer-ovn
The two charms 'ovn-chassis' and 'ovn-dedicated-chassis' are apart
from metadata identical.  Consume the shared code from layer.

Change-Id: Ib133c805151cf66c5316df38c33ea6d20a38fa2b
2019-11-20 09:57:56 +01:00
Frode Nordahl
66de0ba96a
Initial commit 2019-10-10 16:38:52 +02:00