fix: python interpreter in debian package
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
s3lph 2023-07-29 23:23:55 +02:00
parent f5e1374d5a
commit 76918a0f2c
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
3 changed files with 16 additions and 3 deletions

View file

@ -58,7 +58,7 @@ steps:
- sed -re 's/file-magic/python-magic/' -i setup.py
- |
(for version in "$(cat CHANGELOG.md | grep '<!-- BEGIN CHANGES' | cut -d ' ' -f 4)"; do
echo "matemat (${version}-1); urgency=medium\n"
echo "matemat (${version}-1) stable; urgency=medium\n"
cat CHANGELOG.md | grep -A 1000 "<"'!'"-- BEGIN CHANGES ${version} -->" | grep -B 1000 "<"'!'"-- END CHANGES ${version} -->" | tail -n +2 | head -n -1 | sed -re 's/^-/ */g'
echo "\n -- ${PACKAGE_AUTHOR} $(date -R)\n"
done) > package/debian/matemat/usr/share/doc/matemat/changelog
@ -76,7 +76,7 @@ steps:
- find matemat/usr/lib/python3/dist-packages -name '*.pyc' -exec rm {} \;
- mv matemat/usr/bin/matemat matemat/usr/lib/matemat/matemat
- rm -rf matemat/usr/bin
- sed -re 's$#!/usr/local/bin/python3.11$#!/usr/bin/python3$' -i matemat/usr/lib/matemat/matemat
- sed -re 's$#!/usr/local/bin/python3$#!/usr/bin/python3$' -i matemat/usr/lib/matemat/matemat
- find matemat -type f -exec chmod 0644 {} \;
- find matemat -type d -exec chmod 755 {} \;
- chmod +x matemat/usr/lib/matemat/matemat matemat/DEBIAN/postinst matemat/DEBIAN/prerm matemat/DEBIAN/postrm

View file

@ -1,5 +1,18 @@
# Matemat Changelog
<!-- BEGIN RELEASE v0.3.6.1 -->
## Version 0.3.6.1
Fix Python interpreter in Debian package
### Changes
<!-- BEGIN CHANGES 0.3.6.1-->
- Fix Python interpreter in Debian package
<!-- END CHANGES 0.3.6.1 -->
<!-- END RELEASE v0.3.6.1 -->
<!-- BEGIN RELEASE v0.3.6 -->
## Version 0.3.6

View file

@ -1,2 +1,2 @@
__version__ = '0.3.6'
__version__ = '0.3.6.1'