From a4bd14a5126dff2be84c753669344199296ea9ba Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Sun, 3 Nov 2024 15:25:53 +0100 Subject: [PATCH] Use PEP 735 style dependency groups in pyproject Requires PDM 2.20+, which `setup-pdm` CI action does not yet use by default. --- {{cookiecutter.repo_name}}/.github/workflows/main.yml | 2 ++ {{cookiecutter.repo_name}}/pyproject.toml | 9 ++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/{{cookiecutter.repo_name}}/.github/workflows/main.yml b/{{cookiecutter.repo_name}}/.github/workflows/main.yml index db821f8..cd9dfb3 100644 --- a/{{cookiecutter.repo_name}}/.github/workflows/main.yml +++ b/{{cookiecutter.repo_name}}/.github/workflows/main.yml @@ -25,6 +25,7 @@ jobs: python-version: ${{ "{{" }} matrix.python-version {{ "}}" }} cache: true cache-dependency-path: ./pyproject.toml + version: "2.20.0" - name: Install dependencies run: pdm install @@ -49,6 +50,7 @@ jobs: uses: pdm-project/setup-pdm@v4 with: python-version: "3.10" + version: "2.20.0" - name: Install dependencies run: pdm install diff --git a/{{cookiecutter.repo_name}}/pyproject.toml b/{{cookiecutter.repo_name}}/pyproject.toml index 481b69f..a8e7040 100644 --- a/{{cookiecutter.repo_name}}/pyproject.toml +++ b/{{cookiecutter.repo_name}}/pyproject.toml @@ -29,16 +29,15 @@ dependencies = [ ] [project.urls] -Homepage = "{{ cookiecutter.repo_url }}" +"Homepage" = "{{ cookiecutter.repo_url }}" "Issue Tracker" = "{{ cookiecutter.repo_url }}/issues" -Funding = "https://donate.getpelican.com/" +"Changelog" = "{{ cookiecutter.repo_url }}/blob/main/CHANGELOG.md" +"Funding" = "https://donate.getpelican.com/" [project.optional-dependencies] markdown = ["markdown>=3.4"] -[tool.pdm] - -[tool.pdm.dev-dependencies] +[dependency-groups] lint = [ "invoke>=2.2", "ruff>=0.7.2,<0.8.0",