Skip to content

Commit 43fef67

Browse files
authored
pdm-build-locked command: ignore dependency-groups during resolution (#23)
* pdm-build-locked command: ignore dependency-groups during resolution * update python fix keysview update * set not dict * update assert
1 parent f81faa7 commit 43fef67

File tree

21 files changed

+576
-565
lines changed

21 files changed

+576
-565
lines changed

Diff for: .github/workflows/coverage.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
14+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1515
steps:
16-
- uses: actions/checkout@master
16+
- uses: actions/checkout@v4
1717
- uses: pdm-project/setup-pdm@v4
1818
name: Install PDM
1919
with:

Diff for: .github/workflows/docsbuild.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111
- name: Set up Python
12-
uses: actions/setup-python@v3
12+
uses: actions/setup-python@v5
1313
with:
1414
python-version: '3.x'
1515
- name: Install dependencies

Diff for: .github/workflows/lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: chartboost/ruff-action@v1
1717
with:
18-
version: 0.5.4
18+
version: 0.8.0
1919
- uses: chartboost/ruff-action@v1
2020
with:
21-
version: 0.5.4
21+
version: 0.8.0
2222
args: format --check
2323
mypy:
2424
runs-on: ubuntu-latest

Diff for: pdm.lock

+38-57
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ classifiers = [
1313
"Topic :: Software Development :: Libraries :: Python Modules",
1414
"Operating System :: OS Independent",
1515
"Programming Language :: Python :: 3",
16-
"Programming Language :: Python :: 3.8",
1716
"Programming Language :: Python :: 3.9",
1817
"Programming Language :: Python :: 3.10",
1918
"Programming Language :: Python :: 3.11",
2019
"Programming Language :: Python :: 3.12",
20+
"Programming Language :: Python :: 3.13",
2121
]
2222
authors = [
2323
{name = "sigma67", email = "[email protected]"},
@@ -26,7 +26,7 @@ authors = [
2626
dependencies = [
2727
"tomli; python_version < \"3.11\""
2828
]
29-
requires-python = ">=3.8"
29+
requires-python = ">=3.9"
3030

3131
[project.entry-points.pdm]
3232
build-locked = "pdm_build_locked.plugin:main"
@@ -53,7 +53,7 @@ package-dir = "src"
5353

5454
[tool.pdm.dev-dependencies]
5555
dev = [
56-
"pdm[pytest]>=2.17.0",
56+
"pdm[pytest]>=2.20.0",
5757
"pytest>=7.4.0",
5858
"pkginfo>=1.9.6",
5959
"pytest-cov>=4.1.0",

Diff for: src/pdm_build_locked/command.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,13 @@ def handle(self, project: Project, options: argparse.Namespace) -> None:
4545
return
4646

4747
# we are not interested in the pdm dev-dependencies group
48-
pdm_dev_dependencies = []
48+
pdm_dev_dependencies = set()
4949
if dev_dependencies := project.pyproject.settings.get("dev-dependencies"):
5050
pdm_dev_dependencies = dev_dependencies.keys()
5151

52+
if dev_dependencies := getattr(project.pyproject, "dev_dependencies", None):
53+
pdm_dev_dependencies |= dev_dependencies.keys()
54+
5255
groups = project.pyproject.settings.get("build", {}).get("locked-groups", None)
5356
if groups is None:
5457
groups = {group for group in project.all_dependencies if group not in pdm_dev_dependencies}

Diff for: tests/data/empty/pdm.lock

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)