Skip to content

Commit bbbe3dc

Browse files
committed
Migrated to dependency groups
Also require a newer `packaging` to pass the tests.
1 parent ad932ee commit bbbe3dc

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
- os: windows-latest
2222
python-version: "3.9"
2323
- os: macos-latest
24-
python-version: "3.13"
24+
python-version: "3.14"
2525
- os: windows-latest
26-
python-version: "3.13"
26+
python-version: "3.14"
2727
- os: macos-latest
2828
python-version: "pypy-3.11"
2929
runs-on: ${{ matrix.os }}
@@ -36,10 +36,8 @@ jobs:
3636
allow-prereleases: true
3737
cache: pip
3838
cache-dependency-path: pyproject.toml
39-
- name: Install the project
40-
run: pip install --no-binary=wheel .
41-
- name: Install test dependencies
42-
run: pip install .[test] coverage[toml]
39+
- name: Install the project and its test dependencies
40+
run: pip install --group test coverage[toml] .
4341
- name: Include SDist check dependencies
4442
if: matrix.python-version == '3.13'
4543
run: pip install build flit

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ wheel = "wheel._commands:main"
4141
[project.entry-points."distutils.commands"]
4242
bdist_wheel = "wheel.bdist_wheel:bdist_wheel"
4343

44-
[project.optional-dependencies]
44+
[dependency-groups]
4545
test = [
46+
"packaging >= 26.0",
4647
"pytest >= 6.0.0",
4748
"setuptools >= 77",
4849
]
@@ -126,7 +127,7 @@ skip_missing_interpreters = true
126127
depends = ["lint"]
127128
package = "wheel"
128129
commands = [["pytest", { replace = "posargs", extend = true }]]
129-
extras = ["test"]
130+
dependency_groups = ["test"]
130131
set_env = { PYTHONWARNDEFAULTENCODING = "1" }
131132

132133
[tool.tox.env.lint]

tests/test_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_pkginfo_to_metadata(tmp_path: Path) -> None:
6262
6363
[:sys_platform=="win32"]
6464
pywin32
65-
foo @http://host/foo.zip
65+
foo @ http://host/foo.zip
6666
6767
[faster-signatures]
6868
ed25519ll

0 commit comments

Comments
 (0)