Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4cc0c394fe | |||
| c55b60a2da | |||
| 391ad0ce8b |
@@ -6,7 +6,7 @@ set -euo pipefail
|
||||
HERE="$(cd "$(dirname "$0")" && pwd)"
|
||||
cd "$HERE"
|
||||
|
||||
VERSION="$(grep -oP '__version__\s*=\s*"\K[^"]+' gitswarm.py)"
|
||||
VERSION="$(sed -n 's/^__version__[[:space:]]*=[[:space:]]*"\([^"]*\)".*/\1/p' gitswarm.py | head -n1)"
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "[build] no se pudo leer __version__ de gitswarm.py" >&2
|
||||
exit 1
|
||||
@@ -19,9 +19,11 @@ if [ ! -d .venv ]; then
|
||||
echo "[build] creando venv…"
|
||||
python3 -m venv .venv
|
||||
.venv/bin/pip install --quiet --upgrade pip
|
||||
.venv/bin/pip install --quiet -r requirements.txt
|
||||
fi
|
||||
|
||||
echo "[build] sincronizando dependencias…"
|
||||
.venv/bin/pip install --quiet -r requirements.txt
|
||||
|
||||
if ! .venv/bin/python -c "import nuitka" 2>/dev/null; then
|
||||
echo "[build] instalando nuitka en el venv…"
|
||||
.venv/bin/pip install --quiet nuitka
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
rich>=13.0
|
||||
readchar>=4.0
|
||||
# Usat per Nuitka per a comprimir el binari --onefile (build.sh)
|
||||
zstandard>=0.22
|
||||
|
||||
Reference in New Issue
Block a user