Skip to content

Commit

Permalink
dynamic version, pin scikit-build-core > 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Apr 19, 2024
1 parent f065148 commit d4a35f9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.11.0)
project(pdal-python)
project(pdal-python VERSION)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ dependencies = [
"numpy"
]

#dynamic = ["version"]

#[tool.scikit-build.dynamic]
#version = { attr = "pdal.__version__" }
version="3.4.0"
dynamic = ["version"]

[project.optional-dependencies]
test = [
Expand All @@ -52,7 +48,7 @@ repository = "https://github.com/PDAL/Python"
changelog = "https://github.com/PDAL/python/blob/main/README.rst"

[build-system]
requires = ["scikit-build-core", "numpy", "pybind11[global]"]
requires = ["scikit-build-core >= 0.9", "numpy", "pybind11[global]"]
build-backend = "scikit_build_core.build"


Expand All @@ -67,3 +63,7 @@ sdist.include = [
]
cmake.verbose = false
logging.level = "ERROR"

[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "src/pdal/__init__.py"
4 changes: 3 additions & 1 deletion src/pdal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
__version__ = "3.4.0"
__all__ = ["Pipeline", "Stage", "Reader", "Filter", "Writer", "dimensions", "info"]

from . import _version
__version__ = '3.4.0'

from . import libpdalpython
from .drivers import inject_pdal_drivers
from .pipeline import Filter, Pipeline, Reader, Stage, Writer
Expand Down

0 comments on commit d4a35f9

Please sign in to comment.