File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 1- """Hatchling build hook for generating Java stubs."""
1+ """Hatchling build hook for generating Java stubs.
2+
3+ To use this hook, add the following to your `pyproject.toml`:
4+
5+ ```toml
6+ [build-system]
7+ requires = ["hatchling", "scyjava"]
8+ build-backend = "hatchling.build"
9+
10+ [tool.hatch.build.hooks.scyjava]
11+ maven_coordinates = ["org.scijava:parsington:3.1.0"]
12+ prefixes = ["org.scijava"] # optional ... can be auto-determined from the jar files
13+ ```
14+
15+ This will generate stubs for the given maven coordinates and prefixes. The generated
16+ stubs will be placed in `src/scyjava/types` and will be included in the wheel package.
17+ This hook is only run when building a wheel package.
18+ """
219
320import logging
4- import shutil
521from pathlib import Path
622
723from hatchling .builders .hooks .plugin .interface import BuildHookInterface
You can’t perform that action at this time.
0 commit comments