Skip to content

Commit

Permalink
chore(deps): update dependency https://github.com/serious-scaffold/ss…
Browse files Browse the repository at this point in the history
…-pybind11 to v0.8.31 (#31)

* chore(deps): update dependency https://github.com/serious-scaffold/ss-pybind11 to v0.8.31

* Resolve conflicts

Signed-off-by: l.feng <43399351+msclock@users.noreply.github.com>

---------

Signed-off-by: l.feng <43399351+msclock@users.noreply.github.com>
Co-authored-by: msclock-bot[bot] <163820484+msclock-bot[bot]@users.noreply.github.com>
Co-authored-by: l.feng <43399351+msclock@users.noreply.github.com>
  • Loading branch information
msclock-bot[bot] and msclock authored Jan 7, 2025
1 parent 488f2e7 commit 7f10bdd
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 95 deletions.
3 changes: 2 additions & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: v0.8.25
_commit: v0.8.31
_src_path: https://github.com/serious-scaffold/ss-pybind11
author_email: msclock@126.com
author_name: l.feng
Expand All @@ -18,6 +18,7 @@ module_name: pybit7z
organization_name: msclock
project_description: A wrapper based on bit7z.
project_name: pybit7z
repo_host: github.com
repo_name: pybit7z
repo_namespace: msclock
repo_platform: github
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ jobs:
- name: Upload coverage report
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}


check-docs:
Expand Down
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ project(
# Project default module
find_package(cmake-modules REQUIRED)
include(cmake-modules/ProjectDefault)

# Project custom modules
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(ConfigureVersion)

add_subdirectory(src)
80 changes: 43 additions & 37 deletions cmake/presets/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,63 +5,68 @@
"toolchains/vcpkg.json"
],
"configurePresets": [
{
"name": "base-common",
"hidden":true,
"binaryDir":"${sourceDir}/out/build/${presetName}",
"installDir":"${sourceDir}/out/install/${presetName}",
"cacheVariables":{
"CMAKE_COMPILE_WARNING_AS_ERROR":false,
"CMAKE_EXPORT_COMPILE_COMMANDS":true,
"CMAKE_VERBOSE_MAKEFILE":"FALSE"
}
},
{
"name": "base",
"hidden": true,
"inherits": [
"base-common",
"ninja",
"vcpkg"
],
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_COMPILE_WARNING_AS_ERROR": false,
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_VERBOSE_MAKEFILE": "FALSE"
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "base-config",
"hidden": true,
"inherits": [
"base-common",
"ninja-config",
"vcpkg"
],
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_COMPILE_WARNING_AS_ERROR": false,
"CMAKE_VERBOSE_MAKEFILE": "FALSE"
}
]
}
],
"buildPresets": [
{
"name": "base",
"hidden": true,
"inherits": "ninja",
"configurePreset": "base"
},
{
"name": "base-config-debug",
"hidden": true,
"configurePreset": "base-config",
"configuration": "Debug"
},
{
"name": "base-config-relwithdebinfo",
"hidden": true,
"inherits": "ninja-config-relwithdebinfo",
"configurePreset": "base-config"
"configurePreset": "base-config",
"configuration": "RelWithDebInfo"
},
{
"name": "base-config-debug",
"name": "base-config-release",
"hidden": true,
"inherits": "ninja-config-debug",
"configurePreset": "base-config"
"configurePreset": "base-config",
"configuration": "Release"
}
],
"testPresets": [
{
"name": "base",
"hidden": true,
"inherits": "ninja",
"configurePreset": "base",
"output": {
"outputOnFailure": true
Expand All @@ -74,28 +79,29 @@
{
"name": "base-config-relwithdebinfo",
"hidden": true,
"inherits": "ninja-config-relwithdebinfo",
"inherits": [
"base"
],
"configurePreset": "base-config",
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": true
}
"configuration": "RelWithDebInfo"
},
{
"name": "base-config-debug",
"hidden": true,
"inherits": "ninja-config-debug",
"inherits": [
"base"
],
"configurePreset": "base-config",
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": true
}
"configuration": "Debug"
},
{
"name": "base-config-release",
"hidden": true,
"inherits": [
"base"
],
"configurePreset": "base-config",
"configuration": "Release"
}
]
}
10 changes: 10 additions & 0 deletions cmake/presets/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
"name": "default-config-debug",
"inherits": "base-config-debug",
"configurePreset": "default-config"
},
{
"name": "default-config-release",
"inherits": "base-config-release",
"configurePreset": "default-config"
}
],
"testPresets": [
Expand All @@ -49,6 +54,11 @@
"name": "default-config-debug",
"inherits": "base-config-debug",
"configurePreset": "default-config"
},
{
"name": "default-config-release",
"inherits": "base-config-release",
"configurePreset": "default-config"
}
]
}
38 changes: 0 additions & 38 deletions cmake/presets/generators/ninja.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,5 @@
"hidden": true,
"generator": "Ninja Multi-Config"
}
],
"buildPresets": [
{
"name": "ninja",
"hidden": true,
"configurePreset": "ninja"
},
{
"name": "ninja-config-relwithdebinfo",
"hidden": true,
"configurePreset": "ninja-config",
"configuration": "RelWithDebInfo"
},
{
"name": "ninja-config-debug",
"hidden": true,
"configurePreset": "ninja-config",
"configuration": "Debug"
}
],
"testPresets": [
{
"name": "ninja",
"hidden": true,
"configurePreset": "ninja"
},
{
"name": "ninja-config-relwithdebinfo",
"hidden": true,
"configurePreset": "ninja-config",
"configuration": "RelWithDebInfo"
},
{
"name": "ninja-config-debug",
"hidden": true,
"configurePreset": "ninja-config",
"configuration": "Debug"
}
]
}
13 changes: 8 additions & 5 deletions cmake/vcpkg/bootstrap/vcpkg_load_triplet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -207,19 +207,22 @@ macro(_vcpkg_load_triplet)
set(_community_triplet "triplets/community/${VCPKG_TARGET_TRIPLET}.cmake")

if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${_triplet}")
include("${CMAKE_CURRENT_LIST_DIR}/${_triplet}")
set(_load_triplet "${CMAKE_CURRENT_LIST_DIR}/${_triplet}")
elseif(EXISTS "${_VCPKG_ROOT}/${_triplet}")
include("${_VCPKG_ROOT}/${_triplet}")
elseif(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${_community_triplet}")
include("${CMAKE_CURRENT_LIST_DIR}/${_community_triplet}")
set(_load_triplet "${_VCPKG_ROOT}/${_triplet}")
elseif(EXISTS "${_VCPKG_ROOT}/${_community_triplet}")
include("${_VCPKG_ROOT}/${_community_triplet}")
set(_load_triplet "${_VCPKG_ROOT}/${_community_triplet}")
else()
message(
FATAL_ERROR
"Triplet ${VCPKG_TARGET_TRIPLET} not found at ${CMAKE_CURRENT_LIST_DIR}/${_triplet} or ${_VCPKG_ROOT}/${_triplet}"
)
endif()

message(STATUS "Loading triplet: ${_load_triplet}")
include(${_load_triplet})

unset(_triplet)
unset(_community_triplet)
unset(_load_triplet)
endmacro(_vcpkg_load_triplet)
20 changes: 10 additions & 10 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,6 @@ def docs(session: nox.Session) -> None:
session.run("sphinx-build", "--keep-going", *shared_args)


@nox.session(reuse_venv=True)
def pyi(session: nox.Session) -> None:
"""
Generate the Pyi type stubs.
"""
session.install("pybind11-stubgen")
session.install(".[test]")
session.run("pybind11-stubgen", "pybit7z._core", "-o", "src")


@nox.session
def build(session: nox.Session) -> None:
"""
Expand All @@ -100,3 +90,13 @@ def build(session: nox.Session) -> None:

session.install("build")
session.run("python", "-m", "build")


@nox.session(reuse_venv=True)
def pyi(session: nox.Session) -> None:
"""
Generate the Pyi type stubs.
"""
session.install("pybind11-stubgen")
session.install(".[test]")
session.run("pybind11-stubgen", "pybit7z._core", "-o", "src")
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
{
"name": "cmake-modules",
"version": "1.6.13"
"version": "1.6.14"
},
{
"name": "robotology-cmake-ycm",
Expand Down

0 comments on commit 7f10bdd

Please sign in to comment.