-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
46 lines (36 loc) · 1.13 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
default_testsuite:='tests'
develop:
uv run maturin develop
install:
uv sync --group dev --group docs
doc:
cd docs && uv run make html
xdg-open docs/build/html/index.html
cleandoc:
rm -rf docs/build
rm -rf docs/source/develop
test testsuite=default_testsuite: develop
uv run pytest -sxv {{testsuite}}
lf:
uv run pytest --lf -vvv
fmt:
uv run ruff check --fix .
uv run ruff format src tests
release major_minor_patch: && changelog
#!/bin/bash
cargo release {{major_minor_patch}} --no-confirm --no-tag --no-push --no-publish --execute
git reset --soft HEAD^
export VERSION=$(head -n 10 Cargo.toml | grep version | sed 's/.*"\([^"]*\)".*/\1/')
sed -i "s/version = \"\(.*\)\"/version = \"${VERSION}\"/" pyproject.toml
uv sync
changelog:
uv run python scripts/write_changelog.py
cat CHANGELOG.md >> CHANGELOG.md.new
rm CHANGELOG.md
mv CHANGELOG.md.new CHANGELOG.md
$EDITOR CHANGELOG.md
publish:
git commit -am "Release $(uv run scripts/get_version.py)"
git push
git tag "v$(uv run scripts/get_version.py)"
git push origin "v$(uv run scripts/get_version.py)"