File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 delay_between_requests : 5
2525 timeout : 60
2626
27+ - name : Write snap version
28+ run : echo "${RELEASE_VERSION#v}" > packaging/snap/version.txt
29+
2730 - name : Free disk space
2831 run : |
2932 sudo rm -rf /usr/share/dotnet
3336 df -h
3437
3538 - name : Build snap package
36- uses : snapcore /action-build@v1
39+ uses : canonical /action-build@v1
3740 id : build_snap
3841 with :
3942 path : packaging/snap
Original file line number Diff line number Diff line change @@ -17,48 +17,18 @@ platforms:
1717 build-for : [arm64]
1818
1919parts :
20- poetry :
21- plugin : dump
22- source : ../..
23- build-packages :
24- - curl
25- override-pull : |
26- curl https://install.python-poetry.org > install-poetry.py
27- export POETRY_HOME=/opt/poetry
28- python3 install-poetry.py --version 1.8.3
29- #$POETRY_HOME/bin/poetry --version
30- #export TEMPREN_VERSION="$($POETRY_HOME/bin/poetry version --short)"
31- #echo $TEMPREN_VERSION | tee /tmp/tempren_version
32-
3320 tempren :
34- after : [poetry]
3521 plugin : python
36- source : ../..
37- build-environment :
38- - PATH : " /opt/poetry/bin:$PATH"
39- build-packages :
40- - python3-pip
22+ source : .
4123 override-pull : |
4224 craftctl default
43-
44- # Find out program version
45- export TEMPREN_VERSION="$(poetry version --short)"
46- craftctl set version=$TEMPREN_VERSION
47-
48- # Prepare requirements.txt to install tempren from the PyPi
49- # This is required as default build algorithm doesn't correctly
50- # export scripts declared in pyproject.toml
51- poetry export --extras=video --output=requirements.txt
52- python3 -m pip download "tempren[video]==$TEMPREN_VERSION"
53- export TEMPREN_HASH=$(python3 -m pip hash tempren*.whl | tail -1)
54- echo "tempren==$TEMPREN_VERSION $TEMPREN_HASH" >> requirements.txt
55-
56- # requirements: [requirements.txt]
25+ craftctl set version=$(cat "$CRAFT_PART_SRC/version.txt")
26+ python-packages :
27+ - " tempren[video]"
5728 stage-packages :
5829 - libmagic1
5930 - libmediainfo0v5
6031
61-
6232apps :
6333 tempren :
6434 command : bin/tempren
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " tempren"
3- version = " 1.3.4 "
3+ version = " 1.3.5 "
44description = " Template-based renaming utility"
55readme = " README.md"
66license = " GPL-3.0-or-later"
You can’t perform that action at this time.
0 commit comments