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
  • Loading branch information
msclock-bot[bot] authored Jan 7, 2025
1 parent 488f2e7 commit 6d05e63
Show file tree
Hide file tree
Showing 14 changed files with 118 additions and 81 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: [email protected]
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
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ jobs:
- name: Upload coverage report
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
<<<<<<< before updating
=======
with:
token: ${{ secrets.CODECOV_TOKEN }}
>>>>>>> after updating


check-docs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ jobs:
RENOVATE_PLATFORM: github
RENOVATE_REPOSITORIES: '["${{ github.repository }}"]'
RENOVATE_REPOSITORY_CACHE: enabled
<<<<<<< before updating
image: ghcr.io/renovatebot/renovate:39.91.3@sha256:fe6475e56915dbcd948cf7b94b879d38d2c261fbe7e2b869d35556229a5fce9c
=======
image: ghcr.io/renovatebot/renovate:39.91.0@sha256:60d04619493d43fe67d728121dfef56b893bf90695219d352e772e881403d158
>>>>>>> after updating
options: --user root
runs-on: ubuntu-24.04
steps:
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ repos:

# Check for renovate config
- repo: https://github.com/renovatebot/pre-commit-hooks
<<<<<<< before updating
rev: 39.91.3
=======
rev: 39.91.0
>>>>>>> after updating
hooks:
- id: renovate-config-validator
stages: [manual]
Expand Down
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,24 @@ message(STATUS "CMAKE VERSION:${CMAKE_VERSION}")

project(
pybit7z
<<<<<<< before updating
LANGUAGES C CXX
HOMEPAGE_URL "https://github.com/msclock/pybit7z"
=======
LANGUAGES CXX C
HOMEPAGE_URL "https:///msclock/pybit7z"
>>>>>>> after updating
DESCRIPTION "A wrapper based on bit7z.")

# Project default module
find_package(cmake-modules REQUIRED)
include(cmake-modules/ProjectDefault)
<<<<<<< before updating

# Project custom modules
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
=======
>>>>>>> after updating
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)
10 changes: 10 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,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")
6 changes: 6 additions & 0 deletions src/_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ sanitize_target(${target_name})

target_link_libraries(${target_name} PRIVATE ${target_name_internal})

<<<<<<< before updating
add_custom_command(
TARGET ${target_name}
POST_BUILD
Expand All @@ -65,11 +66,16 @@ install(
COMPONENT
Runtime)

=======
>>>>>>> after updating
install(TARGETS ${target_name} DESTINATION ${CMAKE_PROJECT_NAME})

install_dependency(TARGETS ${target_name} DEPENDS_DESTINATION
${CMAKE_PROJECT_NAME})
<<<<<<< before updating

if(BUILD_TESTING)
add_test_subdirectory(tests)
endif()
=======
>>>>>>> after updating
3 changes: 3 additions & 0 deletions src/_core/src/pybind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ PYBIND11_MODULE(_core, m) {
m.def("version", []() { return _core::ProjectVersion(); }, R"pbdoc(
The _core plugin version.
)pbdoc");
<<<<<<< before updating

m.def("platform_lib7zip_name",
_core::platform_lib7zip_name,
Expand Down Expand Up @@ -1820,4 +1821,6 @@ The items in the first argument must be the relative or absolute paths to files
&bit7z::BitArchiveEditor::applyChanges,
py::doc(
R"pydoc(Applies the requested changes (i.e., rename/update/delete operations) to the input archive.)pydoc"));
=======
>>>>>>> after updating
}
7 changes: 7 additions & 0 deletions src/pybit7z/_core.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Pybind11 _core plugin

from __future__ import annotations

<<<<<<< before updating
import datetime
import typing

Expand Down Expand Up @@ -2215,11 +2216,15 @@ def platform_lib7zip_name() -> str:
"""
lib7zip library name for current platform.
"""
=======
__all__ = ["version"]
>>>>>>> after updating

def version() -> str:
"""
The _core plugin version.
"""
<<<<<<< before updating

ATime: BitProperty # value = <BitProperty.ATime: 11>
AltStreamsSize: BitProperty # value = <BitProperty.AltStreamsSize: 76>
Expand Down Expand Up @@ -2405,3 +2410,5 @@ Warning: BitProperty # value = <BitProperty.Warning: 73>
WarningFlags: BitProperty # value = <BitProperty.WarningFlags: 72>
ZerosTailIsAllowed: BitProperty # value = <BitProperty.ZerosTailIsAllowed: 86>
BitFileExtractor = BitStringExtractor
=======
>>>>>>> after updating
Loading

0 comments on commit 6d05e63

Please sign in to comment.