Skip to content

Commit

Permalink
build: bump py-build-cmake version
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelpro committed Dec 5, 2024
1 parent 7df34d5 commit edeb02a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,18 @@ endif()

add_subdirectory(src)

if(DEFINED PY_BUILD_CMAKE_VERSION)
set(NANOROUTE_PLATLIB ${PY_BUILD_CMAKE_PACKAGE_NAME}-${PY_BUILD_CMAKE_PACKAGE_VERSION}.data/platlib)
else()
set(NANOROUTE_PLATLIB platlib)
endif()

install(
TARGETS nanoroute
LIBRARY DESTINATION ${PY_BUILD_CMAKE_PACKAGE_NAME}-${PY_BUILD_CMAKE_PACKAGE_VERSION}.data/platlib
LIBRARY DESTINATION ${NANOROUTE_PLATLIB}
)

install(
FILES src/nanoroute.pyi
DESTINATION ${PY_BUILD_CMAKE_PACKAGE_NAME}-${PY_BUILD_CMAKE_PACKAGE_VERSION}.data/purelib
DESTINATION ${NANOROUTE_PLATLIB}
)
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ classifiers = [
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
]
urls = { "Documentation" = "https://github.com/nickelpro/nanoroute" }
urls = { "Documentation" = "https://nanoroute.dev" }
dependencies = []

[build-system]
requires = ["py-build-cmake~=0.2.0a14"]
requires = ["py-build-cmake~=0.3.2"]
build-backend = "py_build_cmake.build"

[tool.py-build-cmake.module]
Expand Down

0 comments on commit edeb02a

Please sign in to comment.