Skip to content

Commit e995aef

Browse files
committed
Merge branch 'release/v1.3.5'
2 parents cc685c6 + 52a0c5b commit e995aef

3 files changed

Lines changed: 9 additions & 36 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
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
@@ -33,7 +36,7 @@ jobs:
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

packaging/snap/snapcraft.yaml

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -17,48 +17,18 @@ platforms:
1717
build-for: [arm64]
1818

1919
parts:
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-
6232
apps:
6333
tempren:
6434
command: bin/tempren

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tempren"
3-
version = "1.3.4"
3+
version = "1.3.5"
44
description = "Template-based renaming utility"
55
readme = "README.md"
66
license = "GPL-3.0-or-later"

0 commit comments

Comments
 (0)