-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathjustfile
More file actions
47 lines (38 loc) · 1.05 KB
/
justfile
File metadata and controls
47 lines (38 loc) · 1.05 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
# Default: list available commands
default:
@just --list
# Run tests
test *args:
uv run pytest {{ args }}
# Run tests with coverage and open HTML report
coverage:
uv run coverage run --source pyphi -m pytest
uv run coverage html
open htmlcov/index.html
# Build documentation
docs:
cd docs && make html
cp docs/_static/*.css docs/_build/html/_static
cp docs/_static/*.png docs/_build/html/_static
# Serve documentation locally
serve-docs port="1337": docs
cd docs/_build/html && uv run python -m http.server {{ port }}
# Run benchmarks
benchmark:
cd benchmarks && uv run asv continuous develop
# Build and upload to PyPI
dist: clean-dist
uv build
uv run twine check dist/*
uv run twine upload dist/*
# Build and upload to Test PyPI
test-dist: clean-dist
uv build
uv run twine check dist/*
uv run twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# Clean build artifacts
clean:
rm -rf dist __pycache__ **/__pycache__ **/pyphi.log htmlcov .coverage
[private]
clean-dist:
rm -rf dist