Skip to content

Commit e57b7f1

Browse files
committed
fix publish to pypi, next approach
1 parent 625b41b commit e57b7f1

File tree

2 files changed

+29
-26
lines changed

2 files changed

+29
-26
lines changed

Diff for: .github/workflows/publish_to_pypi.yml

+29-24
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,37 @@ jobs:
1515
contents: write
1616
id-token: write
1717
steps:
18-
- name: Checkout code
19-
uses: actions/checkout@v4
18+
- name: Checkout code
19+
uses: actions/checkout@v4
2020

21-
- name: Set up Python 3.12
22-
uses: actions/setup-python@v5
23-
with:
24-
python-version: '3.12'
21+
- name: Set up Python 3.12
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.12'
2525

26-
- name: Compile *po files for localisation
27-
run: |
28-
for L in fotokilof/locale/??; do
29-
if [ -e fotokilof/$L/LC_MESSAGES/fotokilof.po ]; then
30-
msgfmt fotokilof/$L/LC_MESSAGES/fotokilof.po -o fotokilof/$L/LC_MESSAGES/fotokilof.mo
31-
fi
32-
done
26+
- name: Compile *po files for localisation
27+
run: |
28+
apt-get install -y gettext tree
29+
ls
30+
tree
31+
L_PRE=fotokilof/locale
32+
L_LAST=LC_MESSAGES/fotokilof
33+
for L in $L_PRE/??; do
34+
if [ -e $L_PRE/$L/$L_LAST.po ]; then
35+
msgfmt $L_PRE/$L/$L_LAST.po -o fotokilof/$L/$L_LAST.mo
36+
fi
37+
done
3338
34-
- name: "Install build"
35-
run: pip install build
39+
- name: "Install build"
40+
run: pip install build
3641

37-
- name: Build package
38-
run: python -m build
39-
40-
- name: Publish distribution to PyPI
41-
uses: pypa/gh-action-pypi-publish@release/v1
42+
- name: Build package
43+
run: python -m build
44+
45+
- name: Publish distribution to PyPI
46+
uses: pypa/gh-action-pypi-publish@release/v1
4247

43-
- name: Upload artifact signatures to GitHub Release
44-
env:
45-
GITHUB_TOKEN: ${{ github.token }}
46-
run: gh release upload '${{ github.pypi }}' dist/** --repo '${{ github.repository }}'
48+
# - name: Upload artifact signatures to GitHub Release
49+
# env:
50+
# GITHUB_TOKEN: ${{ github.token }}
51+
# run: gh release upload '${{ github.pypi }}' dist/** --repo '${{ github.repository }}'

Diff for: README.md

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
GUI for the most used (by me) ImageMagick functionality for processing pictures.
44
If ImageMagick or Wand are unavailable, Pillow is in use. There some limitation, but works in general.
55

6-
![Happy new Year](https://raw.githubusercontent.com/TeaM-TL/FotoKilof/master/screenshots/january_happy_new_year.jpg)
7-
86
## Screenshots
97

108
### Linux

0 commit comments

Comments
 (0)