From fb11b3403c4725166e202c8453bab40f6ee261f0 Mon Sep 17 00:00:00 2001 From: Chris Rose Date: Thu, 17 Oct 2024 09:01:22 -0700 Subject: [PATCH] Enable pytest-profiling again v1.8.0 Nominally fixed, per https://github.com/man-group/pytest-plugins/issues/238#issuecomment-2419930707 --- pyproject.toml | 3 +-- uv.lock | 27 ++++++++++++++++++++++++++- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ecab340..84393f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,8 +94,7 @@ dev-dependencies = [ "mkdocs-macros-plugin>=1.0.5", "django-test-plus>=2.2.3", "pytest-lazy-fixtures>=1.0.5", - # Broken on 3.12 and higher - # "pytest-profiling>=1.7.0", + "pytest-profiling~=1.8.0", "nplusone>=1.0.0", "pgcli>=4.1.0", # This is only needed here because django-test-plus doesn't diff --git a/uv.lock b/uv.lock index c08edb5..eaa3930 100644 --- a/uv.lock +++ b/uv.lock @@ -900,6 +900,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/e9/bd/cc3a402a6439c15c3d4294333e13042b915bbeab54edc457c723931fed3f/GitPython-3.1.43-py3-none-any.whl", hash = "sha256:eec7ec56b92aad751f9912a73404bc02ba212a23adb2c7098ee668417051a1ff", size = 207337 }, ] +[[package]] +name = "gprof2dot" +version = "2024.6.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/32/11/16fc5b985741378812223f2c6213b0a95cda333b797def622ac702d28e81/gprof2dot-2024.6.6.tar.gz", hash = "sha256:fa1420c60025a9eb7734f65225b4da02a10fc6dd741b37fa129bc6b41951e5ab", size = 36536 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ae/27/15c4d20871a86281e2bacde9e9f634225d1c2ed0db072f98acf201022411/gprof2dot-2024.6.6-py2.py3-none-any.whl", hash = "sha256:45b14ad7ce64e299c8f526881007b9eb2c6b75505d5613e96e66ee4d5ab33696", size = 34763 }, +] + [[package]] name = "html-tag-names" version = "0.1.2" @@ -1182,7 +1191,7 @@ wheels = [ [[package]] name = "nomnom-hugoawards" -version = "2025.0.0b4.dev9" +version = "2025.0.0b4.dev15" source = { editable = "." } dependencies = [ { name = "boto3" }, @@ -1244,6 +1253,7 @@ dev = [ { name = "pytest-cov" }, { name = "pytest-django" }, { name = "pytest-lazy-fixtures" }, + { name = "pytest-profiling" }, { name = "pytest-sugar" }, { name = "pytest-xdist" }, { name = "ruff" }, @@ -1313,6 +1323,7 @@ dev = [ { name = "pytest-cov", specifier = "~=4.1.0" }, { name = "pytest-django", specifier = ">=4.7.0" }, { name = "pytest-lazy-fixtures", specifier = ">=1.0.5" }, + { name = "pytest-profiling", specifier = "~=1.8.0" }, { name = "pytest-sugar", specifier = "~=1.0.0" }, { name = "pytest-xdist", specifier = "~=3.5.0" }, { name = "ruff", specifier = ">=0.6.7" }, @@ -1584,6 +1595,20 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/60/3a/9354c3765bc1459fc18f6d5cf62709b3a606de55bd02d0483ceefd7fd98f/pytest_lazy_fixtures-1.1.1-py3-none-any.whl", hash = "sha256:a4b396a361faf56c6305535fd0175ce82902ca7cf668c4d812a25ed2bcde8183", size = 6928 }, ] +[[package]] +name = "pytest-profiling" +version = "1.8.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "gprof2dot" }, + { name = "pytest" }, + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/5e/3f/e84badafc1a95b82d021c3615efb535bbd6015ea4dbd748ecb56b86e0739/pytest-profiling-1.8.0.tar.gz", hash = "sha256:4c3a7ee88bcd9a3723c01b4e885ea9da6d070d62110d800e51ddd7f35ea82cf7", size = 33491 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8b/79/6d7fcbaee8ffc34ba05cb45dba48d9ff561cb04ad67259e608a8a9eb0613/pytest_profiling-1.8.0-py3-none-any.whl", hash = "sha256:bb001150c36f4a5f6bd58f3a4c6e88fbc778551371e76ee083dbe8beb73b8219", size = 9503 }, +] + [[package]] name = "pytest-sugar" version = "1.0.0"