Skip to content

Commit

Permalink
Update charmcraft.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
phvalguima authored Oct 2, 2024
1 parent b1c0a8f commit 3273889
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,23 @@ parts:
- charm_version
- workload_version
charm:
override-pull: |
craftctl default
if [[ ! -f requirements.txt ]]
then
echo 'ERROR: Use "tox run -e build-dev" instead of calling "charmcraft pack" directly' >&2
exit 1
fi
override-build: |
rustup default stable
craftctl default
charm-strict-dependencies: true
charm-entrypoint: src/charm.py
build-snaps:
- rustup
build-packages:
- libffi-dev
- libssl-dev
- pkg-config
override-build: |
rustup default stable
# Convert subset of poetry.lock to requirements.txt
curl -sSL https://install.python-poetry.org | python3 -
/root/.local/bin/poetry export --only main,charm-libs --output requirements.txt
craftctl default
stage:
# Exclude charm_version file during staging
- -charm_version
charm-strict-dependencies: true
charm-requirements: [requirements.txt]
charm-entrypoint: src/charm.py

0 comments on commit 3273889

Please sign in to comment.