generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1dccd79
commit 42f5383
Showing
3 changed files
with
988 additions
and
724 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,14 @@ platforms: | |
[email protected]:amd64: | ||
[email protected]:amd64: | ||
[email protected]:arm64: | ||
# Files implicitly created by charmcraft without a part: | ||
# - dispatch (https://github.com/canonical/charmcraft/pull/1898) | ||
# - manifest.yaml | ||
# (https://github.com/canonical/charmcraft/blob/9ff19c328e23b50cc06f04e8a5ad4835740badf4/charmcraft/services/package.py#L259) | ||
# Files implicitly copied/"primed" by charmcraft without a part: | ||
# - actions.yaml, config.yaml, metadata.yaml | ||
# (https://github.com/canonical/charmcraft/blob/9ff19c328e23b50cc06f04e8a5ad4835740badf4/charmcraft/services/package.py#L290-L293 | ||
# https://github.com/canonical/charmcraft/blob/9ff19c328e23b50cc06f04e8a5ad4835740badf4/charmcraft/services/package.py#L156-L157) | ||
parts: | ||
# "poetry-deps" part name is a magic constant | ||
# https://github.com/canonical/craft-parts/pull/901 | ||
|
@@ -20,16 +28,23 @@ parts: | |
build-packages: | ||
- curl | ||
override-build: | | ||
python3 -m pip install --upgrade pip==24.3.1 | ||
curl -sSL https://install.python-poetry.org | python3 - --version 1.8.4 | ||
ln -sf $HOME/.local/bin/poetry /usr/local/bin/poetry | ||
foo: | ||
python3 -m pip install --upgrade pip==24.3.1 # renovate: charmcraft-pip-latest | ||
curl -sSL https://install.python-poetry.org | python3 - --version 1.8.4 # renovate: charmcraft-poetry-latest | ||
ln -sf "$HOME/.local/bin/poetry" /usr/local/bin/poetry | ||
# "charm-poetry" part name is arbitrary; use for consistency | ||
# Avoid using "charm" part name since that has special meaning to charmcraft | ||
charm-poetry: | ||
# By default, the `poetry` plugin creates/primes these directories: | ||
# - lib, src | ||
# (https://github.com/canonical/charmcraft/blob/9ff19c328e23b50cc06f04e8a5ad4835740badf4/charmcraft/parts/plugins/_poetry.py#L76-L78) | ||
# - venv | ||
# (https://github.com/canonical/charmcraft/blob/9ff19c328e23b50cc06f04e8a5ad4835740badf4/charmcraft/parts/plugins/_poetry.py#L95 | ||
# https://github.com/canonical/craft-parts/blob/afb0d652eb330b6aaad4f40fbd6e5357d358de47/craft_parts/plugins/base.py#L270) | ||
plugin: poetry | ||
source: . | ||
after: | ||
- poetry-deps | ||
poetry-with: | ||
- charm-libs | ||
poetry-export-extra-args: ['--only', 'main,charm-libs'] | ||
build-snaps: | ||
- rustup | ||
build-packages: | ||
|
@@ -39,6 +54,9 @@ parts: | |
override-build: | | ||
rustup default stable | ||
craftctl default | ||
# Include requirements.txt in *.charm artifact for easier debugging | ||
cp requirements.txt "$CRAFT_PART_INSTALL/requirements.txt" | ||
# "files" part name is arbitrary; use for consistency | ||
files: | ||
plugin: dump | ||
source: . | ||
|
Oops, something went wrong.