Skip to content

Commit

Permalink
update python
Browse files Browse the repository at this point in the history
fix keysview update
  • Loading branch information
sigma67 committed Nov 22, 2024
1 parent e3bbe8c commit 8c2a8ee
Show file tree
Hide file tree
Showing 20 changed files with 536 additions and 531 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
name: Install PDM
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docsbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
version: 0.5.4
version: 0.8.0
- uses: chartboost/ruff-action@v1
with:
version: 0.5.4
version: 0.8.0
args: format --check
mypy:
runs-on: ubuntu-latest
Expand Down
26 changes: 2 additions & 24 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
authors = [
{name = "sigma67", email = "[email protected]"},
Expand All @@ -26,7 +26,7 @@ authors = [
dependencies = [
"tomli; python_version < \"3.11\""
]
requires-python = ">=3.8"
requires-python = ">=3.9"

[project.entry-points.pdm]
build-locked = "pdm_build_locked.plugin:main"
Expand Down
4 changes: 2 additions & 2 deletions src/pdm_build_locked/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ def handle(self, project: Project, options: argparse.Namespace) -> None:
return

# we are not interested in the pdm dev-dependencies group
pdm_dev_dependencies = []
pdm_dev_dependencies = {}
if dev_dependencies := project.pyproject.settings.get("dev-dependencies"):
pdm_dev_dependencies = dev_dependencies.keys()

if dev_dependencies := getattr(project.pyproject, "dev_dependencies", None):
pdm_dev_dependencies.extend(dev_dependencies.keys())
pdm_dev_dependencies |= dev_dependencies.keys()

groups = project.pyproject.settings.get("build", {}).get("locked-groups", None)
if groups is None:
Expand Down
7 changes: 5 additions & 2 deletions tests/data/empty/pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

109 changes: 61 additions & 48 deletions tests/data/large-selected/pdm.lock

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions tests/data/large-selected/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ dependencies = [
"cement==3.0.8",
"jinja2==3.1.2",
"dacite==1.8.1",
"matplotlib==3.7.2",
"platformdirs==3.8.1",
"packaging==23.1",
"requests==2.31.0",
"gitpython==3.1.32",
"matplotlib==3.7.1"
"matplotlib==3.9.2"
]
requires-python = ">=3.8"
requires-python = ">=3.9"

[project.optional-dependencies]
cow = [
Expand Down
Loading

0 comments on commit 8c2a8ee

Please sign in to comment.