cppcheck 1.4.2__tar.gz → 1.4.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. {cppcheck-1.4.2 → cppcheck-1.4.4}/.copier-answers.yml +3 -3
  2. {cppcheck-1.4.2 → cppcheck-1.4.4}/.github/workflows/cd.yml +0 -12
  3. {cppcheck-1.4.2 → cppcheck-1.4.4}/.github/workflows/ci.yml +2 -2
  4. {cppcheck-1.4.2 → cppcheck-1.4.4}/.github/workflows/codeql.yml +1 -1
  5. {cppcheck-1.4.2 → cppcheck-1.4.4}/.github/workflows/pages.yml +3 -3
  6. {cppcheck-1.4.2 → cppcheck-1.4.4}/.github/workflows/renovate.yml +1 -1
  7. {cppcheck-1.4.2 → cppcheck-1.4.4}/.pre-commit-config.yaml +4 -4
  8. {cppcheck-1.4.2 → cppcheck-1.4.4}/.renovaterc.json +5 -3
  9. {cppcheck-1.4.2 → cppcheck-1.4.4}/LICENSE +1 -1
  10. {cppcheck-1.4.2 → cppcheck-1.4.4}/PKG-INFO +5 -2
  11. {cppcheck-1.4.2 → cppcheck-1.4.4}/README.md +3 -0
  12. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/bootstrap/vcpkg_bootstrap.cmake +16 -12
  13. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/bootstrap/vcpkg_configure.cmake +18 -0
  14. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/vcpkg.toolchain.cmake +2 -18
  15. {cppcheck-1.4.2 → cppcheck-1.4.4}/docs/conf.py +2 -2
  16. {cppcheck-1.4.2 → cppcheck-1.4.4}/pyproject.toml +11 -7
  17. {cppcheck-1.4.2 → cppcheck-1.4.4}/src/cppcheck/__init__.py +1 -2
  18. {cppcheck-1.4.2 → cppcheck-1.4.4}/src/cppcheck/__main__.py +1 -0
  19. {cppcheck-1.4.2 → cppcheck-1.4.4}/src/cppcheck/_version.py +2 -2
  20. {cppcheck-1.4.2 → cppcheck-1.4.4}/vcpkg.json +2 -2
  21. {cppcheck-1.4.2 → cppcheck-1.4.4}/.devcontainer/devcontainer.json +0 -0
  22. {cppcheck-1.4.2 → cppcheck-1.4.4}/.editorconfig +0 -0
  23. {cppcheck-1.4.2 → cppcheck-1.4.4}/.gitattributes +0 -0
  24. {cppcheck-1.4.2 → cppcheck-1.4.4}/.github/codecov.yml +0 -0
  25. {cppcheck-1.4.2 → cppcheck-1.4.4}/.github/codeql-config.yml +0 -0
  26. {cppcheck-1.4.2 → cppcheck-1.4.4}/.github/matchers/pylint.json +0 -0
  27. {cppcheck-1.4.2 → cppcheck-1.4.4}/.github/workflows/semantic-release.yml +0 -0
  28. {cppcheck-1.4.2 → cppcheck-1.4.4}/.gitignore +0 -0
  29. {cppcheck-1.4.2 → cppcheck-1.4.4}/.markdownlint.yaml +0 -0
  30. {cppcheck-1.4.2 → cppcheck-1.4.4}/.releaserc.js +0 -0
  31. {cppcheck-1.4.2 → cppcheck-1.4.4}/.vscode/launch.json +0 -0
  32. {cppcheck-1.4.2 → cppcheck-1.4.4}/.vscode/settings.json +0 -0
  33. {cppcheck-1.4.2 → cppcheck-1.4.4}/CMakeLists.txt +0 -0
  34. {cppcheck-1.4.2 → cppcheck-1.4.4}/CMakePresets.json +0 -0
  35. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/arch/x64.json +0 -0
  36. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/base.json +0 -0
  37. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/compilers/gcc.json +0 -0
  38. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/compilers/llvm.json +0 -0
  39. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/compilers/mingw.json +0 -0
  40. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/compilers/msvc.json +0 -0
  41. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/default.json +0 -0
  42. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/generators/ninja.json +0 -0
  43. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/os/darwin.json +0 -0
  44. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/os/linux.json +0 -0
  45. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/os/windows.json +0 -0
  46. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/toolchains/vcpkg.json +0 -0
  47. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/triplets/x64-linux.json +0 -0
  48. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/triplets/x64-mingw-dynamic.json +0 -0
  49. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/triplets/x64-mingw-static.json +0 -0
  50. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/triplets/x64-osx.json +0 -0
  51. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/triplets/x64-windows.json +0 -0
  52. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/x64-linux-gcc.json +0 -0
  53. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/x64-linux-llvm.json +0 -0
  54. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/x64-mingw-dynamic-windows-mingw.json +0 -0
  55. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/x64-mingw-static-windows-mingw.json +0 -0
  56. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/x64-osx-gcc.json +0 -0
  57. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/x64-osx-llvm.json +0 -0
  58. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/x64-windows-llvm.json +0 -0
  59. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/presets/x64-windows-msvc.json +0 -0
  60. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/bootstrap/vcpkg-config.cmake +0 -0
  61. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/bootstrap/vcpkg_chainload_toolchain.cmake +0 -0
  62. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/bootstrap/vcpkg_export_mode.cmake +0 -0
  63. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/bootstrap/vcpkg_load_triplet.cmake +0 -0
  64. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake +0 -0
  65. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/ports/README.md +0 -0
  66. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/ports/cppcheck/portfile.cmake +0 -0
  67. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/ports/cppcheck/vcpkg.json +0 -0
  68. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/ports/pcre/export-cmake-targets.patch +0 -0
  69. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/ports/pcre/pcre-8.4.5_fix_check_function_exists_for_arm-androi_builds.patch +0 -0
  70. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/ports/pcre/pcre-8.45_fix_postfix_for_debug_Windows_builds.patch +0 -0
  71. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/ports/pcre/pcre-8.45_suppress_cmake_and_compiler_warnings-errors.patch +0 -0
  72. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/ports/pcre/portfile.cmake +0 -0
  73. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/ports/pcre/unofficial-pcre-config.cmake +0 -0
  74. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/ports/pcre/vcpkg.json +0 -0
  75. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/scripts/build_type.cmake +0 -0
  76. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/scripts/toolchains/README.md +0 -0
  77. {cppcheck-1.4.2 → cppcheck-1.4.4}/cmake/vcpkg/triplets/README.md +0 -0
  78. {cppcheck-1.4.2 → cppcheck-1.4.4}/docs/api/index.md +0 -0
  79. {cppcheck-1.4.2 → cppcheck-1.4.4}/docs/index.md +0 -0
  80. {cppcheck-1.4.2 → cppcheck-1.4.4}/noxfile.py +0 -0
  81. {cppcheck-1.4.2 → cppcheck-1.4.4}/src/cppcheck/_version.pyi +0 -0
  82. {cppcheck-1.4.2 → cppcheck-1.4.4}/src/cppcheck/py.typed +0 -0
  83. {cppcheck-1.4.2 → cppcheck-1.4.4}/tests/test_package.py +0 -0
@@ -1,11 +1,11 @@
1
- _commit: v0.8.2
1
+ _commit: v0.8.6
2
2
  _src_path: gh:serious-scaffold/ss-pybind11
3
3
  author_email: msclock@126.com
4
- author_name: msclock
4
+ author_name: l.feng
5
5
  codecov_notify_builds: 1
6
6
  codecov_threshold: 5%
7
7
  compiled: false
8
- copyright_holder: msclock
8
+ copyright_holder: l.feng
9
9
  copyright_license: Apache Software License
10
10
  copyright_year: '2024'
11
11
  create_devcontainer: true
@@ -72,18 +72,6 @@ jobs:
72
72
  uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
73
73
  if: runner.os == 'Linux' && contains(matrix.use_qemu, matrix.arch)
74
74
 
75
- - name: Check architecture and set environment variable
76
- if: runner.os == 'Linux'
77
- run: |
78
- echo "Checking architecture..."
79
- if [[ ${{ matrix.arch }} == "aarch64" ||
80
- ${{ matrix.arch }} == "ppc64le" ||
81
- ${{ matrix.arch }} == "s390x" ||
82
- ${{ matrix.arch }} == *"arm"* ]]; then
83
- echo "Set VCPKG_FORCE_SYSTEM_BINARIES=1"
84
- echo "CIBW_ENVIRONMENT=VCPKG_FORCE_SYSTEM_BINARIES=1" >> $GITHUB_ENV
85
- fi
86
-
87
75
  - name: Build wheels
88
76
  uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0
89
77
  env:
@@ -63,7 +63,7 @@ jobs:
63
63
  fetch-depth: 0
64
64
 
65
65
  - name: Cache
66
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
66
+ uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
67
67
  with:
68
68
  path: |
69
69
  ~/vcpkg
@@ -99,7 +99,7 @@ jobs:
99
99
  fetch-depth: 0
100
100
 
101
101
  - name: Cache
102
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
102
+ uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
103
103
  with:
104
104
  path: |
105
105
  ~/vcpkg
@@ -56,7 +56,7 @@ jobs:
56
56
  config-file: ./.github/codeql-config.yml
57
57
 
58
58
  - name: Cache
59
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
59
+ uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
60
60
  with:
61
61
  path: |
62
62
  ~/vcpkg
@@ -31,13 +31,13 @@ jobs:
31
31
  timeout-minutes: 15
32
32
 
33
33
  steps:
34
- - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
34
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
35
35
  with:
36
36
  token: ${{ secrets.GITHUB_TOKEN }}
37
37
  ref: ${{ github.head_ref }}
38
38
 
39
39
  - name: Cache
40
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
40
+ uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
41
41
  with:
42
42
  path: |
43
43
  ~/vcpkg
@@ -46,7 +46,7 @@ jobs:
46
46
  key: cd-pages-${{ hashFiles('vcpkg.json') }}
47
47
  restore-keys: cd-pages-${{ hashFiles('vcpkg.json') }}
48
48
 
49
- - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
49
+ - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
50
50
  with:
51
51
  python-version: 3.x
52
52
 
@@ -11,7 +11,7 @@ jobs:
11
11
  container:
12
12
  env:
13
13
  LOG_LEVEL: debug
14
- RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find"]'
14
+ RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier", "^find", "^apt"]'
15
15
  RENOVATE_BRANCH_PREFIX: renovate-github/
16
16
  RENOVATE_ENABLED: ${{ vars.RENOVATE_ENABLED || true }}
17
17
  RENOVATE_ENABLED_MANAGERS: '["pep621", "github-actions", "regex", "pre-commit"]'
@@ -48,7 +48,7 @@ repos:
48
48
 
49
49
  # Strong lint from ruff
50
50
  - repo: https://github.com/astral-sh/ruff-pre-commit
51
- rev: v0.1.14
51
+ rev: v0.8.1
52
52
  hooks:
53
53
  - id: ruff
54
54
  args: [--fix, --show-fixes]
@@ -56,7 +56,7 @@ repos:
56
56
 
57
57
  # Mypy Check
58
58
  - repo: https://github.com/pre-commit/mirrors-mypy
59
- rev: v1.8.0
59
+ rev: v1.13.0
60
60
  hooks:
61
61
  - id: mypy
62
62
  files: src|tests
@@ -101,14 +101,14 @@ repos:
101
101
 
102
102
  # Check pyproject
103
103
  - repo: https://github.com/abravalheri/validate-pyproject
104
- rev: v0.16
104
+ rev: v0.23
105
105
  hooks:
106
106
  - id: validate-pyproject
107
107
  additional_dependencies: ['validate-pyproject-schema-store[all]>=2024.10.21']
108
108
 
109
109
  # Check jsonschema
110
110
  - repo: https://github.com/python-jsonschema/check-jsonschema
111
- rev: 0.27.3
111
+ rev: 0.30.0
112
112
  hooks:
113
113
  - id: check-dependabot
114
114
  - id: check-github-workflows
@@ -37,16 +37,18 @@
37
37
  {
38
38
  "commitMessageTopic": "serious-scaffold",
39
39
  "matchDepTypes": [
40
- "copier-template"
40
+ "ss-template"
41
41
  ],
42
42
  "postUpgradeTasks": {
43
43
  "commands": [
44
+ "apt update",
45
+ "apt install python3-pip -y",
44
46
  "git stash",
45
47
  "pip install copier==9.4.1",
46
48
  "copier update --defaults --vcs-ref {{{newVersion}}}"
47
49
  ]
48
50
  },
49
- "semanticCommitScope": "copier-template"
51
+ "semanticCommitScope": "ss-template"
50
52
  },
51
53
  {
52
54
  "description": "Group apt packages to avoid failure when multiple packages are outdated.",
@@ -114,7 +116,7 @@
114
116
  "customType": "regex",
115
117
  "datasourceTemplate": "git-tags",
116
118
  "depNameTemplate": "https://github.com/serious-scaffold/ss-pybind11.git",
117
- "depTypeTemplate": "copier-template",
119
+ "depTypeTemplate": "ss-template",
118
120
  "fileMatch": [
119
121
  "^\\.copier-answers\\.yml$"
120
122
  ],
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2024 msclock
189
+ Copyright 2024 l.feng
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cppcheck
3
- Version: 1.4.2
3
+ Version: 1.4.4
4
4
  Summary: Package cppcheck as a python wheel.
5
- Author-Email: msclock <msclock@126.com>
5
+ Author-Email: "l.feng" <msclock@126.com>
6
6
  License: Apache-2.0
7
7
  Classifier: Intended Audience :: Science/Research
8
8
  Classifier: Intended Audience :: Developers
@@ -56,7 +56,10 @@ Package cppcheck as a python wheel.
56
56
  [![Renovate](https://github.com/msclock/cppcheck-wheel/actions/workflows/renovate.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/renovate.yml)
57
57
  [![Semantic Release](https://github.com/msclock/cppcheck-wheel/actions/workflows/semantic-release.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/semantic-release.yml)
58
58
  [![codecov](https://codecov.io/gh/msclock/cppcheck-wheel/branch/master/graph/badge.svg?token=123456789)](https://codecov.io/gh/msclock/cppcheck-wheel)
59
+
59
60
  [![Release](https://img.shields.io/github/v/release/msclock/cppcheck-wheel)](https://github.com/msclock/cppcheck-wheel/releases)
61
+ [![PyPI](https://img.shields.io/pypi/v/cppcheck)](https://pypi.org/project/cppcheck/)
62
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cppcheck)](https://pypi.org/project/cppcheck/)
60
63
 
61
64
  [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
62
65
  [![cmake-format](https://img.shields.io/badge/cmake--format-enabled-blue)](https://github.com/cheshirekow/cmake-format-precommit)
@@ -13,7 +13,10 @@ Package cppcheck as a python wheel.
13
13
  [![Renovate](https://github.com/msclock/cppcheck-wheel/actions/workflows/renovate.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/renovate.yml)
14
14
  [![Semantic Release](https://github.com/msclock/cppcheck-wheel/actions/workflows/semantic-release.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/semantic-release.yml)
15
15
  [![codecov](https://codecov.io/gh/msclock/cppcheck-wheel/branch/master/graph/badge.svg?token=123456789)](https://codecov.io/gh/msclock/cppcheck-wheel)
16
+
16
17
  [![Release](https://img.shields.io/github/v/release/msclock/cppcheck-wheel)](https://github.com/msclock/cppcheck-wheel/releases)
18
+ [![PyPI](https://img.shields.io/pypi/v/cppcheck)](https://pypi.org/project/cppcheck/)
19
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cppcheck)](https://pypi.org/project/cppcheck/)
17
20
 
18
21
  [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
19
22
  [![cmake-format](https://img.shields.io/badge/cmake--format-enabled-blue)](https://github.com/cheshirekow/cmake-format-precommit)
@@ -22,14 +22,20 @@ endfunction()
22
22
  function(_vcpkg_checkout vcpkg_root vcpkg_ref)
23
23
  message(STATUS "vcpkg checkout to ${vcpkg_ref}")
24
24
 
25
- execute_process(
26
- COMMAND ${GIT_EXECUTABLE} fetch origin ${vcpkg_ref}
27
- WORKING_DIRECTORY ${vcpkg_root}
28
- RESULT_VARIABLE result)
29
-
30
- if(NOT result EQUAL "0")
25
+ if(EXISTS "${vcpkg_root}/.git/shallow")
31
26
  message(
32
- FATAL_ERROR "${GIT_EXECUTABLE} fetch ${vcpkg_ref} failed with ${result}")
27
+ WARNING
28
+ "vcpkg is shallow now and unshallow to retrieve the Git tree object hash for a specific version port......"
29
+ )
30
+ execute_process(
31
+ COMMAND ${GIT_EXECUTABLE} fetch --unshallow
32
+ WORKING_DIRECTORY ${vcpkg_root}
33
+ RESULT_VARIABLE result)
34
+
35
+ if(NOT result EQUAL "0")
36
+ message(
37
+ FATAL_ERROR "${GIT_EXECUTABLE} fetch --unshallow failed with ${result}")
38
+ endif()
33
39
  endif()
34
40
 
35
41
  execute_process(
@@ -47,7 +53,7 @@ endfunction()
47
53
  # clone
48
54
  function(_vcpkg_clone vcpkg_root vcpkg_repo vcpkg_ref)
49
55
  execute_process(
50
- COMMAND ${GIT_EXECUTABLE} clone ${vcpkg_repo} ${vcpkg_root} --depth=1
56
+ COMMAND ${GIT_EXECUTABLE} clone ${vcpkg_repo} ${vcpkg_root}
51
57
  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
52
58
  RESULT_VARIABLE result)
53
59
 
@@ -123,7 +129,7 @@ function(_vcpkg_upgrade vcpkg_root vcpkg_repo vcpkg_ref)
123
129
 
124
130
  message(STATUS "Upgrade vcpkg")
125
131
  message(STATUS "vcpkg current commit: ${current_git_hash}")
126
- message(STATUS "vcpkg release: ${vcpkg_ref}")
132
+ message(STATUS "vcpkg target commit: ${vcpkg_ref}")
127
133
 
128
134
  execute_process(
129
135
  COMMAND ${GIT_EXECUTABLE} remote set-url origin ${vcpkg_repo}
@@ -150,9 +156,7 @@ endfunction()
150
156
 
151
157
  # find root
152
158
  function(_vcpkg_find_root cache_dir_name out_vcpkg_root)
153
- if(DEFINED ENV{VCPKG_ROOT} AND NOT "$ENV{VCPKG_ROOT}" STREQUAL "")
154
- set(root "$ENV{VCPKG_ROOT}")
155
- elseif("${__vcpkg_bootstrap_host}" STREQUAL "Windows")
159
+ if("${__vcpkg_bootstrap_host}" STREQUAL "Windows")
156
160
  set(root "$ENV{LOCALAPPDATA}/vcpkg/projects/${cache_dir_name}/cache")
157
161
  else()
158
162
  set(root "$ENV{HOME}/.cache/vcpkg/projects/${cache_dir_name}")
@@ -36,8 +36,26 @@ function(_vcpkg_export_mode)
36
36
  message(STATUS "Disable manifest mode for using vcpkg exported artifacts")
37
37
  endfunction()
38
38
 
39
+ macro(detect_vcpkg)
40
+ # Respect environment variable VCPKG_ROOT and VCPKG_INSTALLATION_ROOT if set
41
+ if(DEFINED ENV{VCPKG_ROOT} AND NOT "$ENV{VCPKG_ROOT}" STREQUAL "")
42
+ set(_VCPKG_ROOT
43
+ "$ENV{VCPKG_ROOT}"
44
+ CACHE PATH "Vcpkg root directory" FORCE)
45
+ elseif(DEFINED ENV{VCPKG_INSTALLATION_ROOT}
46
+ AND NOT "$ENV{VCPKG_INSTALLATION_ROOT}" STREQUAL "")
47
+ set(_VCPKG_ROOT
48
+ "$ENV{VCPKG_INSTALLATION_ROOT}"
49
+ CACHE PATH "Vcpkg root directory" FORCE)
50
+ else()
51
+ unset(_VCPKG_ROOT CACHE)
52
+ endif()
53
+ endmacro()
54
+
39
55
  # bootstrap and configure vcpkg
40
56
  macro(vcpkg_configure)
57
+ detect_vcpkg()
58
+
41
59
  if(NOT VCPKG_EXPORT_MODE)
42
60
  _vcpkg_bootstrap(${ARGN})
43
61
  _vcpkg_skip_install_on_reconfigure()
@@ -19,29 +19,13 @@ unset(IN_TRY_COMPILE)
19
19
  # Load the common settings
20
20
  include(${CMAKE_CURRENT_LIST_DIR}/scripts/build_type.cmake)
21
21
 
22
- # Vcpkg build environment
23
- file(READ ${CMAKE_SOURCE_DIR}/vcpkg.json _vcpkg_json)
24
- string(JSON _builtin_baseline GET ${_vcpkg_json} builtin-baseline)
25
-
26
- # Respect environment variable VCPKG_ROOT and VCPKG_INSTALLATION_ROOT if set
27
- if(DEFINED ENV{VCPKG_ROOT} AND NOT "$ENV{VCPKG_ROOT}" STREQUAL "")
28
- set(_VCPKG_ROOT
29
- "$ENV{VCPKG_ROOT}"
30
- CACHE PATH "Vcpkg root directory" FORCE)
31
- elseif(DEFINED ENV{VCPKG_INSTALLATION_ROOT}
32
- AND NOT "$ENV{VCPKG_INSTALLATION_ROOT}" STREQUAL "")
33
- set(_VCPKG_ROOT
34
- "$ENV{VCPKG_INSTALLATION_ROOT}"
35
- CACHE PATH "Vcpkg root directory" FORCE)
36
- else()
37
- unset(_VCPKG_ROOT CACHE)
38
- endif()
39
-
40
22
  include(${CMAKE_CURRENT_LIST_DIR}/bootstrap/vcpkg-config.cmake)
41
23
 
42
24
  set(VCPKG_VERBOSE
43
25
  ON
44
26
  CACHE BOOL "Vcpkg VCPKG_VERBOSE")
45
27
 
28
+ file(READ ${CMAKE_SOURCE_DIR}/vcpkg.json _vcpkg_json)
29
+ string(JSON _builtin_baseline GET ${_vcpkg_json} builtin-baseline)
46
30
  vcpkg_configure(CACHE_DIR_NAME cppcheck-wheel REPO
47
31
  https://github.com/microsoft/vcpkg.git REF ${_builtin_baseline})
@@ -22,8 +22,8 @@ ROOT = Path(__file__).parent.parent.resolve()
22
22
  # -- Project information -----------------------------------------------------
23
23
 
24
24
  project = "Cppcheck Wheel"
25
- copyright = "2024 msclock"
26
- author = "msclock"
25
+ copyright = "2024 l.feng"
26
+ author = "l.feng"
27
27
 
28
28
  # -- General configuration ---------------------------------------------------
29
29
 
@@ -7,9 +7,7 @@ name = "cppcheck"
7
7
  description = "Package cppcheck as a python wheel."
8
8
  readme = "README.md"
9
9
  license = { text = "Apache-2.0" }
10
- authors = [
11
- { email = "msclock@126.com", name = "msclock" },
12
- ]
10
+ authors = [{ email = "msclock@126.com", name = "l.feng" }]
13
11
  requires-python = ">=3.7"
14
12
  classifiers = [
15
13
  "Intended Audience :: Science/Research",
@@ -66,10 +64,10 @@ metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
66
64
  sdist.include = ["src/cppcheck/_version.py"]
67
65
  cmake.args = [
68
66
  "-DBUILD_TESTING=OFF",
69
- "-DCMAKE_BUILD_TYPE=ReWithDebInfo", # Required RelWithDebInfo or Release
67
+ "-DCMAKE_BUILD_TYPE=ReWithDebInfo",
70
68
  "-DCMAKE_TOOLCHAIN_FILE=cmake/vcpkg/vcpkg.toolchain.cmake",
71
69
  "-DVCPKG_OVERLAY_TRIPLETS=cmake/vcpkg/triplets",
72
- "-DVCPKG_OVERLAY_PORTS=cmake/vcpkg/ports"
70
+ "-DVCPKG_OVERLAY_PORTS=cmake/vcpkg/ports",
73
71
  ]
74
72
 
75
73
  [tool.setuptools_scm]
@@ -82,13 +80,19 @@ test-extras = ["test"]
82
80
  test-skip = ["*-win_arm64", "*-macosx_universal2:arm64"]
83
81
 
84
82
  [tool.cibuildwheel.linux]
85
- before-build =[
83
+ before-build = [
86
84
  'yum install zip -y || apk add zip || true',
87
85
  'apt update && apt install zip pkg-config -y || true',
88
86
  'pip install cmake ninja',
89
- 'cmake --version', 'git --version', 'ninja --version',
87
+ 'cmake --version',
88
+ 'git --version',
89
+ 'ninja --version',
90
90
  ]
91
91
 
92
+ [[tool.cibuildwheel.overrides]]
93
+ select = "*linux_{aarch64,armv7l,ppc64le,s390x}"
94
+ environment = { VCPKG_FORCE_SYSTEM_BINARIES = "1" }
95
+
92
96
  [tool.pytest.ini_options]
93
97
  minversion = "6.0"
94
98
  addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
@@ -1,10 +1,9 @@
1
1
  """
2
- Copyright (c) 2024 msclock. All rights reserved.
2
+ Copyright (c) 2024 l.feng. All rights reserved.
3
3
 
4
4
  cppcheck-wheel: Package cppcheck as a python wheel.
5
5
  """
6
6
 
7
-
8
7
  from __future__ import annotations
9
8
 
10
9
  import argparse
@@ -1,6 +1,7 @@
1
1
  """
2
2
  Use "python -m cppcheck" to make the package executable.
3
3
  """
4
+
4
5
  from __future__ import annotations
5
6
 
6
7
  from cppcheck import cppcheck
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.4.2'
16
- __version_tuple__ = version_tuple = (1, 4, 2)
15
+ __version__ = version = '1.4.4'
16
+ __version_tuple__ = version_tuple = (1, 4, 4)
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
3
3
  "name": "cppcheck-wheel",
4
4
  "description": "Package cppcheck as a python wheel.",
5
- "builtin-baseline": "7adc2e4d49e8d0efc07a369079faa6bc3dbb90f3",
5
+ "builtin-baseline": "cd124b84feb0c02a24a2d90981e8358fdee0e077",
6
6
  "homepage": "https://github.com/msclock/cppcheck-wheel",
7
7
  "dependencies": [
8
8
  {
@@ -27,7 +27,7 @@
27
27
  "registries": [
28
28
  {
29
29
  "kind": "git",
30
- "baseline": "60a98c312d8be8aa0013a69bb5158788702d8700",
30
+ "baseline": "9d739d71af31a73a6000fb1e64b7cca54a962439",
31
31
  "repository": "https://github.com/msclock/cmake-registry",
32
32
  "packages": [
33
33
  "cmake-modules",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes