Skip to content

Commit 2420815

Browse files
committed
Fix snapcraft set-version
1 parent b5ce8b9 commit 2420815

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

snapcraft.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,11 @@ parts:
1515
certbot-nginx-unit:
1616
plugin: python
1717
source: .
18-
python-packages:
19-
- pip
20-
- setuptools
21-
- setuptools-scm
22-
- wheel
23-
override-pull: |
24-
snapcraftctl pull
25-
snapcraftctl set-version `python3 -m setuptools_scm`
18+
override-build: |
19+
snapcraftctl build
20+
snapcraftctl set-version `grep " version =" $SNAPCRAFT_PART_BUILD/version.py | cut -f3 -d= | tr -d "'[:space:]"`
21+
build-packages:
22+
- git
2623
build-environment:
2724
- SNAP_BUILD: "True"
2825
certbot-metadata:

0 commit comments

Comments
 (0)