Skip to content

Commit 09ae5d1

Browse files
ci: refactor devbox
1 parent 84063d2 commit 09ae5d1

File tree

2 files changed

+567
-128
lines changed

2 files changed

+567
-128
lines changed

devbox.json

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,47 @@
11
{
2-
"packages": [
3-
4-
"python311Packages.pip@latest",
5-
"poetry@latest",
6-
"gnumake@latest",
7-
"go-task@latest",
8-
"heroku@latest",
9-
10-
"tilt@latest",
11-
"uv@latest"
12-
],
2+
"packages": {
3+
"asdf-vm": "latest",
4+
"copier": "latest",
5+
"gh": "latest",
6+
"git": "latest",
7+
"glib": "latest",
8+
"glibcLocalesUtf8": {
9+
"version": "latest",
10+
"platforms": [
11+
"x86_64-linux",
12+
"aarch64-linux"
13+
]
14+
},
15+
"gnumake": "latest",
16+
"go-task": "latest",
17+
"kubectl": "latest",
18+
"nodejs_23": "latest",
19+
"openssl": "latest",
20+
"pre-commit": "latest",
21+
"ruff": "latest",
22+
"tilt": "latest",
23+
"uv": "latest"
24+
},
1325
"env": {
14-
"VENV_DIR": ".venv"
26+
"VENV_DIR": ".venv",
27+
"UV_HTTP_TIMEOUT": "90",
28+
"UV_COMPILE_BYTECODE": "1",
29+
"UV_LINK_MODE": "copy",
30+
"LANG": "en_US.UTF-8",
31+
"LC_ALL": "en_US.UTF-8",
32+
"LANGUAGE": "en_US.UTF-8"
1533
},
1634
"shell": {
1735
"init_hook": [
36+
"[ -d ${VENV_DIR} ] || uv venv ${VENV_DIR}",
1837
". $VENV_DIR/bin/activate",
19-
"uv pip install -r requirements.txt"
38+
"uv pip install -r pyproject.toml --all-extras"
2039
],
2140
"scripts": {
41+
"install": "uv pip install -r pyproject.toml --all-extras",
2242
"export-reqs": "uv pip freeze | uv pip compile - -o requirements.txt",
23-
"install": "uv pip install -r requirements.txt",
24-
"start": "./startup.sh",
25-
"test": "poetry run pytest",
26-
"venv": "uv venv ${VENV_DIR} --allow-existing"
43+
"venv": "uv venv ${VENV_DIR}",
44+
"test": "pytest"
2745
}
2846
}
2947
}

0 commit comments

Comments
 (0)