File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 - uses : actions/configure-pages@v5
2626 - name : Install package and docs tooling
2727 run : python -m pip install -v ".[test]" pdoc
28+ - name : Prepare source tree for pdoc
29+ run : |
30+ python - <<'PY'
31+ import importlib.util
32+ import shutil
33+ from pathlib import Path
34+
35+ spec = importlib.util.find_spec("bioimage_cpp._core")
36+ if spec is None or spec.origin is None:
37+ raise RuntimeError("Could not find installed bioimage_cpp._core")
38+
39+ source_package = Path("src/bioimage_cpp")
40+ target = source_package / Path(spec.origin).name
41+ shutil.copy2(spec.origin, target)
42+ print(f"Copied {spec.origin} to {target}")
43+ PY
2844 - name : Build docs
2945 run : PYTHONPATH=src pdoc bioimage_cpp -o docs
3046 - uses : actions/upload-pages-artifact@v3
Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" scikit-build-core>=0.8 " , " nanobind>=2.0" ]
2+ requires = [" scikit-build-core>=0.10 " , " nanobind>=2.0" ]
33build-backend = " scikit_build_core.build"
44
55[project ]
66name = " bioimage-cpp"
7- version = " 0.1.0 "
7+ dynamic = [ " version " ]
88description = " Dependency-light C++ bioimage analysis algorithms with Python bindings"
99readme = " README.md"
1010requires-python = " >=3.10"
@@ -18,7 +18,6 @@ classifiers = [
1818 " Intended Audience :: Science/Research" ,
1919 " License :: OSI Approved :: MIT License" ,
2020 " Programming Language :: C++" ,
21- " Programming Language :: C++ :: 20" ,
2221 " Programming Language :: Python :: 3" ,
2322 " Programming Language :: Python :: 3 :: Only" ,
2423 " Programming Language :: Python :: 3.10" ,
@@ -53,5 +52,9 @@ sdist.exclude = [
5352 " __pycache__/" ,
5453]
5554
55+ [tool .scikit-build .metadata .version ]
56+ provider = " scikit_build_core.metadata.regex"
57+ input = " src/bioimage_cpp/_version.py"
58+
5659[tool .pytest .ini_options ]
5760testpaths = [" tests" ]
You can’t perform that action at this time.
0 commit comments