pytest-codspeed 4.4.0__tar.gz → 4.5.0__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.
- {pytest_codspeed-4.4.0/src/pytest_codspeed.egg-info → pytest_codspeed-4.5.0}/PKG-INFO +1 -1
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/pyproject.toml +5 -2
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/setup.py +3 -4
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/__init__.py +2 -2
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/build.py +3 -3
- pytest_codspeed-4.5.0/src/pytest_codspeed/instruments/hooks/instrument-hooks/dist/core.c +40189 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/instrument-hooks/includes/core.h +24 -25
- pytest_codspeed-4.5.0/src/pytest_codspeed/instruments/hooks/instrument-hooks/scripts/release.py +50 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0/src/pytest_codspeed.egg-info}/PKG-INFO +1 -1
- pytest_codspeed-4.4.0/src/pytest_codspeed/instruments/hooks/instrument-hooks/dist/core.c +0 -30987
- pytest_codspeed-4.4.0/src/pytest_codspeed/instruments/hooks/instrument-hooks/scripts/release.py +0 -25
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/LICENSE +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/README.md +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/setup.cfg +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/config.py +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/__init__.py +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/analysis.py +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/__init__.py +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/dist_instrument_hooks.pyi +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/instrument-hooks/includes/callgrind.h +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/instrument-hooks/includes/compat.h +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/instrument-hooks/includes/valgrind.h +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/instrument-hooks/includes/zig.h +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/walltime.py +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/plugin.py +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/py.typed +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/utils.py +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed.egg-info/SOURCES.txt +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed.egg-info/dependency_links.txt +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed.egg-info/entry_points.txt +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed.egg-info/requires.txt +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed.egg-info/top_level.txt +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/tests/test_format_time.py +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/tests/test_pytest_plugin.py +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/tests/test_pytest_plugin_cpu_instrumentation.py +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/tests/test_pytest_plugin_walltime.py +0 -0
- {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/tests/test_utils.py +0 -0
|
@@ -77,7 +77,7 @@ version = { attr = "pytest_codspeed.__version__" }
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
[tool.bumpver]
|
|
80
|
-
current_version = "4.
|
|
80
|
+
current_version = "4.5.0"
|
|
81
81
|
version_pattern = "MAJOR.MINOR.PATCH[-TAG[NUM]]"
|
|
82
82
|
commit_message = "Release v{new_version} 🚀"
|
|
83
83
|
tag_message = "Release v{new_version} 🚀"
|
|
@@ -98,7 +98,7 @@ push = false
|
|
|
98
98
|
]
|
|
99
99
|
|
|
100
100
|
[tool.cibuildwheel]
|
|
101
|
-
build = "cp*manylinux*"
|
|
101
|
+
build = "cp*{manylinux,macosx}*"
|
|
102
102
|
test-extras = ["build", "test", "compat"]
|
|
103
103
|
test-command = "pytest -v --ignore={project}/tests/benchmarks {project}/tests"
|
|
104
104
|
|
|
@@ -108,6 +108,9 @@ manylinux-x86_64-image = "manylinux_2_28"
|
|
|
108
108
|
manylinux-aarch64-image = "manylinux_2_28"
|
|
109
109
|
before-all = "yum -y install valgrind-devel"
|
|
110
110
|
|
|
111
|
+
[tool.cibuildwheel.macos]
|
|
112
|
+
environment = { PYTEST_CODSPEED_FORCE_EXTENSION_BUILD = "1" }
|
|
113
|
+
|
|
111
114
|
[tool.mypy]
|
|
112
115
|
python_version = "3.12"
|
|
113
116
|
|
|
@@ -18,10 +18,9 @@ current_arch = platform.machine()
|
|
|
18
18
|
|
|
19
19
|
print(f"System: {system} ({current_arch})")
|
|
20
20
|
|
|
21
|
-
IS_EXTENSION_BUILDABLE =
|
|
22
|
-
"x86_64",
|
|
23
|
-
|
|
24
|
-
]
|
|
21
|
+
IS_EXTENSION_BUILDABLE = (
|
|
22
|
+
system == "Linux" and current_arch in ["x86_64", "aarch64"]
|
|
23
|
+
) or (system == "Darwin" and current_arch == "arm64")
|
|
25
24
|
|
|
26
25
|
IS_EXTENSION_REQUIRED = (
|
|
27
26
|
os.environ.get("PYTEST_CODSPEED_FORCE_EXTENSION_BUILD") is not None
|
{pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/build.py
RENAMED
|
@@ -10,7 +10,7 @@ header_text = (includes_dir / "core.h").read_text()
|
|
|
10
10
|
|
|
11
11
|
# Manually copied from `instrument-hooks/includes/core.h` to avoid parsing issues
|
|
12
12
|
ffibuilder.cdef("""
|
|
13
|
-
typedef
|
|
13
|
+
typedef struct InstrumentHooks InstrumentHooks;
|
|
14
14
|
|
|
15
15
|
InstrumentHooks *instrument_hooks_init(void);
|
|
16
16
|
void instrument_hooks_deinit(InstrumentHooks *);
|
|
@@ -28,7 +28,7 @@ uint8_t instrument_hooks_set_integration(InstrumentHooks *, const char *name,
|
|
|
28
28
|
#define MARKER_TYPE_BENCHMARK_START 2
|
|
29
29
|
#define MARKER_TYPE_BENCHMARK_END 3
|
|
30
30
|
|
|
31
|
-
uint8_t instrument_hooks_add_marker(InstrumentHooks *,
|
|
31
|
+
uint8_t instrument_hooks_add_marker(InstrumentHooks *, int32_t pid,
|
|
32
32
|
uint8_t marker_type, uint64_t timestamp);
|
|
33
33
|
uint64_t instrument_hooks_current_timestamp(void);
|
|
34
34
|
|
|
@@ -44,7 +44,7 @@ uint8_t instrument_hooks_set_environment_list(InstrumentHooks *,
|
|
|
44
44
|
const char *key,
|
|
45
45
|
const char *const *values,
|
|
46
46
|
uint32_t count);
|
|
47
|
-
uint8_t instrument_hooks_write_environment(InstrumentHooks *,
|
|
47
|
+
uint8_t instrument_hooks_write_environment(InstrumentHooks *, int32_t pid);
|
|
48
48
|
""")
|
|
49
49
|
|
|
50
50
|
ffibuilder.set_source(
|