From 639db3ac0e0f25b2f1662c68291adc7efd10eed0 Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Fri, 2 Dec 2022 14:53:24 +0100 Subject: [PATCH 1/2] feat: add library metadata in the profile output --- src/pytest_codspeed/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pytest_codspeed/plugin.py b/src/pytest_codspeed/plugin.py index ea5a93c..26bb4ea 100644 --- a/src/pytest_codspeed/plugin.py +++ b/src/pytest_codspeed/plugin.py @@ -56,6 +56,8 @@ def pytest_configure(config: "pytest.Config"): ) should_measure = os.environ.get("CODSPEED_ENV") is not None lib = get_lib() if should_measure else None + if lib is not None: + lib.dump_stats_at(f"Metadata: pytest-codspeed {__version__}".encode("ascii")) disabled_plugins: List[str] = [] # Disable pytest-benchmark if codspeed is enabled if is_codspeed_enabled and IS_PYTEST_BENCHMARK_INSTALLED: From e2d0815f42e79ee0b2dfacf29de0defbf1993b5f Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Fri, 2 Dec 2022 17:17:32 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Release=20v1.2.2=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pytest_codspeed/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pytest_codspeed/__init__.py b/src/pytest_codspeed/__init__.py index a955fda..bc86c94 100644 --- a/src/pytest_codspeed/__init__.py +++ b/src/pytest_codspeed/__init__.py @@ -1 +1 @@ -__version__ = "1.2.1" +__version__ = "1.2.2"