cppcheck 1.4.0__tar.gz → 1.4.1__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 (76) hide show
  1. cppcheck-1.4.1/.github/codeql-config.yml +6 -0
  2. {cppcheck-1.4.0 → cppcheck-1.4.1}/.github/workflows/cd.yml +13 -16
  3. {cppcheck-1.4.0 → cppcheck-1.4.1}/.github/workflows/ci.yml +7 -7
  4. {cppcheck-1.4.0 → cppcheck-1.4.1}/.github/workflows/codeql.yml +7 -3
  5. {cppcheck-1.4.0 → cppcheck-1.4.1}/.github/workflows/semantic-release.yml +2 -2
  6. {cppcheck-1.4.0 → cppcheck-1.4.1}/.renovaterc.json +11 -4
  7. {cppcheck-1.4.0 → cppcheck-1.4.1}/CMakeLists.txt +3 -0
  8. {cppcheck-1.4.0 → cppcheck-1.4.1}/PKG-INFO +2 -4
  9. {cppcheck-1.4.0 → cppcheck-1.4.1}/README.md +1 -3
  10. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg_bootstrap.cmake +26 -12
  11. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg_load_triplet.cmake +1 -1
  12. {cppcheck-1.4.0 → cppcheck-1.4.1}/pyproject.toml +1 -0
  13. {cppcheck-1.4.0 → cppcheck-1.4.1}/src/cppcheck/_version.py +2 -2
  14. {cppcheck-1.4.0 → cppcheck-1.4.1}/vcpkg.json +2 -2
  15. cppcheck-1.4.0/.github/codeql-config.yml +0 -11
  16. {cppcheck-1.4.0 → cppcheck-1.4.1}/.copier-answers.yml +0 -0
  17. {cppcheck-1.4.0 → cppcheck-1.4.1}/.devcontainer/devcontainer.json +0 -0
  18. {cppcheck-1.4.0 → cppcheck-1.4.1}/.editorconfig +0 -0
  19. {cppcheck-1.4.0 → cppcheck-1.4.1}/.gitattributes +0 -0
  20. {cppcheck-1.4.0 → cppcheck-1.4.1}/.github/codecov.yml +0 -0
  21. {cppcheck-1.4.0 → cppcheck-1.4.1}/.github/matchers/pylint.json +0 -0
  22. {cppcheck-1.4.0 → cppcheck-1.4.1}/.github/workflows/renovate.yml +0 -0
  23. {cppcheck-1.4.0 → cppcheck-1.4.1}/.gitignore +0 -0
  24. {cppcheck-1.4.0 → cppcheck-1.4.1}/.markdownlint.yaml +0 -0
  25. {cppcheck-1.4.0 → cppcheck-1.4.1}/.pre-commit-config.yaml +0 -0
  26. {cppcheck-1.4.0 → cppcheck-1.4.1}/.releaserc.js +0 -0
  27. {cppcheck-1.4.0 → cppcheck-1.4.1}/.vscode/launch.json +0 -0
  28. {cppcheck-1.4.0 → cppcheck-1.4.1}/.vscode/settings.json +0 -0
  29. {cppcheck-1.4.0 → cppcheck-1.4.1}/CMakePresets.json +0 -0
  30. {cppcheck-1.4.0 → cppcheck-1.4.1}/LICENSE +0 -0
  31. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/arch/x64.json +0 -0
  32. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/base.json +0 -0
  33. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/compilers/gcc.json +0 -0
  34. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/compilers/llvm.json +0 -0
  35. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/compilers/mingw.json +0 -0
  36. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/compilers/msvc.json +0 -0
  37. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/default.json +0 -0
  38. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/generators/ninja.json +0 -0
  39. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/os/darwin.json +0 -0
  40. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/os/linux.json +0 -0
  41. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/os/windows.json +0 -0
  42. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/toolchains/vcpkg.json +0 -0
  43. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/triplets/x64-linux.json +0 -0
  44. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/triplets/x64-mingw-dynamic.json +0 -0
  45. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/triplets/x64-mingw-static.json +0 -0
  46. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/triplets/x64-osx.json +0 -0
  47. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/triplets/x64-windows.json +0 -0
  48. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/x64-linux-gcc.json +0 -0
  49. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/x64-linux-llvm.json +0 -0
  50. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/x64-mingw-dynamic-windows-mingw.json +0 -0
  51. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/x64-mingw-static-windows-mingw.json +0 -0
  52. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/x64-osx-gcc.json +0 -0
  53. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/x64-osx-llvm.json +0 -0
  54. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/x64-windows-llvm.json +0 -0
  55. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/presets/x64-windows-msvc.json +0 -0
  56. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg-config.cmake +0 -0
  57. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg_chainload_toolchain.cmake +0 -0
  58. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg_configure.cmake +0 -0
  59. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg_export_mode.cmake +0 -0
  60. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake +0 -0
  61. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/ports/README.md +0 -0
  62. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/ports/cppcheck/portfile.cmake +0 -0
  63. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/ports/cppcheck/vcpkg.json +0 -0
  64. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/scripts/build_type.cmake +0 -0
  65. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/scripts/toolchains/README.md +0 -0
  66. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/triplets/README.md +0 -0
  67. {cppcheck-1.4.0 → cppcheck-1.4.1}/cmake/vcpkg/vcpkg.toolchain.cmake +0 -0
  68. {cppcheck-1.4.0 → cppcheck-1.4.1}/docs/api/index.md +0 -0
  69. {cppcheck-1.4.0 → cppcheck-1.4.1}/docs/conf.py +0 -0
  70. {cppcheck-1.4.0 → cppcheck-1.4.1}/docs/index.md +0 -0
  71. {cppcheck-1.4.0 → cppcheck-1.4.1}/noxfile.py +0 -0
  72. {cppcheck-1.4.0 → cppcheck-1.4.1}/src/cppcheck/__init__.py +0 -0
  73. {cppcheck-1.4.0 → cppcheck-1.4.1}/src/cppcheck/__main__.py +0 -0
  74. {cppcheck-1.4.0 → cppcheck-1.4.1}/src/cppcheck/_version.pyi +0 -0
  75. {cppcheck-1.4.0 → cppcheck-1.4.1}/src/cppcheck/py.typed +0 -0
  76. {cppcheck-1.4.0 → cppcheck-1.4.1}/tests/test_package.py +0 -0
@@ -0,0 +1,6 @@
1
+ name: CodeQL config
2
+
3
+ # https://codeql.github.com/codeql-query-help/
4
+ query-filters:
5
+ - exclude:
6
+ id: py/commented-out-code
@@ -18,14 +18,14 @@ jobs:
18
18
  name: Build SDist
19
19
  runs-on: ubuntu-22.04
20
20
  steps:
21
- - uses: actions/checkout@v4
21
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
22
22
  with:
23
23
  fetch-depth: 0
24
24
 
25
25
  - name: Build SDist
26
26
  run: pipx run build --sdist
27
27
 
28
- - uses: actions/upload-artifact@v4
28
+ - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
29
29
  with:
30
30
  name: cibw-sdist
31
31
  path: dist/*.tar.gz
@@ -36,10 +36,10 @@ jobs:
36
36
 
37
37
  strategy:
38
38
  matrix:
39
- arch: [aarch64, ppc64le, s390x, x86_64, i686]
39
+ arch: [aarch64, ppc64le, s390x, armv7l, x86_64, i686]
40
40
  build: [manylinux, musllinux]
41
41
  os: [ubuntu-latest]
42
- use_qemu: [aarch64 ppc64le s390x]
42
+ use_qemu: [aarch64 ppc64le s390x armv7l]
43
43
  include:
44
44
  - os: windows-2019
45
45
  arch: AMD64
@@ -56,23 +56,20 @@ jobs:
56
56
  - os: macos-latest
57
57
  arch: arm64
58
58
  build: macos
59
- - os: ubuntu-latest
60
- arch: armv7l
61
- build: musllinux
62
- use_qemu: armv7l
59
+
63
60
  steps:
64
- - uses: actions/checkout@v4
61
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
65
62
  with:
66
63
  fetch-depth: 0
67
64
 
68
65
  - name: Set up msvc on Windows
69
66
  if: runner.os == 'Windows'
70
- uses: ilammy/msvc-dev-cmd@v1
67
+ uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1
71
68
  with:
72
69
  arch: ${{ matrix.arch }}
73
70
 
74
71
  - name: Set up QEMU
75
- uses: docker/setup-qemu-action@v3.2.0
72
+ uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
76
73
  if: runner.os == 'Linux' && contains(matrix.use_qemu, matrix.arch)
77
74
 
78
75
  - name: Check architecture and set environment variable
@@ -88,13 +85,13 @@ jobs:
88
85
  fi
89
86
 
90
87
  - name: Build wheels
91
- uses: pypa/cibuildwheel@v2.21.3
88
+ uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0
92
89
  env:
93
90
  CIBW_ARCHS: ${{ matrix.arch }}
94
91
  CIBW_BUILD: cp311-${{ matrix.build }}*
95
92
 
96
93
  - name: Upload wheels
97
- uses: actions/upload-artifact@v4
94
+ uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
98
95
  with:
99
96
  name: cibw-${{ runner.os }}-${{ matrix.build }}-${{ matrix.arch }}
100
97
  path: wheelhouse/*.whl
@@ -108,7 +105,7 @@ jobs:
108
105
  if: github.event_name == 'release' && github.event.action == 'published'
109
106
 
110
107
  steps:
111
- - uses: actions/download-artifact@v4
108
+ - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
112
109
  with:
113
110
  pattern: cibw-*
114
111
  path: dist
@@ -130,7 +127,7 @@ jobs:
130
127
  timeout-minutes: 15
131
128
 
132
129
  steps:
133
- - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
130
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
134
131
  with:
135
132
  token: ${{ secrets.GITHUB_TOKEN }}
136
133
  ref: ${{ github.head_ref }}
@@ -145,7 +142,7 @@ jobs:
145
142
  key: cd-pages-${{ hashFiles('vcpkg.json') }}
146
143
  restore-keys: cd-pages-${{ hashFiles('vcpkg.json') }}
147
144
 
148
- - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
145
+ - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
149
146
  with:
150
147
  python-version: 3.x
151
148
 
@@ -23,11 +23,11 @@ jobs:
23
23
  pre-commit:
24
24
  runs-on: ubuntu-22.04
25
25
  steps:
26
- - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
26
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
27
27
  with:
28
28
  fetch-depth: 0
29
29
 
30
- - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
30
+ - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
31
31
  with:
32
32
  python-version: 3.x
33
33
 
@@ -58,7 +58,7 @@ jobs:
58
58
  name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
59
59
 
60
60
  steps:
61
- - uses: actions/checkout@v4
61
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
62
62
  with:
63
63
  fetch-depth: 0
64
64
 
@@ -72,7 +72,7 @@ jobs:
72
72
  key: ${{ matrix.python-version }}-${{ matrix.runs-on }}-${{ hashFiles('vcpkg.json') }}
73
73
  restore-keys: ${{ matrix.python-version }}-${{ matrix.runs-on }}-${{ hashFiles('vcpkg.json') }}
74
74
 
75
- - uses: actions/setup-python@v5
75
+ - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
76
76
  with:
77
77
  python-version: ${{ matrix.python-version }}
78
78
 
@@ -85,7 +85,7 @@ jobs:
85
85
  --durations=20
86
86
 
87
87
  - name: Upload coverage report
88
- uses: codecov/codecov-action@v3.1.4
88
+ uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3.1.6
89
89
 
90
90
  check-docs:
91
91
  runs-on: ubuntu-22.04
@@ -93,7 +93,7 @@ jobs:
93
93
  timeout-minutes: 15
94
94
 
95
95
  steps:
96
- - uses: actions/checkout@v4
96
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
97
97
  with:
98
98
  fetch-depth: 0
99
99
 
@@ -107,7 +107,7 @@ jobs:
107
107
  key: docs-${{ hashFiles('vcpkg.json') }}
108
108
  restore-keys: docs-${{ hashFiles('vcpkg.json') }}
109
109
 
110
- - uses: actions/setup-python@v5
110
+ - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
111
111
  with:
112
112
  python-version: 3.x
113
113
 
@@ -45,12 +45,12 @@ jobs:
45
45
 
46
46
  steps:
47
47
  - name: Checkout repository
48
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
48
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
49
49
  with:
50
50
  fetch-depth: 0
51
51
 
52
52
  - name: Initialize CodeQL
53
- uses: github/codeql-action/init@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
53
+ uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
54
54
  with:
55
55
  languages: ${{ matrix.language }}
56
56
  config-file: ./.github/codeql-config.yml
@@ -64,8 +64,12 @@ jobs:
64
64
  key: codeql-${{ hashFiles('vcpkg.json') }}
65
65
  restore-keys: codeql-${{ hashFiles('vcpkg.json') }}
66
66
 
67
+ - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
68
+ with:
69
+ python-version: 3.x
70
+
67
71
  - name: Build
68
72
  run: python -m pip install .[test]
69
73
 
70
74
  - name: Perform CodeQL Analysis
71
- uses: github/codeql-action/analyze@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
75
+ uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
@@ -40,13 +40,13 @@ jobs:
40
40
  echo "# :warning: GITHUB_TOKEN is used" >> $GITHUB_STEP_SUMMARY
41
41
  echo "The GITHUB_TOKEN is used instead of a bot token or PAT that will not emit the released publish event for triggering a released workflow." >> $GITHUB_STEP_SUMMARY
42
42
 
43
- - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
43
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
44
44
  with:
45
45
  fetch-depth: 0
46
46
  token: ${{ steps.bot_token.outputs.token || secrets.PAT || secrets.GITHUB_TOKEN }}
47
47
 
48
48
  - name: Setup Node.js
49
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
49
+ uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
50
50
  with:
51
51
  node-version: lts/*
52
52
 
@@ -9,10 +9,18 @@
9
9
  "automergeStrategy": "merge-commit",
10
10
  "platformAutomerge": true,
11
11
  "packageRules": [
12
+ {
13
+ "matchUpdateTypes": [
14
+ "minor",
15
+ "patch",
16
+ "pin",
17
+ "digest"
18
+ ],
19
+ "automerge": true
20
+ },
12
21
  {
13
22
  "description": "Group renovate docker tag and pre-commit-hooks tag",
14
23
  "groupName": "renovate group",
15
- "extends": ["schedule:automergeMonthly"],
16
24
  "addLabels": [
17
25
  "auto-approval",
18
26
  "renovate"
@@ -21,21 +29,20 @@
21
29
  "docker",
22
30
  "github-tags"
23
31
  ],
24
- "automerge": true,
25
32
  "matchDepNames": [
26
33
  "ghcr.io/renovatebot/renovate",
27
34
  "renovatebot/pre-commit-hooks"
28
35
  ]
29
36
  },
30
37
  {
31
- "commitMessageTopic": "serious-scaffold-cpp",
38
+ "commitMessageTopic": "serious-scaffold",
32
39
  "matchDepTypes": [
33
40
  "copier-template"
34
41
  ],
35
42
  "postUpgradeTasks": {
36
43
  "commands": [
37
44
  "git stash",
38
- "pip install copier==9.3.1",
45
+ "pip install copier==9.4.1",
39
46
  "copier update --defaults --vcs-ref {{{newVersion}}}"
40
47
  ]
41
48
  },
@@ -26,6 +26,9 @@ set(CMAKE_CXX_EXTENSIONS
26
26
  OFF
27
27
  CACHE BOOL "C++ extensions")
28
28
 
29
+ find_package(cmake-modules REQUIRED)
30
+ include(cmake-modules/ProjectDefault)
31
+
29
32
  find_program(cppcheck NAMES "cppcheck" "cppcheck.exe")
30
33
 
31
34
  install(PROGRAMS ${cppcheck} DESTINATION ${SKBUILD_PROJECT_NAME}/Cppcheck)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cppcheck
3
- Version: 1.4.0
3
+ Version: 1.4.1
4
4
  Summary: Package cppcheck as a python wheel.
5
5
  Author-Email: msclock <msclock@126.com>
6
6
  License: Apache-2.0
@@ -49,7 +49,7 @@ Package cppcheck as a python wheel.
49
49
 
50
50
  [![Documentation](https://img.shields.io/badge/Documentation-sphinx-blue)](https://msclock.github.io/cppcheck-wheel)
51
51
  [![License](https://img.shields.io/github/license/msclock/cppcheck-wheel)](https://github.com/msclock/cppcheck-wheel/blob/master/LICENSE)
52
- [![SS Cpp](https://img.shields.io/badge/Serious%20Scaffold-pybind11-blue)](https://github.com/serious-scaffold/ss-pybind11)
52
+ [![SS Pybind11](https://img.shields.io/badge/Serious%20Scaffold-pybind11-blue)](https://github.com/serious-scaffold/ss-pybind11)
53
53
 
54
54
  [![CI](https://github.com/msclock/cppcheck-wheel/actions/workflows/ci.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/ci.yml)
55
55
  [![CD](https://github.com/msclock/cppcheck-wheel/actions/workflows/cd.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/cd.yml)
@@ -59,11 +59,9 @@ Package cppcheck as a python wheel.
59
59
  [![Release](https://img.shields.io/github/v/release/msclock/cppcheck-wheel)](https://github.com/msclock/cppcheck-wheel/releases)
60
60
 
61
61
  [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
62
- [![clang-format](https://img.shields.io/badge/clang--format-enabled-blue)](https://github.com/pre-commit/mirrors-clang-format)
63
62
  [![cmake-format](https://img.shields.io/badge/cmake--format-enabled-blue)](https://github.com/cheshirekow/cmake-format-precommit)
64
63
  [![codespell](https://img.shields.io/badge/codespell-enabled-blue)](https://github.com/codespell-project/codespell)
65
64
  [![markdownlint](https://img.shields.io/badge/markdownlint-enabled-blue)](https://github.com/igorshubovych/markdownlint-cli)
66
- [![shellcheck](https://img.shields.io/badge/shellcheck-enabled-blue)](https://github.com/shellcheck-py/shellcheck-py)
67
65
 
68
66
  <!-- writes more things here -->
69
67
 
@@ -6,7 +6,7 @@ Package cppcheck as a python wheel.
6
6
 
7
7
  [![Documentation](https://img.shields.io/badge/Documentation-sphinx-blue)](https://msclock.github.io/cppcheck-wheel)
8
8
  [![License](https://img.shields.io/github/license/msclock/cppcheck-wheel)](https://github.com/msclock/cppcheck-wheel/blob/master/LICENSE)
9
- [![SS Cpp](https://img.shields.io/badge/Serious%20Scaffold-pybind11-blue)](https://github.com/serious-scaffold/ss-pybind11)
9
+ [![SS Pybind11](https://img.shields.io/badge/Serious%20Scaffold-pybind11-blue)](https://github.com/serious-scaffold/ss-pybind11)
10
10
 
11
11
  [![CI](https://github.com/msclock/cppcheck-wheel/actions/workflows/ci.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/ci.yml)
12
12
  [![CD](https://github.com/msclock/cppcheck-wheel/actions/workflows/cd.yml/badge.svg)](https://github.com/msclock/cppcheck-wheel/actions/workflows/cd.yml)
@@ -16,11 +16,9 @@ Package cppcheck as a python wheel.
16
16
  [![Release](https://img.shields.io/github/v/release/msclock/cppcheck-wheel)](https://github.com/msclock/cppcheck-wheel/releases)
17
17
 
18
18
  [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
19
- [![clang-format](https://img.shields.io/badge/clang--format-enabled-blue)](https://github.com/pre-commit/mirrors-clang-format)
20
19
  [![cmake-format](https://img.shields.io/badge/cmake--format-enabled-blue)](https://github.com/cheshirekow/cmake-format-precommit)
21
20
  [![codespell](https://img.shields.io/badge/codespell-enabled-blue)](https://github.com/codespell-project/codespell)
22
21
  [![markdownlint](https://img.shields.io/badge/markdownlint-enabled-blue)](https://github.com/igorshubovych/markdownlint-cli)
23
- [![shellcheck](https://img.shields.io/badge/shellcheck-enabled-blue)](https://github.com/shellcheck-py/shellcheck-py)
24
22
 
25
23
  <!-- writes more things here -->
26
24
 
@@ -22,17 +22,14 @@ endfunction()
22
22
  function(_vcpkg_checkout vcpkg_root vcpkg_ref)
23
23
  message(STATUS "vcpkg checkout to ${vcpkg_ref}")
24
24
 
25
- if(EXISTS "${vcpkg_root}/.git/shallow")
26
- message(WARNING "vcpkg is shallow, unshallowing...")
27
- execute_process(
28
- COMMAND ${GIT_EXECUTABLE} fetch --unshallow
29
- WORKING_DIRECTORY ${vcpkg_root}
30
- RESULT_VARIABLE result)
25
+ execute_process(
26
+ COMMAND ${GIT_EXECUTABLE} fetch origin ${vcpkg_ref}
27
+ WORKING_DIRECTORY ${vcpkg_root}
28
+ RESULT_VARIABLE result)
31
29
 
32
- if(NOT result EQUAL "0")
33
- message(
34
- FATAL_ERROR "${GIT_EXECUTABLE} fetch --unshallow failed with ${result}")
35
- endif()
30
+ if(NOT result EQUAL "0")
31
+ message(
32
+ FATAL_ERROR "${GIT_EXECUTABLE} fetch ${vcpkg_ref} failed with ${result}")
36
33
  endif()
37
34
 
38
35
  execute_process(
@@ -50,7 +47,7 @@ endfunction()
50
47
  # clone
51
48
  function(_vcpkg_clone vcpkg_root vcpkg_repo vcpkg_ref)
52
49
  execute_process(
53
- COMMAND ${GIT_EXECUTABLE} clone ${vcpkg_repo} ${vcpkg_root}
50
+ COMMAND ${GIT_EXECUTABLE} clone ${vcpkg_repo} ${vcpkg_root} --depth=1
54
51
  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
55
52
  RESULT_VARIABLE result)
56
53
 
@@ -78,7 +75,24 @@ function(_vcpkg_tool_bootstrap vcpkg_root)
78
75
  RESULT_VARIABLE result)
79
76
 
80
77
  if(NOT result EQUAL "0")
81
- message(FATAL_ERROR "${bootstrap_cmd} failed with ${result}")
78
+ if(CMAKE_HOST_UNIX)
79
+ message(STATUS "Retry to build vcpkg from source...")
80
+ set(bootstrap_impl "${vcpkg_root}/scripts/bootstrap.sh")
81
+ file(READ "${bootstrap_impl}" file_contents)
82
+ string(REPLACE [[elif [ "$ARCH" = "x86_64" ]; then]]
83
+ [[elif [ "$ARCH" = "" ]; then]] file_contents
84
+ "${file_contents}")
85
+ file(WRITE "${bootstrap_impl}" "${file_contents}")
86
+
87
+ execute_process(
88
+ COMMAND ${bootstrap_cmd} -disableMetrics
89
+ WORKING_DIRECTORY ${vcpkg_root}
90
+ RESULT_VARIABLE result)
91
+ endif()
92
+
93
+ if(NOT result EQUAL "0")
94
+ message(FATAL_ERROR "${bootstrap_cmd} failed with ${result}")
95
+ endif()
82
96
  endif()
83
97
  endfunction()
84
98
 
@@ -185,7 +185,7 @@ endfunction()
185
185
  macro(_vcpkg_load_triplet)
186
186
  if(NOT DEFINED VCPKG_TARGET_TRIPLET)
187
187
  message(
188
- WARNING
188
+ STATUS
189
189
  "VCPKG_TARGET_TRIPLET is not defined, detecting triplet from the system"
190
190
  )
191
191
 
@@ -83,6 +83,7 @@ test-skip = ["*-win_arm64", "*-macosx_universal2:arm64"]
83
83
  [tool.cibuildwheel.linux]
84
84
  before-build =[
85
85
  'yum install zip -y || apk add zip || true',
86
+ 'apt update && apt install zip -y || true',
86
87
  'pip install cmake ninja',
87
88
  'cmake --version', 'git --version', 'ninja --version',
88
89
  ]
@@ -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.0'
16
- __version_tuple__ = version_tuple = (1, 4, 0)
15
+ __version__ = version = '1.4.1'
16
+ __version_tuple__ = version_tuple = (1, 4, 1)
@@ -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": "5e5d0e1cd7785623065e77eff011afdeec1a3574",
6
6
  "homepage": "https://github.com/msclock/cppcheck-wheel",
7
7
  "dependencies": [
8
8
  {
@@ -32,7 +32,7 @@
32
32
  "registries": [
33
33
  {
34
34
  "kind": "git",
35
- "baseline": "06dc89dbb62a70ff9725f23da1cc301e1adf84b1",
35
+ "baseline": "94eec2ad9432c08ee1a1adfce536e5585d1355ba",
36
36
  "repository": "https://github.com/msclock/cmake-registry",
37
37
  "packages": [
38
38
  "cmake-modules",
@@ -1,11 +0,0 @@
1
- name: CodeQL config
2
-
3
- query-filters:
4
- - exclude:
5
- id: cpp/commented-out-code
6
- - exclude:
7
- id: cpp/include-non-header
8
- - exclude:
9
- id: cpp/loop-variable-changed
10
- - exclude:
11
- id: cpp/useless-expression
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
File without changes
File without changes