mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-29 01:18:51 -04:00
Snapcraft: switch from poetry to requirements.txt
This commit is contained in:
parent
5fe44e89b2
commit
8b8ab4b4f3
1 changed files with 26 additions and 3 deletions
|
@ -74,6 +74,26 @@ parts:
|
||||||
onionshare-cli:
|
onionshare-cli:
|
||||||
source: ./cli
|
source: ./cli
|
||||||
plugin: nil
|
plugin: nil
|
||||||
|
override-pull: |
|
||||||
|
snapcraftctl pull
|
||||||
|
rm pyproject.toml poetry.lock
|
||||||
|
cat > requirements.txt << EOF
|
||||||
|
click
|
||||||
|
flask==2.0.3
|
||||||
|
flask-socketio==5.3.1
|
||||||
|
psutil
|
||||||
|
pysocks
|
||||||
|
requests[socks]
|
||||||
|
unidecode
|
||||||
|
urllib3
|
||||||
|
eventlet
|
||||||
|
setuptools
|
||||||
|
pynacl
|
||||||
|
colorama
|
||||||
|
gevent-websocket
|
||||||
|
stem==1.8.1
|
||||||
|
werkzeug==2.0.3
|
||||||
|
EOF
|
||||||
after: [tor, obfs4, snowflake-client, meek-client]
|
after: [tor, obfs4, snowflake-client, meek-client]
|
||||||
|
|
||||||
onionshare:
|
onionshare:
|
||||||
|
@ -156,13 +176,16 @@ parts:
|
||||||
- python3-pyside2.qtwidgets
|
- python3-pyside2.qtwidgets
|
||||||
override-pull: |
|
override-pull: |
|
||||||
snapcraftctl pull
|
snapcraftctl pull
|
||||||
sed -i 's|path = "../cli", develop = true|path = "'$(pwd)'/../../onionshare-cli/src"|g' pyproject.toml
|
rm pyproject.toml poetry.lock
|
||||||
sed -i 's|PySide2|# PySide2|g' pyproject.toml
|
cat > requirements.txt << EOF
|
||||||
|
qrcode
|
||||||
|
EOF
|
||||||
override-build: |
|
override-build: |
|
||||||
python3 -m venv $SNAPCRAFT_PART_INSTALL
|
python3 -m venv $SNAPCRAFT_PART_INSTALL
|
||||||
. $SNAPCRAFT_PART_INSTALL/bin/activate
|
. $SNAPCRAFT_PART_INSTALL/bin/activate
|
||||||
pip install -U pip setuptools wheel
|
pip install -U pip setuptools wheel
|
||||||
pip install -U . -vvv
|
pip install -U ../../onionshare-cli/src
|
||||||
|
pip install -U .
|
||||||
deactivate
|
deactivate
|
||||||
sed -i 's|'$SNAPCRAFT_PART_INSTALL'/bin/python3|/usr/bin/env python3|g' $SNAPCRAFT_PART_INSTALL/bin/onionshare
|
sed -i 's|'$SNAPCRAFT_PART_INSTALL'/bin/python3|/usr/bin/env python3|g' $SNAPCRAFT_PART_INSTALL/bin/onionshare
|
||||||
sed -i 's|'$SNAPCRAFT_PART_INSTALL'/bin/python3|/usr/bin/env python3|g' $SNAPCRAFT_PART_INSTALL/bin/onionshare-cli
|
sed -i 's|'$SNAPCRAFT_PART_INSTALL'/bin/python3|/usr/bin/env python3|g' $SNAPCRAFT_PART_INSTALL/bin/onionshare-cli
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue