![Corey Bryant](/assets/img/avatar_default.png)
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. This patch also drops the impish bundle and other unused overlays. Change-Id: Idf869038e65088ce59cabb907626bb014a591bef
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
type: charm
|
|
|
|
parts:
|
|
charm:
|
|
build-packages:
|
|
- tox
|
|
- git
|
|
- python3-dev
|
|
- libffi-dev
|
|
- libssl-dev
|
|
- libxml2-dev
|
|
- libxslt1-dev
|
|
override-build: |
|
|
apt-get install ca-certificates -y
|
|
tox -e build-reactive
|
|
override-stage: |
|
|
echo "Copying charm to staging area: $CRAFT_STAGE"
|
|
NAME=$(ls $CRAFT_PART_BUILD/build/builds)
|
|
cp -r $CRAFT_PART_BUILD/build/builds/$NAME/* $CRAFT_STAGE/
|
|
override-prime: |
|
|
# For some reason, the normal priming chokes on the fact that there's a
|
|
# hooks directory.
|
|
cp -r $CRAFT_STAGE/* .
|
|
# Charmcraft looks for this specific entry point.
|
|
mkdir -p src
|
|
touch src/charm.py
|
|
chmod +x src/charm.py
|
|
|
|
bases:
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [amd64]
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [arm64]
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [ppc64el]
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [s390x]
|
|
- name: ubuntu
|
|
channel: "22.04"
|
|
architectures: [amd64]
|
|
- name: ubuntu
|
|
channel: "22.04"
|
|
architectures: [arm64]
|
|
- name: ubuntu
|
|
channel: "22.04"
|
|
architectures: [ppc64el]
|
|
- name: ubuntu
|
|
channel: "22.04"
|
|
architectures: [s390x]
|