-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjustfile
49 lines (38 loc) · 914 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
# load env variables
set dotenv-load
# env variables
TESTPYPI_TOKEN := env('TESTPYPI_TOKEN')
PYPI_TOKEN := env('PYPI_TOKEN')
PYPI_PROJECT := "amplitude-data-wrapper"
IMPORT_PROJECT := "amplitude_data_wrapper"
# list recipes
default:
just --list
# install and run
run:
uv run
# install dependencies
install:
uv sync --frozen
# upgrade dependencies
update:
uv lock --upgrade
# check code with ruff
check:
ruff check
# format with ruff
format:
ruff format
# build package
build: check format package-test
rm -rf dist/; \
uv build
# test package can be installed and imported
package-test:
uv run --with {{PYPI_PROJECT}} --no-project -- python -c "import {{IMPORT_PROJECT}}"
# publish on python package index
pypi_publish:
uv publish --token {{PYPI_TOKEN}}
# publish on test python package index
testpypi_publish:
uv publish --index testpypi --token {{TESTPYPI_TOKEN}}