-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathjustfile
More file actions
56 lines (47 loc) · 1.38 KB
/
justfile
File metadata and controls
56 lines (47 loc) · 1.38 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
56
[group("Repo")]
[doc("Default command; list all available commands.")]
@list:
just --list --unsorted
[group("Repo")]
[doc("Open repo on GitHub in your default browser.")]
repo:
open https://github.com/bitcoindevkit/bdk-python/
[group("Build")]
[doc("Remove all caches and previous builds to start from scratch.")]
clean:
rm -rf ../bdk-ffi/target/
rm -rf ./bdkpython.egg-info/
rm -rf ./build/
rm -rf ./dist/
[group("Build")]
[doc("Build the wheel using pyproject.toml (modern build system).")]
build:
uv build --wheel -v
[group("Build")]
[doc("Install the wheel locally (force reinstall).")]
install:
uv pip install dist/bdkpython-*.whl --force-reinstall
[group("Build")]
[doc("Build Sphinx api documentation.")]
api-docs:
uv run python docs/generate_docs.py
uv run python -m sphinx -b html -W --keep-going -v docs/source docs/_build/html
[group("Submodule")]
[doc("Initialize bdk-ffi submodule to committed hash.")]
submodule-init:
git submodule update --init
[group("Submodule")]
[doc("Hard reset the bdk-ffi submodule to committed hash.")]
submodule-reset:
git submodule update --force
[group("Submodule")]
[doc("Checkout the bdk-ffi submodule to the latest commit on master.")]
submodule-to-master:
cd ./bdk-ffi/ \
&& git fetch origin \
&& git checkout master \
&& git pull origin master
[group("Test")]
[doc("Run all tests.")]
test:
uv run python -m unittest --verbose