pytest-codspeed 3.1.0__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 (28) hide show
  1. {pytest_codspeed-3.1.0/src/pytest_codspeed.egg-info → pytest_codspeed-3.1.1}/PKG-INFO +1 -1
  2. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/pyproject.toml +2 -2
  3. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/setup.py +17 -7
  4. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/__init__.py +2 -2
  5. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1/src/pytest_codspeed.egg-info}/PKG-INFO +1 -1
  6. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/SOURCES.txt +0 -1
  7. pytest_codspeed-3.1.0/src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.h +0 -6
  8. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/LICENSE +0 -0
  9. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/README.md +0 -0
  10. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/setup.cfg +0 -0
  11. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/__init__.py +0 -0
  12. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/__init__.py +0 -0
  13. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/_wrapper/__init__.py +0 -0
  14. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/_wrapper/build.py +0 -0
  15. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.c +0 -0
  16. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.pyi +0 -0
  17. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/instruments/walltime.py +0 -0
  18. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/plugin.py +0 -0
  19. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/py.typed +0 -0
  20. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed/utils.py +0 -0
  21. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/dependency_links.txt +0 -0
  22. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/entry_points.txt +0 -0
  23. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/requires.txt +0 -0
  24. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/src/pytest_codspeed.egg-info/top_level.txt +0 -0
  25. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/tests/test_pytest_plugin.py +0 -0
  26. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/tests/test_pytest_plugin_cpu_instrumentation.py +0 -0
  27. {pytest_codspeed-3.1.0 → pytest_codspeed-3.1.1}/tests/test_pytest_plugin_walltime.py +0 -0
  28. {pytest_codspeed-3.1.0 → 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.0
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)
@@ -60,8 +60,8 @@ version = { attr = "pytest_codspeed.__version__" }
60
60
 
61
61
 
62
62
  [tool.bumpver]
63
- current_version = "3.1.0"
64
- version_pattern = "MAJOR.MINOR.PATCH[-TAG]"
63
+ current_version = "3.1.1"
64
+ version_pattern = "MAJOR.MINOR.PATCH[-TAG[NUM]]"
65
65
  commit_message = "Release v{new_version} 🚀"
66
66
  tag_message = "Release v{new_version} 🚀"
67
67
  tag_scope = "default"
@@ -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.0"
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"
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.0
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)
@@ -18,7 +18,6 @@ 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
22
  tests/test_pytest_plugin.py
24
23
  tests/test_pytest_plugin_cpu_instrumentation.py
@@ -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();
File without changes