pytest-codspeed 3.1.0b0__tar.gz → 3.1.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 (29) hide show
  1. {pytest_codspeed-3.1.0b0/src/pytest_codspeed.egg-info → pytest_codspeed-3.1.1}/PKG-INFO +1 -3
  2. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/pyproject.toml +3 -6
  3. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/setup.py +17 -7
  4. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/__init__.py +2 -2
  5. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1/src/pytest_codspeed.egg-info}/PKG-INFO +1 -3
  6. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/SOURCES.txt +0 -2
  7. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/requires.txt +0 -3
  8. pytest_codspeed-3.1.0b0/src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.h +0 -6
  9. pytest_codspeed-3.1.0b0/tests/test_generate_semver.py +0 -19
  10. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/LICENSE +0 -0
  11. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/README.md +0 -0
  12. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/setup.cfg +0 -0
  13. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/__init__.py +0 -0
  14. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/__init__.py +0 -0
  15. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/_wrapper/__init__.py +0 -0
  16. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/_wrapper/build.py +0 -0
  17. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.c +0 -0
  18. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.pyi +0 -0
  19. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/walltime.py +0 -0
  20. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/plugin.py +0 -0
  21. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/py.typed +0 -0
  22. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/utils.py +0 -0
  23. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/dependency_links.txt +0 -0
  24. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/entry_points.txt +0 -0
  25. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/top_level.txt +0 -0
  26. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/tests/test_pytest_plugin.py +0 -0
  27. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/tests/test_pytest_plugin_cpu_instrumentation.py +0 -0
  28. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/tests/test_pytest_plugin_walltime.py +0 -0
  29. {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytest-codspeed
3
- Version: 3.1.0b0
3
+ Version: 3.1.1
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)
@@ -50,8 +50,6 @@ Requires-Dist: cffi>=1.17.1
50
50
  Requires-Dist: pytest>=3.8
51
51
  Requires-Dist: rich>=13.8.1
52
52
  Requires-Dist: importlib-metadata>=8.5.0; python_version < "3.10"
53
- Provides-Extra: build
54
- Requires-Dist: semver>=3.0.2; extra == "build"
55
53
  Provides-Extra: lint
56
54
  Requires-Dist: mypy~=1.11.2; extra == "lint"
57
55
  Requires-Dist: ruff~=0.6.5; extra == "lint"
@@ -37,7 +37,6 @@ dependencies = [
37
37
  ]
38
38
 
39
39
  [project.optional-dependencies]
40
- build = ["semver>=3.0.2"]
41
40
  lint = ["mypy ~= 1.11.2", "ruff ~= 0.6.5"]
42
41
  compat = [
43
42
  "pytest-benchmark ~= 5.0.0",
@@ -61,8 +60,8 @@ version = { attr = "pytest_codspeed.__version__" }
61
60
 
62
61
 
63
62
  [tool.bumpver]
64
- current_version = "3.1.0-beta"
65
- version_pattern = "MAJOR.MINOR.PATCH[-TAG]"
63
+ current_version = "3.1.1"
64
+ version_pattern = "MAJOR.MINOR.PATCH[-TAG[NUM]]"
66
65
  commit_message = "Release v{new_version} 🚀"
67
66
  tag_message = "Release v{new_version} 🚀"
68
67
  tag_scope = "default"
@@ -88,11 +87,9 @@ test-command = "pytest -v --ignore={project}/tests/benchmarks {project}/tests"
88
87
 
89
88
  [tool.cibuildwheel.linux]
90
89
  environment = { PYTEST_CODSPEED_FORCE_EXTENSION_BUILD = "1", PYTEST_CODSPEED_FORCE_VALGRIND_TESTS = "1" }
91
- archs = ["x86_64", "aarch64"]
92
90
  manylinux-x86_64-image = "manylinux_2_28"
93
91
  manylinux-aarch64-image = "manylinux_2_28"
94
- before-all = "yum -y install valgrind-devel || apk add --upgrad valgrind-dev"
95
- container-engine = { name = "docker", disable-host-mount = true }
92
+ before-all = "yum -y install valgrind-devel"
96
93
 
97
94
  [tool.mypy]
98
95
  python_version = "3.12"
@@ -28,12 +28,19 @@ IS_EXTENSION_BUILDABLE = system == "Linux" and current_arch in [
28
28
  IS_EXTENSION_REQUIRED = (
29
29
  os.environ.get("PYTEST_CODSPEED_FORCE_EXTENSION_BUILD") is not None
30
30
  )
31
+
32
+ SKIP_EXTENSION_BUILD = (
33
+ os.environ.get("PYTEST_CODSPEED_SKIP_EXTENSION_BUILD") is not None
34
+ )
35
+
36
+ if SKIP_EXTENSION_BUILD and IS_EXTENSION_REQUIRED:
37
+ raise ValueError("Extension build required but the build requires to skip it")
38
+
31
39
  if IS_EXTENSION_REQUIRED and not IS_EXTENSION_BUILDABLE:
32
40
  raise ValueError(
33
41
  "The extension is required but the current platform is not supported"
34
42
  )
35
43
 
36
-
37
44
  ffi_extension = build.ffibuilder.distutils_extension()
38
45
  ffi_extension.optional = not IS_EXTENSION_REQUIRED
39
46
 
@@ -43,11 +50,14 @@ print(
43
50
  )
44
51
 
45
52
  setup(
46
- package_data={
47
- "pytest_codspeed": [
48
- "instruments/valgrind/_wrapper/*.h",
49
- "instruments/valgrind/_wrapper/*.c",
50
- ]
53
+ exclude_package_data={
54
+ "pytest_codspeed.instruments.valgrind._wrapper": [
55
+ "*.c",
56
+ "*.h",
57
+ "build.py",
58
+ ],
51
59
  },
52
- ext_modules=[ffi_extension] if IS_EXTENSION_BUILDABLE else [],
60
+ ext_modules=(
61
+ [ffi_extension] if IS_EXTENSION_BUILDABLE and not SKIP_EXTENSION_BUILD else []
62
+ ),
53
63
  )
@@ -1,6 +1,6 @@
1
- __version__ = "3.1.0b0"
1
+ __version__ = "3.1.1"
2
2
  # We also have the semver version since __version__ is not semver compliant
3
- __semver_version__ = "3.1.0-beta"
3
+ __semver_version__ = "3.1.1"
4
4
 
5
5
  from .plugin import BenchmarkFixture
6
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytest-codspeed
3
- Version: 3.1.0b0
3
+ Version: 3.1.1
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)
@@ -50,8 +50,6 @@ Requires-Dist: cffi>=1.17.1
50
50
  Requires-Dist: pytest>=3.8
51
51
  Requires-Dist: rich>=13.8.1
52
52
  Requires-Dist: importlib-metadata>=8.5.0; python_version < "3.10"
53
- Provides-Extra: build
54
- Requires-Dist: semver>=3.0.2; extra == "build"
55
53
  Provides-Extra: lint
56
54
  Requires-Dist: mypy~=1.11.2; extra == "lint"
57
55
  Requires-Dist: ruff~=0.6.5; extra == "lint"
@@ -18,9 +18,7 @@ src/pytest_codspeed/instruments/valgrind/__init__.py
18
18
  src/pytest_codspeed/instruments/valgrind/_wrapper/__init__.py
19
19
  src/pytest_codspeed/instruments/valgrind/_wrapper/build.py
20
20
  src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.c
21
- src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.h
22
21
  src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.pyi
23
- tests/test_generate_semver.py
24
22
  tests/test_pytest_plugin.py
25
23
  tests/test_pytest_plugin_cpu_instrumentation.py
26
24
  tests/test_pytest_plugin_walltime.py
@@ -5,9 +5,6 @@ rich>=13.8.1
5
5
  [:python_version < "3.10"]
6
6
  importlib-metadata>=8.5.0
7
7
 
8
- [build]
9
- semver>=3.0.2
10
-
11
8
  [compat]
12
9
  pytest-benchmark~=5.0.0
13
10
  pytest-xdist~=3.6.1
@@ -1,6 +0,0 @@
1
- void start_instrumentation();
2
- void stop_instrumentation();
3
- void dump_stats();
4
- void dump_stats_at(char *s);
5
- void zero_stats();
6
- void toggle_collect();
@@ -1,19 +0,0 @@
1
- import pytest
2
- from generate_semver import pypi_version_to_semver
3
-
4
-
5
- def test_pypi_version_to_semver_valid():
6
- # Test cases for valid PyPI version strings
7
- assert pypi_version_to_semver("1.0.0") == "1.0.0"
8
- assert pypi_version_to_semver("1.0.0a1") == "1.0.0-a1"
9
- assert pypi_version_to_semver("1.0.0b1") == "1.0.0-b1"
10
- assert pypi_version_to_semver("1.0.0rc1") == "1.0.0-rc1"
11
-
12
-
13
- def test_pypi_version_to_semver_invalid():
14
- # Test cases for invalid PyPI version strings that should raise ValueError
15
- with pytest.raises(ValueError, match="Can't convert an epoch to semver"):
16
- pypi_version_to_semver("1!1.0.0")
17
-
18
- with pytest.raises(ValueError, match="Can't convert a post part to semver"):
19
- pypi_version_to_semver("1.0.0.post")