prepare-virtualenv, cleaning

This commit is contained in:
Zsolt Ero
2025-02-27 04:40:57 +01:00
parent e6a241d70c
commit 7e8dcbaa4a
3 changed files with 18 additions and 23 deletions

4
.gitignore vendored
View File

@@ -19,5 +19,5 @@ venv
/pnpm-lock.yaml
/deploy-all.sh
/deploy-cron.sh
/deploy-*.sh

View File

@@ -1,7 +0,0 @@
#!/usr/bin/env bash
export ENV=prod
./init-server.py http-host-sync ofm-h-fi-1 -y
./init-server.py http-host-sync ofm-h-de-2 -y

View File

@@ -1,19 +1,21 @@
#!/usr/bin/env bash
find . -name "*.egg-info" -exec rm -rf {} +
find . -name __pycache__ -exec rm -rf {} +
# deactivate
rm -rf venv
python3 -m venv venv
source venv/bin/activate
pip install -U pip wheel setuptools
pip install -e .
pip install -e modules/http_host
pip install -e modules/tile_gen
pip install -e modules/loadbalancer
find . -name '*.egg-info' -type d -prune -exec rm -rf {} +
find . -name '*.pyc' -delete
find . -name __pycache__ -type d -prune -exec rm -rf {} +
find . -name .DS_Store -delete
find . -name .ipynb_checkpoints -exec rm -rf {} +
find . -name .pytest_cache -exec rm -rf {} +
find . -name .ruff_cache -exec rm -rf {} +
find . -name .venv -type d -prune -exec rm -rf {} +
find . -name venv -type d -prune -exec rm -rf {} +
uv venv --python=3.12
source .venv/bin/activate
uv pip install -e .
uv pip install -e modules/http_host
uv pip install -e modules/tile_gen
uv pip install -e modules/loadbalancer