Convert to using poetry builder

Thanks to Benjamin Schaaf
This commit is contained in:
Sumner Evans
2021-02-10 09:54:40 -07:00
parent f29b86bd4a
commit 431879cc82
2 changed files with 16 additions and 41 deletions

View File

@@ -1,32 +0,0 @@
bleach==3.2.1
bottle==0.12.18
casttube==0.2.1
certifi==2020.6.20
chardet==3.0.4
dataclasses-json==0.5.2
deepdiff==5.0.2
fuzzywuzzy==0.18.0
idna==2.10
ifaddr==0.1.7
jeepney==0.4.3
marshmallow-enum==1.5.1
marshmallow==3.8.0
mypy-extensions==0.4.3
ordered-set==4.0.2
packaging==20.4
peewee==3.13.3
protobuf==3.13.0
pycairo==1.19.1
pychromecast==7.3.0
pycparser==2.20
pyparsing==2.4.7
python-dateutil==2.8.1
python-levenshtein==0.12.0
python-mpv==0.5.2
requests==2.24.0
semver==2.10.2
six==1.15.0
stringcase==1.2.0
typing-inspect==0.6.0
urllib3==1.25.10
zeroconf==0.28.5

View File

@@ -2,23 +2,30 @@
set -xe
ARCH=${ARCH:""}
REPO=${REPO:-/repo}
APPID=app.sublimemusic.SublimeMusic
# TODO move these to the Docker container
pip3 install requirements-parser
flatpak install -y org.gnome.Platform//3.38
flatpak install -y org.gnome.Sdk//3.38
if [ -z "$ARCH" ]; then
ARCH_ARG=""
else
ARCH_ARG="--arch=$ARCH"
fi
pip3 install toml
flatpak install -y org.gnome.Platform/$ARCH/3.38
flatpak install -y org.gnome.Sdk/$ARCH/3.38
rm -rf flatpak-builder-tools
git clone https://github.com/flatpak/flatpak-builder-tools.git
python3 ./flatpak-builder-tools/pip/flatpak-pip-generator \
--requirements-file=flatpak-requirements.txt \
--output pypi-dependencies
python3 ./flatpak-builder-tools/poetry/flatpak-poetry-generator.py \
../poetry.lock \
--production \
-o pypi-dependencies.json
mkdir -p $REPO
flatpak-builder --force-clean --repo=$REPO flatpak_build_dir ${APPID}.json
flatpak-builder --force-clean $ARCH_ARG --repo=$REPO flatpak_build_dir ${APPID}.json
flatpak build-bundle $REPO sublime-music.flatpak $APPID
flatpak build-bundle $ARCH_ARG $REPO sublime-music.flatpak $APPID