From 9df2c77adc5c7488ef3dc16a22fe076cbcee7c33 Mon Sep 17 00:00:00 2001 From: Adrien Cacciaguerra Date: Fri, 17 Jan 2025 10:55:42 +0100 Subject: [PATCH 1/2] chore: fix uv version in CI --- .github/workflows/ci.yml | 2 ++ .github/workflows/release.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4be09ce..a2ec619 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: astral-sh/setup-uv@v4 + with: + version: "0.5.20" - name: "Set up Python ${{ matrix.python-version }}" uses: actions/setup-python@v5 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 39e4fbc..a404af1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,6 +40,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: astral-sh/setup-uv@v4 + with: + version: "0.5.20" - uses: actions/setup-python@v2 with: python-version: "3.12" @@ -58,6 +60,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: astral-sh/setup-uv@v4 + with: + version: "0.5.20" - uses: actions/setup-python@v2 with: python-version: "3.12" @@ -83,6 +87,8 @@ jobs: path: dist/ - uses: actions/checkout@v4 - uses: astral-sh/setup-uv@v4 + with: + version: "0.5.20" - uses: actions/setup-python@v2 with: python-version: "3.12" From d13743136c5d37efc15b7ecf8428e33e34509a1e Mon Sep 17 00:00:00 2001 From: Adrien Cacciaguerra Date: Fri, 17 Jan 2025 10:56:14 +0100 Subject: [PATCH 2/2] chore: fix self-dependency --- pyproject.toml | 6 ++++++ uv.lock | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a0e80b4..8f9d932 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,6 +45,12 @@ compat = [ ] test = ["pytest ~= 7.0", "pytest-cov ~= 4.0.0"] +[tool.uv.sources] +pytest-codspeed = { workspace = true } + +[dependency-groups] +dev = ["pytest-codspeed"] + [project.entry-points] pytest11 = { codspeed = "pytest_codspeed.plugin" } diff --git a/uv.lock b/uv.lock index 4e57216..0b40df2 100644 --- a/uv.lock +++ b/uv.lock @@ -333,7 +333,6 @@ wheels = [ [[package]] name = "pytest-codspeed" -version = "3.1.2" source = { editable = "." } dependencies = [ { name = "cffi" }, @@ -356,6 +355,11 @@ test = [ { name = "pytest-cov" }, ] +[package.dev-dependencies] +dev = [ + { name = "pytest-codspeed" }, +] + [package.metadata] requires-dist = [ { name = "cffi", specifier = ">=1.17.1" }, @@ -370,6 +374,9 @@ requires-dist = [ { name = "ruff", marker = "extra == 'lint'", specifier = "~=0.6.5" }, ] +[package.metadata.requires-dev] +dev = [{ name = "pytest-codspeed", editable = "." }] + [[package]] name = "pytest-cov" version = "4.0.0"