-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
78 lines (58 loc) · 1.28 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# justfile
# load environment variables
set dotenv-load
# variables
container := "lostmydockeraccount/dkdc"
# aliases
alias up:=serve
alias fmt:=format
alias render:=docs-build
alias preview:=docs-preview
# list justfile recipes
default:
just --list
# python things
setup:
@uv venv --python=3.12 --allow-existing
just install
install:
@uv pip install -e '.[dev,test]'
lock:
@echo "this is kinda messed up..."
@uv lock
sync:
@echo "this is kinda messed up..."
@uv sync
build-python:
@rm -r dist || true
@uv build
format:
@ruff format .
# publish-test
release-test:
just build-python
@uv publish --publish-url https://test.pypi.org/legacy/ --token ${PYPI_TEST_TOKEN}
# publish
release:
just build-python
@uv publish --token ${PYPI_TOKEN}
# docker stuff
build:
@docker build -t {{container}} .
run:
@docker run -it --rm --name dkdc-dev --entrypoint bash {{container}}
run-gui:
@docker run -d --rm -p 8010:8010 --name dkdc-gui {{container}} 'dkdc gui'
serve *args:
@docker compose up -d --build --remove-orphans {{args}}
down *args:
@docker compose down {{args}}
# docs-build
docs-build:
@quarto render website
# docs-preview
docs-preview:
@quarto preview website
# open
open:
@open https://dkdc.io