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.
- {pytest_codspeed-3.1.0b0/src/pytest_codspeed.egg-info → pytest_codspeed-3.1.1}/PKG-INFO +1 -3
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/pyproject.toml +3 -6
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/setup.py +17 -7
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/__init__.py +2 -2
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1/src/pytest_codspeed.egg-info}/PKG-INFO +1 -3
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/SOURCES.txt +0 -2
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/requires.txt +0 -3
- pytest_codspeed-3.1.0b0/src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.h +0 -6
- pytest_codspeed-3.1.0b0/tests/test_generate_semver.py +0 -19
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/LICENSE +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/README.md +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/setup.cfg +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/__init__.py +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/__init__.py +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/_wrapper/__init__.py +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/_wrapper/build.py +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.c +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.pyi +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/walltime.py +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/plugin.py +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/py.typed +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/utils.py +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/dependency_links.txt +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/entry_points.txt +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/top_level.txt +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/tests/test_pytest_plugin.py +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/tests/test_pytest_plugin_cpu_instrumentation.py +0 -0
- {pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/tests/test_pytest_plugin_walltime.py +0 -0
- {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.
|
|
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.
|
|
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
|
|
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
|
-
|
|
47
|
-
"pytest_codspeed": [
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
53
|
+
exclude_package_data={
|
|
54
|
+
"pytest_codspeed.instruments.valgrind._wrapper": [
|
|
55
|
+
"*.c",
|
|
56
|
+
"*.h",
|
|
57
|
+
"build.py",
|
|
58
|
+
],
|
|
51
59
|
},
|
|
52
|
-
ext_modules=
|
|
60
|
+
ext_modules=(
|
|
61
|
+
[ffi_extension] if IS_EXTENSION_BUILDABLE and not SKIP_EXTENSION_BUILD else []
|
|
62
|
+
),
|
|
53
63
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pytest-codspeed
|
|
3
|
-
Version: 3.1.
|
|
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
|
|
@@ -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")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/walltime.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pytest_codspeed-3.1.0b0 → pytest_codspeed-3.1.1}/tests/test_pytest_plugin_cpu_instrumentation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|