Upgrading deb packaging
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3a81441d0b
commit
c03afdf4ee
7 changed files with 39 additions and 18 deletions
|
@ -68,7 +68,13 @@ To run LogarithmPlotter's tests, follow these steps:
|
||||||
|
|
||||||
- Python
|
- Python
|
||||||
- Install python3 and [poetry](https://python-poetry.org/)
|
- Install python3 and [poetry](https://python-poetry.org/)
|
||||||
- Run `poetry install --with test`
|
- Create and activate virtual env (recommended)
|
||||||
|
- Go into `runtime-pyside6` and run `poetry install --with test`
|
||||||
|
- ECMAScript
|
||||||
|
- Install node with npm
|
||||||
|
- Go into `common` and run `npm install -D`
|
||||||
|
|
||||||
|
Finally, to actually run the tests:
|
||||||
- Run `scripts/run-tests.sh`
|
- Run `scripts/run-tests.sh`
|
||||||
|
|
||||||
## Legal notice
|
## Legal notice
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
python3 (>= 3.9), python3-pip, python3-pyside6-essentials (>= 6.7.0), texlive-latex-base, dvipng
|
|
1
assets/native/linux/debian/depends.packaged
Normal file
1
assets/native/linux/debian/depends.packaged
Normal file
|
@ -0,0 +1 @@
|
||||||
|
python3 (>= 3.9), python3-pip, python3-pyside6.qtcore (>= 6), python3-pyside6.qtcore (>= 6), texlive-latex-base, dvipng
|
1
assets/native/linux/debian/depends.wheels
Normal file
1
assets/native/linux/debian/depends.wheels
Normal file
|
@ -0,0 +1 @@
|
||||||
|
python3 (>= 3.9), python3-pip, python3-pyside6-essentials (>= 6.7.0), python3-pyside6-addons (>= 6.7.0), texlive-latex-base, dvipng
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "logarithmplotter",
|
"name": "logarithmplotter",
|
||||||
"version": "0.6.0",
|
"version": "0.6.0",
|
||||||
"description": "2D plotter software to make Bode plots, sequences and distribution functions.",
|
"description": "2D plotter software to make Bode plots, sequences and distribution functions.",
|
||||||
"main": "LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/autoload.mjs",
|
"main": "src/index.mjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rollup --config rollup.config.mjs",
|
"build": "rollup --config rollup.config.mjs",
|
||||||
"test": "c8 mocha test/**/*.mjs"
|
"test": "c8 mocha test/**/*.mjs"
|
||||||
|
|
|
@ -26,7 +26,18 @@ mkdir assets
|
||||||
cp -r ../../assets/{native,*.svg} assets/
|
cp -r ../../assets/{native,*.svg} assets/
|
||||||
cp ../../README.md .
|
cp ../../README.md .
|
||||||
|
|
||||||
|
# Build for noble
|
||||||
python3 setup.py --remove-git-version --command-packages=stdeb.command sdist_dsc \
|
python3 setup.py --remove-git-version --command-packages=stdeb.command sdist_dsc \
|
||||||
--package logarithmplotter --copyright-file assets/native/linux/debian/copyright \
|
--package logarithmplotter --copyright-file assets/native/linux/debian/copyright \
|
||||||
--suite noble --depends3 "$(cat assets/native/linux/debian/depends)" --section science \
|
--suite noble --depends3 "$(cat assets/native/linux/debian/depends.wheels)" --section science \
|
||||||
bdist_deb
|
bdist_deb
|
||||||
|
|
||||||
|
mv deb_dist deb_dist.noble
|
||||||
|
|
||||||
|
# Build for oracular (different dependencies)
|
||||||
|
python3 setup.py --remove-git-version --command-packages=stdeb.command sdist_dsc \
|
||||||
|
--package logarithmplotter --copyright-file assets/native/linux/debian/copyright \
|
||||||
|
--suite oracular --depends3 "$(cat assets/native/linux/debian/depends.packaged)" --section science \
|
||||||
|
bdist_deb
|
||||||
|
|
||||||
|
mv deb_dist deb_dist.oracular
|
||||||
|
|
|
@ -1,23 +1,26 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# This script is used to sign the LogarithmPlotter deb directly from it's DSC file.
|
# This script is used to sign the LogarithmPlotter deb directly from it's DSC file.
|
||||||
# Adapted from https://github.com/astraw/stdeb/issues/181
|
# Adapted from https://github.com/astraw/stdeb/issues/181
|
||||||
cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/../build/runtime-pyside6/deb_dist" || exit 1
|
cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/../build/runtime-pyside6/" || exit 1
|
||||||
|
|
||||||
PPA_ARCHIVE="ppa:ad5001/logarithmplotter"
|
PPA_ARCHIVE="ppa:ad5001/logarithmplotter"
|
||||||
|
|
||||||
# create a temporary folder
|
for dist in `echo noble oracular`; do
|
||||||
mkdir tmp -p
|
echo "Signing $dist deb..."
|
||||||
cd tmp
|
# create a temporary folder
|
||||||
rm -rf *
|
mkdir "deb_dist.$dist/tmp" -p
|
||||||
|
cd "deb_dist.$dist/tmp" || exit 1
|
||||||
|
rm -rf *
|
||||||
|
|
||||||
# DSC file variables
|
# DSC file variables
|
||||||
dsc_file="$(find ../ -regextype sed -regex ".*/*.dsc" | cut -c 4-)"
|
dsc_file="$(find ../ -regextype sed -regex ".*/*.dsc" | cut -c 4-)"
|
||||||
source_package_name="$(echo $dsc_file | cut -c -$(expr ${#dsc_file} - 4))"
|
source_package_name="$(echo $dsc_file | cut -c -$(expr ${#dsc_file} - 4))"
|
||||||
|
|
||||||
# extract and sign the files
|
# extract and sign the files
|
||||||
dpkg-source -x "../$dsc_file"
|
dpkg-source -x "../$dsc_file"
|
||||||
cd "$(find . -type d | head -n 2 | tail -n 1 | cut -c 3-)" # go to the (only) directory.
|
cd "$(find . -type d | head -n 2 | tail -n 1 | cut -c 3-)" # go to the (only) directory.
|
||||||
debuild -S -sa -k"mail@ad5001.eu"
|
debuild -S -sa -k"mail@ad5001.eu"
|
||||||
|
|
||||||
# upload package to my PPA
|
# upload package to my PPA
|
||||||
dput $PPA_ARCHIVE "../${source_package_name}_source.changes"
|
dput $PPA_ARCHIVE "../${source_package_name}_source.changes"
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in a new issue