Skip to content

Commit 076563b

Browse files
committed
MAINT: switch from extra dependencies to dependency groups
1 parent bade715 commit 076563b

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.cirrus.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ test_template: &test
88
- python3 --version
99
- python3 -m venv env
1010
- . env/bin/activate
11-
- python3 -m pip install .[test]
11+
- python3 -m pip install -U pip
12+
- python3 -m pip install . --group test
1213
- python3 -m pytest
1314

1415
alpine-3_task:

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/checkout@v4
3333
with:
3434
ref: ${{ github.event.inputs.tag || github.ref }}
35-
- run: python -m pip install .[docs]
35+
- run: python -m pip install --group docs
3636
- run: python -m sphinx -W docs/ build/docs/
3737
- uses: actions/upload-pages-artifact@v3
3838
with:

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
if: ${{ matrix.dependencies }}
140140

141141
- name: Install
142-
run: python -m pip install .[test]
142+
run: python -m pip install . --group test
143143

144144
- name: Run tests
145145
run: python -m pytest --showlocals -vv --cov --cov-report=xml
@@ -182,7 +182,7 @@ jobs:
182182
if: ${{ matrix.meson }}
183183

184184
- name: Install
185-
run: python -m pip install .[test]
185+
run: python -m pip install . --group test
186186

187187
- name: Run tests
188188
run: python -m pytest --showlocals -vv
@@ -255,7 +255,7 @@ jobs:
255255
pushd /usr/share/python-wheels/
256256
python -m pip download setuptools pip
257257
popd
258-
python -m pip install .[test]
258+
python -m pip install . --group test
259259
shell: C:\cygwin\bin\env.exe CYGWIN_NOWINPATH=1 CHERE_INVOKING=1 C:\cygwin\bin\bash.exe -leo pipefail -o igncr {0}
260260

261261
- name: Run tests
@@ -294,7 +294,7 @@ jobs:
294294
if: ${{ matrix.meson }}
295295

296296
- name: Install
297-
run: python -m pip install .[test]
297+
run: python -m pip install . --group test
298298

299299
- name: Run tests
300300
run: python -m pytest --showlocals -vv

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)