Skip to content

Commit

Permalink
Use PEP 735 style dependency groups in pyproject
Browse files Browse the repository at this point in the history
Requires PDM 2.20+, which `setup-pdm` CI action does not yet use by default.
  • Loading branch information
justinmayer committed Nov 3, 2024
1 parent 4e2289f commit a4bd14a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions {{cookiecutter.repo_name}}/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
9 changes: 4 additions & 5 deletions {{cookiecutter.repo_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a4bd14a

Please sign in to comment.