Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (45 loc) · 1.48 KB
/
Copy pathMakefile
File metadata and controls
55 lines (45 loc) · 1.48 KB
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
# TODO: Automatically build the .PHONY line
# TODO: Add documentation
.PHONY: build bump-dev bump-release check-dev check-release commit \
install prek update-deps
build:
uv build
bump-dev:
@# This assumes that we have the latest version of "asfexample"
@# If not, run "uv pip install -e ." first
uv run asfexample --bump-dev
@# Suppress the warning about ignoring the existing lockfile
rm -f uv.lock
@# This writes the new stamp into the uv.lock file and upgrades the package
@# We do not have to use --upgrade as that is only for dependencies
uv sync
bump-release:
@# This assumes that we have the latest version of "asfexample"
@# If not, run "uv pip install -e ." first
uv run asfexample --bump-release
@# Suppress the warning about ignoring the existing lockfile
rm -f uv.lock
@# This writes the new stamp into the uv.lock file and upgrades the package
@# We do not have to use --upgrade as that is only for dependencies
uv sync
check-dev: prek bump-dev
@# We run lint modifications first, then update the version
@# We do not consider the following a lint as it runs all test cases always
uv run pytest -q
check-release: prek bump-release
@# We run lint modifications first, then update the version
@# We do not consider the following a lint as it runs all test cases always
uv run pytest -q
commit:
git add -A
git commit
git pull
git push
install:
uv pip install -e .
prek:
git add -A
PREK_SKIP=version uv run prek run --all-files
update-deps:
uv lock --upgrade
uv sync