Skip to content

Add maturin import hook for development #430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ uv run maturin develop -m obstore/Cargo.toml --release

to compile `obstore` with release optimizations turned on.

### Maturin import hook

Run
```
uv run python -m maturin_import_hook site install
```

to ensure that obstore is automatically recompiled if changed whenever you
import `obstore` in Python.

See [import hook docs](https://www.maturin.rs/import_hook) for more information.

### Tests

All obstore tests should go into the top-level `tests` directory.
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dev-dependencies = [
"griffe-inherited-docstrings>=1.0.1",
"griffe>=1.6.0",
"ipykernel>=6.29.5",
"maturin-import-hook>=0.2.0",
"maturin>=1.7.4",
"mike>=2.1.3",
"mkdocs-material[imaging]>=9.6.3",
Expand Down
24 changes: 24 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading