forked from lenskit/lkpy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
54 lines (41 loc) · 1.12 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
PIP := "uv pip"
# list the tasks in this project (default)
list-tasks:
just --list
# clean up build artifacts
clean:
rm -rf build dist *.egg-info */dist */build
git clean -xf docs
# build the modules and wheels
build:
python -m build -n -o dist
build-sdist:
python -m build -n -s -o dist
# install the package
[confirm("this installs package from a wheel, continue [y/N]?")]
install:
{{PIP}} install .
# install the package (editable)
install-editable:
{{PIP}} install -e .
# run tests with default configuration
test:
python -m pytest
# run fast tests
test-fast:
python -m pytest -m 'not slow'
# run tests matching a keyword query
test-matching query:
python -m pytest -k "{{query}}"
# build documentation
docs:
sphinx-build docs build/doc
# preview documentation with live rebuild
preview-docs:
sphinx-autobuild --watch src docs build/doc
# update the BibTeX file (likely only works on Michael's laptop)
update-bibtex:
curl -o docs/lenskit.bib 'http://127.0.0.1:23119/better-bibtex/export/collection?/4/9JMHQD9K.bibtex'
# update source file headers
update-headers:
unbehead