Skip to content
Merged
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
16 changes: 16 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ jobs:
- uses: actions/configure-pages@v5
- name: Install package and docs tooling
run: python -m pip install -v ".[test]" pdoc
- name: Prepare source tree for pdoc
run: |
python - <<'PY'
import importlib.util
import shutil
from pathlib import Path

spec = importlib.util.find_spec("bioimage_cpp._core")
if spec is None or spec.origin is None:
raise RuntimeError("Could not find installed bioimage_cpp._core")

source_package = Path("src/bioimage_cpp")
target = source_package / Path(spec.origin).name
shutil.copy2(spec.origin, target)
print(f"Copied {spec.origin} to {target}")
PY
- name: Build docs
run: PYTHONPATH=src pdoc bioimage_cpp -o docs
- uses: actions/upload-pages-artifact@v3
Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["scikit-build-core>=0.8", "nanobind>=2.0"]
requires = ["scikit-build-core>=0.10", "nanobind>=2.0"]
build-backend = "scikit_build_core.build"

[project]
name = "bioimage-cpp"
version = "0.1.0"
dynamic = ["version"]
description = "Dependency-light C++ bioimage analysis algorithms with Python bindings"
readme = "README.md"
requires-python = ">=3.10"
Expand All @@ -18,7 +18,6 @@ classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: C++",
"Programming Language :: C++ :: 20",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
Expand Down Expand Up @@ -53,5 +52,9 @@ sdist.exclude = [
"__pycache__/",
]

[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "src/bioimage_cpp/_version.py"

[tool.pytest.ini_options]
testpaths = ["tests"]
Loading