pytest-codspeed 3.0.0b0__tar.gz → 3.0.0b1__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.0.0b0 → pytest_codspeed-3.0.0b1}/PKG-INFO +3 -1
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/pyproject.toml +2 -1
- pytest_codspeed-3.0.0b1/src/pytest_codspeed/__init__.py +7 -0
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/src/pytest_codspeed/instruments/valgrind/__init__.py +2 -2
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/src/pytest_codspeed/utils.py +2 -2
- pytest_codspeed-3.0.0b0/src/pytest_codspeed/__init__.py +0 -5
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/.gitignore +0 -0
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/LICENSE +0 -0
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/README.md +0 -0
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/src/pytest_codspeed/instruments/__init__.py +0 -0
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/src/pytest_codspeed/instruments/valgrind/_wrapper/.gitignore +0 -0
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/src/pytest_codspeed/instruments/valgrind/_wrapper/__init__.py +0 -0
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.c +0 -0
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.h +0 -0
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.pyi +0 -0
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/src/pytest_codspeed/instruments/walltime.py +0 -0
- {pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/src/pytest_codspeed/plugin.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pytest-codspeed
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.0b1
|
|
4
4
|
Summary: Pytest plugin to create CodSpeed benchmarks
|
|
5
5
|
Project-URL: Homepage, https://codspeed.io/
|
|
6
6
|
Project-URL: Documentation, https://docs.codspeed.io/
|
|
@@ -52,6 +52,8 @@ Requires-Dist: importlib-metadata>=8.5.0; python_version < '3.10'
|
|
|
52
52
|
Requires-Dist: pytest>=3.8
|
|
53
53
|
Requires-Dist: rich>=13.8.1
|
|
54
54
|
Requires-Dist: setuptools; python_full_version >= '3.12.0'
|
|
55
|
+
Provides-Extra: build
|
|
56
|
+
Requires-Dist: semver>=3.0.2; extra == 'build'
|
|
55
57
|
Provides-Extra: compat
|
|
56
58
|
Requires-Dist: pytest-benchmark~=4.0.0; extra == 'compat'
|
|
57
59
|
Requires-Dist: pytest-xdist~=3.6.1; extra == 'compat'
|
|
@@ -46,6 +46,7 @@ dependencies = [
|
|
|
46
46
|
]
|
|
47
47
|
|
|
48
48
|
[project.optional-dependencies]
|
|
49
|
+
build = ["semver>=3.0.2"]
|
|
49
50
|
lint = ["mypy ~= 1.11.2", "ruff ~= 0.6.5"]
|
|
50
51
|
compat = [
|
|
51
52
|
"pytest-benchmark ~= 4.0.0",
|
|
@@ -94,7 +95,7 @@ float_to_top = true
|
|
|
94
95
|
[tool.pytest.ini_options]
|
|
95
96
|
addopts = "--ignore=tests/benchmarks --ignore=tests/examples --ignore=tests/benchmarks/TheAlgorithms"
|
|
96
97
|
filterwarnings = ["ignore::DeprecationWarning:pytest_benchmark.utils.*:"]
|
|
97
|
-
pythonpath = ["tests/benchmarks/TheAlgorithms"]
|
|
98
|
+
pythonpath = ["tests/benchmarks/TheAlgorithms", "./scripts"]
|
|
98
99
|
|
|
99
100
|
[tool.coverage.run]
|
|
100
101
|
branch = true
|
|
@@ -4,7 +4,7 @@ import os
|
|
|
4
4
|
import sys
|
|
5
5
|
from typing import TYPE_CHECKING
|
|
6
6
|
|
|
7
|
-
from pytest_codspeed import
|
|
7
|
+
from pytest_codspeed import __semver_version__
|
|
8
8
|
from pytest_codspeed.instruments import Instrument
|
|
9
9
|
from pytest_codspeed.instruments.valgrind._wrapper import get_lib
|
|
10
10
|
|
|
@@ -30,7 +30,7 @@ class ValgrindInstrument(Instrument):
|
|
|
30
30
|
if self.should_measure:
|
|
31
31
|
self.lib = get_lib()
|
|
32
32
|
self.lib.dump_stats_at(
|
|
33
|
-
f"Metadata: pytest-codspeed {
|
|
33
|
+
f"Metadata: pytest-codspeed {__semver_version__}".encode("ascii")
|
|
34
34
|
)
|
|
35
35
|
if SUPPORTS_PERF_TRAMPOLINE:
|
|
36
36
|
sys.activate_stack_trampoline("perf") # type: ignore
|
|
@@ -5,7 +5,7 @@ import sys
|
|
|
5
5
|
import sysconfig
|
|
6
6
|
from pathlib import Path
|
|
7
7
|
|
|
8
|
-
from pytest_codspeed import
|
|
8
|
+
from pytest_codspeed import __semver_version__
|
|
9
9
|
|
|
10
10
|
if sys.version_info < (3, 10):
|
|
11
11
|
import importlib_metadata as importlib_metadata
|
|
@@ -51,7 +51,7 @@ def get_environment_metadata() -> dict[str, dict]:
|
|
|
51
51
|
return {
|
|
52
52
|
"creator": {
|
|
53
53
|
"name": "pytest-codspeed",
|
|
54
|
-
"version":
|
|
54
|
+
"version": __semver_version__,
|
|
55
55
|
"pid": os.getpid(),
|
|
56
56
|
},
|
|
57
57
|
"python": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_codspeed-3.0.0b0 → pytest_codspeed-3.0.0b1}/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.0.0b0 → pytest_codspeed-3.0.0b1}/src/pytest_codspeed/instruments/walltime.py
RENAMED
|
File without changes
|
|
File without changes
|