Skip to content

Commit

Permalink
snapcraft.yaml: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlettman committed Aug 20, 2024
1 parent 879c282 commit d6d573e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ parts:
- jq
- remarshal
build-environment:
- CRAFT_PYTHON_INTERPRETER: python3.10
- SNAPCRAFT_PYTHON_INTERPRETER: python3.10
build-packages:
- python3.10
stage-packages:
- python3.10-minimal
- python3.10-venv
override-build: |
craftctl default
craftctl set-version "$(env -u SNAPCRAFT_PART_INSTALL -u SNAPCRAFT_STAGE -- /snap/bin/toml2json $SNAPCRAFT_PART_BUILD/pyproject.toml | /snap/bin/jq -r '.tool.poetry.version')"
craftctl set version="$(env -u SNAPCRAFT_PART_INSTALL -u SNAPCRAFT_STAGE -- /snap/bin/toml2json $SNAPCRAFT_PART_BUILD/pyproject.toml | /snap/bin/jq -r '.tool.poetry.version')"

0 comments on commit d6d573e

Please sign in to comment.