[project]
name = "kcal"
version = "0.1.0"
description = "Python bindings for kcal library (example, CMake + pybind11 + PDM)"
readme = "README.md"
requires-python = ">=3.8"

[build-system]
requires = ["pdm-backend", "packaging"]
build-backend = "pdm.backend"

[tool.pdm.build]
# ensure package dir and README are included in wheel
includes = ["kcal/**/*.py", "kcal/**/*.pyi", "README.md"]

[tool.pdm.scripts]
# run `pdm run build-native` to configure/build/copy/generate-stubs
build-libs = { call = "pdm_build:build_libs" }
cp-lib = { shell = "/bin/cp bazel-bin/kcal/libkcal.so kcal/" }
clean = { shell = "rm -rf build/ __pycache__/ *.egg-info/ dist/ CMakeFiles/ _skbuild/" }

reportMissingImports = true
reportMissingTypeStubs = false

pythonVersion = "3.10"
pythonPlatform = "Linux"