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.
Files changed (37) hide show
  1. {pytest_codspeed-4.4.0/src/pytest_codspeed.egg-info → pytest_codspeed-4.5.0}/PKG-INFO +1 -1
  2. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/pyproject.toml +5 -2
  3. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/setup.py +3 -4
  4. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/__init__.py +2 -2
  5. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/build.py +3 -3
  6. pytest_codspeed-4.5.0/src/pytest_codspeed/instruments/hooks/instrument-hooks/dist/core.c +40189 -0
  7. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/instrument-hooks/includes/core.h +24 -25
  8. pytest_codspeed-4.5.0/src/pytest_codspeed/instruments/hooks/instrument-hooks/scripts/release.py +50 -0
  9. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0/src/pytest_codspeed.egg-info}/PKG-INFO +1 -1
  10. pytest_codspeed-4.4.0/src/pytest_codspeed/instruments/hooks/instrument-hooks/dist/core.c +0 -30987
  11. pytest_codspeed-4.4.0/src/pytest_codspeed/instruments/hooks/instrument-hooks/scripts/release.py +0 -25
  12. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/LICENSE +0 -0
  13. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/README.md +0 -0
  14. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/setup.cfg +0 -0
  15. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/config.py +0 -0
  16. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/__init__.py +0 -0
  17. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/analysis.py +0 -0
  18. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/__init__.py +0 -0
  19. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/dist_instrument_hooks.pyi +0 -0
  20. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/instrument-hooks/includes/callgrind.h +0 -0
  21. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/instrument-hooks/includes/compat.h +0 -0
  22. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/instrument-hooks/includes/valgrind.h +0 -0
  23. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/hooks/instrument-hooks/includes/zig.h +0 -0
  24. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/instruments/walltime.py +0 -0
  25. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/plugin.py +0 -0
  26. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/py.typed +0 -0
  27. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed/utils.py +0 -0
  28. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed.egg-info/SOURCES.txt +0 -0
  29. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed.egg-info/dependency_links.txt +0 -0
  30. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed.egg-info/entry_points.txt +0 -0
  31. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed.egg-info/requires.txt +0 -0
  32. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/src/pytest_codspeed.egg-info/top_level.txt +0 -0
  33. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/tests/test_format_time.py +0 -0
  34. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/tests/test_pytest_plugin.py +0 -0
  35. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/tests/test_pytest_plugin_cpu_instrumentation.py +0 -0
  36. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/tests/test_pytest_plugin_walltime.py +0 -0
  37. {pytest_codspeed-4.4.0 → pytest_codspeed-4.5.0}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-codspeed
3
- Version: 4.4.0
3
+ Version: 4.5.0
4
4
  Summary: Pytest plugin to create CodSpeed benchmarks
5
5
  Author-email: Arthur Pastel <arthur@codspeed.io>
6
6
  License: The MIT License (MIT)
@@ -77,7 +77,7 @@ version = { attr = "pytest_codspeed.__version__" }
77
77
 
78
78
 
79
79
  [tool.bumpver]
80
- current_version = "4.4.0"
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 = system == "Linux" and current_arch in [
22
- "x86_64",
23
- "aarch64",
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
@@ -1,6 +1,6 @@
1
- __version__ = "4.4.0"
1
+ __version__ = "4.5.0"
2
2
  # We also have the semver version since __version__ is not semver compliant
3
- __semver_version__ = "4.4.0"
3
+ __semver_version__ = "4.5.0"
4
4
 
5
5
  from .plugin import BenchmarkFixture
6
6
 
@@ -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 uint64_t *InstrumentHooks;
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 *, uint32_t pid,
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 *, uint32_t pid);
47
+ uint8_t instrument_hooks_write_environment(InstrumentHooks *, int32_t pid);
48
48
  """)
49
49
 
50
50
  ffibuilder.set_source(