From 636fa7789665f89065cf9eec9d819d7f282c7a29 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 02:25:07 +0000 Subject: [PATCH 1/3] Update flit-core requirement from ~=3.5 to ~=3.12 Updates the requirements on [flit-core](https://github.com/pypa/flit) to permit the latest version. - [Changelog](https://github.com/pypa/flit/blob/main/doc/history.rst) - [Commits](https://github.com/pypa/flit/compare/3.5.0...3.12.0) --- updated-dependencies: - dependency-name: flit-core dependency-version: 3.12.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4964d5f..8b91132 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ classifiers = [ ] requires-python = ">=3.10" dependencies = [ - "flit-core~=3.5", + "flit-core~=3.12", ] [project.optional-dependencies] From 07b47daebc407072c82d9dbf9e1c03ac26c8d0d2 Mon Sep 17 00:00:00 2001 From: Johannes Maron Date: Mon, 13 Apr 2026 12:42:30 +0200 Subject: [PATCH 2/3] Fix tests --- tests/conftest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 5165822..42d6a3c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -5,6 +5,8 @@ import pytest +PACKAGE_DIR = Path(__file__).parent.parent + @pytest.fixture def package(): @@ -17,7 +19,7 @@ def package(): 'version = "0.1.0"\n' 'description = "A package"\n' "[build-system]\n" - 'requires = ["flit_core >=3.0.0,<4"]\n' + f'requires = ["flit_core >=3.0.0,<4", "{PACKAGE_DIR}"]\n' 'build-backend = "flit_gettext.core"\n' ) (temp_dir / "package").mkdir(parents=True) @@ -38,7 +40,7 @@ def package_scm(): 'description = "A package"\n' 'dynamic = ["version"]\n' "[build-system]\n" - 'requires = ["flit_core >=3.0.0,<4", "flit_scm"]\n' + f'requires = ["flit_core >=3.0.0,<4", "flit_scm", "{PACKAGE_DIR}"]\n' 'build-backend = "flit_gettext.scm"\n' "[tool.setuptools_scm]\n" 'write_to = "package/_version.py"\n' From 6c3f0a96a6d8c8dafadca21ef715612d0ae4fba3 Mon Sep 17 00:00:00 2001 From: Johannes Maron Date: Mon, 13 Apr 2026 12:48:37 +0200 Subject: [PATCH 3/3] Switch to UV in CI suite --- .github/workflows/ci.yml | 7 +++---- .gitignore | 3 +++ pyproject.toml | 12 +++++++++--- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 945ec2d..0fe7419 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,12 +30,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - uses: actions/setup-python@v6 + - run: sudo apt install gettext -y + - uses: astral-sh/setup-uv@v7 with: python-version: ${{ matrix.python-version }} - - run: sudo apt install gettext -y - - run: python -m pip install .[test] - - run: python -m pytest + - run: uv run --no-dev --group=test pytest - uses: codecov/codecov-action@v6 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.gitignore b/.gitignore index 1fd15d0..cbe3654 100644 --- a/.gitignore +++ b/.gitignore @@ -162,3 +162,6 @@ cython_debug/ # flit-scm _version.py + +# UV +uv.lock diff --git a/pyproject.toml b/pyproject.toml index 8b91132..990b513 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,15 +35,21 @@ dependencies = [ ] [project.optional-dependencies] +scm = [ + "flit-scm", +] + +[dependency-groups] +dev = [ + { include-group = "test" }, +] test = [ "pytest", "pytest-cov", "flit-scm", "build", "wheel", -] -scm = [ - "flit-scm", + "pip", ] [project.urls]