-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
54 lines (41 loc) · 815 Bytes
/
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
# Justfile
# load environment variables
set dotenv-load
# aliases
alias fmt:=format
# list justfile recipes
default:
just --list
# build
build:
just clean
@python -m build
# format
format:
@ruff format . || True
# install
install:
@uv pip install -e '.[all]' --reinstall-package dkdc
# uninstall
uninstall:
@uv pip uninstall dkdc -y
# publish-test
release-test:
just build
@twine upload --repository testpypi dist/* -u __token__ -p ${PYPI_TEST_TOKEN}
# publish
release:
just build
@twine upload dist/* -u __token__ -p ${PYPI_TOKEN}
# smoke-test
smoke-test:
ruff format --check .
# clean
clean:
@rm -r dist || True
# justfile
# setup
setup:
@uv venv
@. .venv/bin/activate
@uv pip install --upgrade --resolution=highest -r dev-requirements.txt