diff --git a/CMakeLists.txt b/CMakeLists.txt index c3b209b..1b184f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.13) -project(VCellMovingBoundary VERSION 1.0.0 LANGUAGES CXX C) +project(VCellMovingBoundary VERSION 1.0.1 LANGUAGES CXX C) # C++ standard set(CMAKE_CXX_STANDARD 14) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index c93f959..d96db7d 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -29,7 +29,10 @@ add_custom_command(TARGET _core POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${MB_PY_PACKAGE}/__init__.py ${MB_PY_BUILD_DIR}/__init__.py - COMMENT "Copying pyvcell_mbsolver/__init__.py into the build tree" + COMMAND ${CMAKE_COMMAND} -E copy_if_different + ${CMAKE_CURRENT_SOURCE_DIR}/${MB_PY_PACKAGE}/py.typed + ${MB_PY_BUILD_DIR}/py.typed + COMMENT "Copying pyvcell_mbsolver/{__init__.py,py.typed} into the build tree" ) # When building a wheel via scikit-build-core, SKBUILD is defined and the @@ -46,8 +49,11 @@ install(TARGETS _core COMPONENT python ) -# Install the pure-Python wrapper (the package __init__.py). -install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${MB_PY_PACKAGE}/__init__.py +# Install the pure-Python wrapper (the package __init__.py) and the PEP 561 +# py.typed marker so type checkers use the package's inline annotations. +install(FILES + ${CMAKE_CURRENT_SOURCE_DIR}/${MB_PY_PACKAGE}/__init__.py + ${CMAKE_CURRENT_SOURCE_DIR}/${MB_PY_PACKAGE}/py.typed DESTINATION ${MB_PY_INSTALL_DEST} COMPONENT python ) diff --git a/python/pyvcell_mbsolver/py.typed b/python/pyvcell_mbsolver/py.typed new file mode 100644 index 0000000..e69de29