From 4295ddda26d247fe4c6c2bc8a48066f0470efb2b Mon Sep 17 00:00:00 2001 From: Jim Schaff Date: Wed, 24 Jun 2026 00:45:50 -0400 Subject: [PATCH] Add PEP 561 py.typed marker; bump to 1.0.1 Ship a py.typed marker in the pyvcell_mbsolver package so type checkers use the package's inline annotations. It is assembled into the build tree alongside __init__.py and installed into the wheel via the python component. Bump project version 1.0.0 -> 1.0.1 (PyPI does not allow re-uploading an existing version). Co-Authored-By: Claude Opus 4.8 (1M context) --- CMakeLists.txt | 2 +- python/CMakeLists.txt | 12 +++++++++--- python/pyvcell_mbsolver/py.typed | 0 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 python/pyvcell_mbsolver/py.typed 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