Skip to content

Commit aa8c3d9

Browse files
Release 010 (#29)
* Fix language classifiers * Fix doc * single source of truth for version
1 parent 9ef70fe commit aa8c3d9

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

.github/workflows/docs.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,22 @@ jobs:
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

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["scikit-build-core>=0.8", "nanobind>=2.0"]
2+
requires = ["scikit-build-core>=0.10", "nanobind>=2.0"]
33
build-backend = "scikit_build_core.build"
44

55
[project]
66
name = "bioimage-cpp"
7-
version = "0.1.0"
7+
dynamic = ["version"]
88
description = "Dependency-light C++ bioimage analysis algorithms with Python bindings"
99
readme = "README.md"
1010
requires-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]
5760
testpaths = ["tests"]

0 commit comments

Comments
 (0)