Skip to content

Commit eaca409

Browse files
committed
update build scripts
1 parent 9ef961a commit eaca409

5 files changed

Lines changed: 453 additions & 4 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Sync documentation dependencies
2727
run: uv sync --locked --only-group doc --no-install-project
2828
- name: Generate API reference stubs
29-
run: cargo run --bin stub_gen
29+
run: cargo run --manifest-path Cargo.toml --package v8-python --bin stub_gen
3030
- name: Build documentation
3131
run: uv run --no-sync zensical build --strict
3232
- name: Upload Pages artifact

.github/workflows/lint-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Sync Python tooling
3030
run: uv sync --locked --only-group dev --no-install-project
3131
- name: Generate Python stubs
32-
run: cargo run --bin stub_gen
32+
run: cargo run --manifest-path Cargo.toml --package v8-python --bin stub_gen
3333
- name: Ruff
3434
run: uv run --no-sync ruff check .
3535
- name: Pyright

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ __pycache__/
1111
# Distribution / packaging
1212
.Python
1313
.venv/
14-
env/
15-
bin/
14+
venv/
15+
/bin/
1616
build/
1717
develop-eggs/
1818
dist/

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ edition = "2024"
77
name = "v8_python_lib"
88
crate-type = ["cdylib", "rlib"]
99

10+
[[bin]]
11+
name = "stub_gen"
12+
path = "src/bin/stub_gen.rs"
13+
1014
[dependencies]
1115
anyhow = "1.0.102"
1216
pyo3 = "0.28.2"

0 commit comments

Comments
 (0)