Bindings: Python: Add stubs
parent
f18aa00322
commit
2acf248583
|
|
@ -26,4 +26,8 @@ pybind11_add_module(icsneopy
|
||||||
)
|
)
|
||||||
target_link_libraries(icsneopy PRIVATE icsneocpp)
|
target_link_libraries(icsneopy PRIVATE icsneocpp)
|
||||||
|
|
||||||
install(TARGETS icsneopy LIBRARY DESTINATION .)
|
install(TARGETS icsneopy LIBRARY DESTINATION icsneopy)
|
||||||
|
|
||||||
|
add_custom_command(TARGET icsneopy POST_BUILD COMMAND stubgen -m icsneopy -o .)
|
||||||
|
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/icsneopy.pyi __init__.py py.typed DESTINATION icsneopy)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
from .icsneopy import *
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["scikit-build-core", "pybind11", "setuptools>=64", "setuptools-scm>=8"]
|
requires = ["scikit-build-core", "pybind11", "setuptools>=64", "setuptools-scm>=8", "mypy"]
|
||||||
build-backend = "scikit_build_core.build"
|
build-backend = "scikit_build_core.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue