Skip to content

Commit c06c1e1

Browse files
committed
MAINT: switch from extra dependencies to dependency groups
1 parent 8d50078 commit c06c1e1

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
if: ${{ matrix.dependencies }}
141141

142142
- name: Install
143-
run: python -m pip install .[test]
143+
run: python -m pip install --group test
144144

145145
- name: Run tests
146146
run: python -m pytest --showlocals -vv --cov --cov-report=xml

pyproject.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ classifiers = [
3333
'Programming Language :: Python',
3434
'Topic :: Software Development :: Build Tools',
3535
]
36-
3736
dependencies = [
3837
'meson >= 0.64.0; python_version < "3.12"',
3938
'meson >= 1.2.3; python_version >= "3.12"',
@@ -43,7 +42,13 @@ dependencies = [
4342
'tomli >= 1.0.0; python_version < "3.11"',
4443
]
4544

46-
[project.optional-dependencies]
45+
[project.urls]
46+
homepage = 'https://github.com/mesonbuild/meson-python'
47+
repository = 'https://github.com/mesonbuild/meson-python'
48+
documentation = 'https://mesonbuild.com/meson-python/'
49+
changelog = 'https://mesonbuild.com/meson-python/changelog.html'
50+
51+
[dependency-groups]
4752
test = [
4853
'build',
4954
'pytest >= 6.0',
@@ -61,12 +66,6 @@ docs = [
6166
'sphinxext-opengraph >= 0.7.0',
6267
]
6368

64-
[project.urls]
65-
homepage = 'https://github.com/mesonbuild/meson-python'
66-
repository = 'https://github.com/mesonbuild/meson-python'
67-
documentation = 'https://mesonbuild.com/meson-python/'
68-
changelog = 'https://mesonbuild.com/meson-python/changelog.html'
69-
7069

7170
[tool.mypy]
7271
show_error_codes = true

0 commit comments

Comments
 (0)