cppcheck 1.1.1__tar.gz → 1.2.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.
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.github/workflows/cd.yml +21 -55
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.pre-commit-config.yaml +1 -8
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.vscode/settings.json +0 -6
- {cppcheck-1.1.1 → cppcheck-1.2.1}/PKG-INFO +1 -1
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/ports/cppcheck/portfile.cmake +7 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/src/cppcheck/__init__.py +3 -6
- {cppcheck-1.1.1 → cppcheck-1.2.1}/src/cppcheck/_version.py +2 -2
- cppcheck-1.2.1/tests/test_package.py +19 -0
- cppcheck-1.1.1/tests/test_package.py +0 -14
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.clang-format +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.clang-tidy +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.copier-answers.yml +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.cppcheck-suppressions.txt +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.devcontainer/devcontainer.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.editorconfig +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.gitattributes +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.github/codecov.yml +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.github/codeql-config.yml +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.github/matchers/pylint.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.github/workflows/ci.yml +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.github/workflows/codeql.yml +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.github/workflows/renovate.yml +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.github/workflows/semantic-release.yml +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.gitignore +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.markdownlint.yaml +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.releaserc.js +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.renovaterc.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/.vscode/launch.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/CMakeLists.txt +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/CMakePresets.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/LICENSE +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/README.md +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/ConfigureWarningsAndHardening.cmake +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/arch/x64.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/base.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/compilers/gcc.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/compilers/llvm.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/compilers/mingw.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/compilers/msvc.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/default.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/generators/ninja.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/os/darwin.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/os/linux.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/os/windows.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/toolchains/vcpkg.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/triplets/x64-linux.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/triplets/x64-mingw-dynamic.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/triplets/x64-mingw-static.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/triplets/x64-osx.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/triplets/x64-windows.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/x64-linux-gcc.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/x64-linux-llvm.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/x64-mingw-dynamic-windows-mingw.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/x64-mingw-static-windows-mingw.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/x64-osx-gcc.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/x64-osx-llvm.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/x64-windows-llvm.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/presets/x64-windows-msvc.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/bootstrap/vcpkg-config.cmake +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/bootstrap/vcpkg_bootstrap.cmake +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/bootstrap/vcpkg_chainload_toolchain.cmake +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/bootstrap/vcpkg_configure.cmake +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/bootstrap/vcpkg_export_mode.cmake +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/bootstrap/vcpkg_load_triplet.cmake +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/ports/README.md +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/ports/cppcheck/vcpkg.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/ports/python3/portfile.cmake +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/ports/python3/vcpkg.json +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/scripts/build_type.cmake +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/scripts/toolchains/README.md +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/triplets/README.md +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/vcpkg.toolchain.cmake +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/docs/api/index.md +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/docs/conf.py +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/docs/index.md +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/noxfile.py +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/pyproject.toml +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/src/CMakeLists.txt +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/src/cppcheck/__main__.py +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/src/cppcheck/_version.pyi +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/src/cppcheck/py.typed +0 -0
- {cppcheck-1.1.1 → cppcheck-1.2.1}/vcpkg.json +0 -0
|
@@ -31,57 +31,37 @@ jobs:
|
|
|
31
31
|
path: dist/*.tar.gz
|
|
32
32
|
|
|
33
33
|
build_wheels:
|
|
34
|
-
name: Build ${{ matrix.
|
|
34
|
+
name: Build ${{ matrix.build }}-${{ matrix.arch }} wheels on ${{ matrix.os }}
|
|
35
35
|
runs-on: ${{ matrix.os }}
|
|
36
36
|
|
|
37
37
|
strategy:
|
|
38
38
|
matrix:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
platform: [manylinux, musllinux]
|
|
39
|
+
arch: [aarch64, ppc64le, s390x, x86_64, i686]
|
|
40
|
+
build: [manylinux, musllinux]
|
|
42
41
|
os: [ubuntu-latest]
|
|
43
|
-
|
|
44
|
-
exclude:
|
|
45
|
-
# conditionally skip jobs requiring emulation:
|
|
46
|
-
- os: ubuntu-latest
|
|
47
|
-
emulation: ''
|
|
42
|
+
use_qemu: [aarch64 ppc64le s390x]
|
|
48
43
|
include:
|
|
49
|
-
# linux
|
|
50
|
-
- os: ubuntu-latest
|
|
51
|
-
platform: manylinux
|
|
52
|
-
arch: x86_64
|
|
53
|
-
- os: ubuntu-latest
|
|
54
|
-
platform: manylinux
|
|
55
|
-
arch: i686
|
|
56
|
-
- os: ubuntu-latest
|
|
57
|
-
platform: musllinux
|
|
58
|
-
arch: x86_64
|
|
59
|
-
- os: ubuntu-latest
|
|
60
|
-
platform: musllinux
|
|
61
|
-
arch: i686
|
|
62
|
-
# windows
|
|
63
44
|
- os: windows-2019
|
|
64
|
-
platform: win
|
|
65
45
|
arch: AMD64
|
|
46
|
+
build: win
|
|
66
47
|
- os: windows-2019
|
|
67
|
-
platform: win
|
|
68
48
|
arch: x86
|
|
69
|
-
|
|
49
|
+
build: win
|
|
70
50
|
- os: macos-13
|
|
71
|
-
platform: macos
|
|
72
51
|
arch: x86_64
|
|
52
|
+
build: macos
|
|
73
53
|
- os: macos-latest
|
|
74
|
-
platform: macos
|
|
75
54
|
arch: arm64
|
|
55
|
+
build: macos
|
|
56
|
+
- os: ubuntu-latest
|
|
57
|
+
arch: armv7l
|
|
58
|
+
build: musllinux_
|
|
59
|
+
use_qemu: armv7l
|
|
76
60
|
steps:
|
|
77
61
|
- uses: actions/checkout@v4
|
|
78
62
|
with:
|
|
79
63
|
fetch-depth: 0
|
|
80
64
|
|
|
81
|
-
- name: Support long paths on Windows
|
|
82
|
-
if: runner.os == 'Windows'
|
|
83
|
-
run: git config --system core.longpaths true
|
|
84
|
-
|
|
85
65
|
- name: Set up msvc on Windows
|
|
86
66
|
if: runner.os == 'Windows'
|
|
87
67
|
uses: ilammy/msvc-dev-cmd@v1
|
|
@@ -90,46 +70,32 @@ jobs:
|
|
|
90
70
|
|
|
91
71
|
- name: Set up QEMU
|
|
92
72
|
uses: docker/setup-qemu-action@v3.2.0
|
|
93
|
-
if: runner.os == 'Linux' && matrix.
|
|
73
|
+
if: runner.os == 'Linux' && contains(matrix.use_qemu, matrix.arch)
|
|
94
74
|
|
|
95
75
|
- name: Check architecture and set environment variable
|
|
96
76
|
if: runner.os == 'Linux'
|
|
97
77
|
run: |
|
|
98
78
|
echo "Checking architecture..."
|
|
99
|
-
if [[ ${{ matrix.arch }} ==
|
|
100
|
-
${{ matrix.arch }} ==
|
|
101
|
-
${{ matrix.arch }} ==
|
|
102
|
-
|
|
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"
|
|
103
84
|
echo "CIBW_ENVIRONMENT=VCPKG_FORCE_SYSTEM_BINARIES=1" >> $GITHUB_ENV
|
|
104
85
|
fi
|
|
105
86
|
|
|
106
87
|
- name: Build wheels
|
|
107
|
-
uses: pypa/cibuildwheel@v2.
|
|
88
|
+
uses: pypa/cibuildwheel@v2.21.3
|
|
108
89
|
env:
|
|
109
90
|
CIBW_ARCHS: ${{ matrix.arch }}
|
|
110
|
-
|
|
111
|
-
CIBW_BUILD: cp311-${{ matrix.platform }}*
|
|
91
|
+
CIBW_BUILD: cp311-${{ matrix.build }}*
|
|
112
92
|
|
|
113
93
|
- name: Upload wheels
|
|
114
94
|
uses: actions/upload-artifact@v4
|
|
115
95
|
with:
|
|
116
|
-
name: cibw-${{ runner.os }}-${{ matrix.
|
|
96
|
+
name: cibw-${{ runner.os }}-${{ matrix.build }}-${{ matrix.arch }}
|
|
117
97
|
path: wheelhouse/*.whl
|
|
118
98
|
|
|
119
|
-
|
|
120
|
-
check_dist:
|
|
121
|
-
name: Check dist
|
|
122
|
-
needs: [build_wheels, build_sdist]
|
|
123
|
-
runs-on: ubuntu-22.04
|
|
124
|
-
steps:
|
|
125
|
-
- uses: actions/download-artifact@v4
|
|
126
|
-
with:
|
|
127
|
-
pattern: cibw-*
|
|
128
|
-
path: dist
|
|
129
|
-
merge-multiple: true
|
|
130
|
-
|
|
131
|
-
- run: pipx run twine check --strict dist/*
|
|
132
|
-
|
|
133
99
|
upload_all:
|
|
134
100
|
needs: [build_wheels, build_sdist]
|
|
135
101
|
environment: pypi
|
|
@@ -37,14 +37,6 @@ repos:
|
|
|
37
37
|
- id: requirements-txt-fixer
|
|
38
38
|
- id: trailing-whitespace
|
|
39
39
|
|
|
40
|
-
# Check RST
|
|
41
|
-
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
42
|
-
rev: v1.10.0
|
|
43
|
-
hooks:
|
|
44
|
-
- id: rst-backticks
|
|
45
|
-
- id: rst-directive-colons
|
|
46
|
-
- id: rst-inline-touching-normal
|
|
47
|
-
|
|
48
40
|
# Strong lint from ruff
|
|
49
41
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
50
42
|
rev: v0.1.14
|
|
@@ -62,6 +54,7 @@ repos:
|
|
|
62
54
|
args: []
|
|
63
55
|
additional_dependencies:
|
|
64
56
|
- pytest
|
|
57
|
+
- importlib_metadata
|
|
65
58
|
|
|
66
59
|
# Check yaml
|
|
67
60
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
|
@@ -4,12 +4,6 @@
|
|
|
4
4
|
"python.testing.pytestEnabled": true,
|
|
5
5
|
"cmake.useCMakePresets": "always",
|
|
6
6
|
"cmake.options.statusBarVisibility": "compact",
|
|
7
|
-
"files.exclude": {
|
|
8
|
-
"**/.clangd/**": true
|
|
9
|
-
},
|
|
10
|
-
"files.watcherExclude": {
|
|
11
|
-
"**/.clangd/**": true
|
|
12
|
-
},
|
|
13
7
|
"files.associations": {
|
|
14
8
|
"iosfwd": "cpp",
|
|
15
9
|
"type_traits": "cpp",
|
|
@@ -15,6 +15,13 @@ vcpkg_replace_string("${SOURCE_PATH}/cmake/compilerDefinitions.cmake"
|
|
|
15
15
|
[[]]
|
|
16
16
|
)
|
|
17
17
|
|
|
18
|
+
if(VCPKG_TARGET_IS_LINUX)
|
|
19
|
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
20
|
+
message(STATUS "Disable automatic elf rpath fixup for ${VCPKG_TARGET_ARCHITECTURE} linux")
|
|
21
|
+
set(VCPKG_FIXUP_ELF_RPATH OFF)
|
|
22
|
+
endif()
|
|
23
|
+
endif()
|
|
24
|
+
|
|
18
25
|
vcpkg_check_features(
|
|
19
26
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
20
27
|
FEATURES
|
|
@@ -15,15 +15,12 @@ import sys
|
|
|
15
15
|
from pathlib import Path
|
|
16
16
|
from typing import Iterable
|
|
17
17
|
|
|
18
|
+
from importlib_metadata import distribution
|
|
19
|
+
|
|
18
20
|
from ._version import version as __version__
|
|
19
21
|
|
|
20
22
|
__all__ = ["__version__", "cppcheck"]
|
|
21
23
|
|
|
22
|
-
if sys.version_info < (3, 8):
|
|
23
|
-
from importlib_metadata import distribution
|
|
24
|
-
else:
|
|
25
|
-
from importlib.metadata import distribution
|
|
26
|
-
|
|
27
24
|
|
|
28
25
|
@functools.lru_cache(maxsize=None)
|
|
29
26
|
def _get_cppcheck() -> Path:
|
|
@@ -31,7 +28,7 @@ def _get_cppcheck() -> Path:
|
|
|
31
28
|
assert package_files is not None, f"There must exist {__package__} files"
|
|
32
29
|
for file in package_files:
|
|
33
30
|
if str(file).startswith(f"{__package__}/Cppcheck"):
|
|
34
|
-
resolved_file = Path(file.locate()).resolve(strict=True)
|
|
31
|
+
resolved_file = Path(str(file.locate())).resolve(strict=True)
|
|
35
32
|
cppcheck_path = resolved_file.parents[1]
|
|
36
33
|
if cppcheck_path.exists():
|
|
37
34
|
return cppcheck_path
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import subprocess
|
|
4
|
+
|
|
5
|
+
import pytest
|
|
6
|
+
from importlib_metadata import version
|
|
7
|
+
|
|
8
|
+
import cppcheck as m
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def test_version():
|
|
12
|
+
assert version("cppcheck") == m.__version__
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@pytest.mark.parametrize("testcase", [("--version", f"{m.__version__}")])
|
|
16
|
+
def test_cppcheck(testcase):
|
|
17
|
+
test_input, test_output = testcase
|
|
18
|
+
output = subprocess.run(["cppcheck", test_input], capture_output=True, check=True)
|
|
19
|
+
assert test_output in str(output.stdout.rstrip())
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import sys
|
|
4
|
-
|
|
5
|
-
if sys.version_info < (3, 8):
|
|
6
|
-
from importlib_metadata import version
|
|
7
|
-
else:
|
|
8
|
-
from importlib.metadata import version
|
|
9
|
-
|
|
10
|
-
import cppcheck as m
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
def test_version():
|
|
14
|
-
assert version("cppcheck") == m.__version__
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cppcheck-1.1.1 → cppcheck-1.2.1}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|