Skip to content

Commit 7e8dcba

Browse files
committed
prepare-virtualenv, cleaning
1 parent e6a241d commit 7e8dcba

File tree

3 files changed

+17
-22
lines changed

3 files changed

+17
-22
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ venv
1919

2020

2121
/pnpm-lock.yaml
22-
/deploy-all.sh
23-
/deploy-cron.sh
22+
23+
/deploy-*.sh

deploy-sync.sh

-7
This file was deleted.

prepare-virtualenv.sh

+15-13
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
#!/usr/bin/env bash
22

3-
find . -name "*.egg-info" -exec rm -rf {} +
4-
find . -name __pycache__ -exec rm -rf {} +
3+
find . -name '*.egg-info' -type d -prune -exec rm -rf {} +
4+
find . -name '*.pyc' -delete
5+
find . -name __pycache__ -type d -prune -exec rm -rf {} +
6+
find . -name .DS_Store -delete
7+
find . -name .ipynb_checkpoints -exec rm -rf {} +
8+
find . -name .pytest_cache -exec rm -rf {} +
9+
find . -name .ruff_cache -exec rm -rf {} +
10+
find . -name .venv -type d -prune -exec rm -rf {} +
11+
find . -name venv -type d -prune -exec rm -rf {} +
512

6-
# deactivate
7-
rm -rf venv
8-
python3 -m venv venv
9-
source venv/bin/activate
10-
11-
pip install -U pip wheel setuptools
12-
13-
pip install -e .
14-
pip install -e modules/http_host
15-
pip install -e modules/tile_gen
16-
pip install -e modules/loadbalancer
1713

14+
uv venv --python=3.12
15+
source .venv/bin/activate
1816

1917

18+
uv pip install -e .
19+
uv pip install -e modules/http_host
20+
uv pip install -e modules/tile_gen
21+
uv pip install -e modules/loadbalancer

0 commit comments

Comments
 (0)