Skip to content

Commit 991985d

Browse files
committed
MAINT: bump minimum packaging version to 23.2
pyproject-metadata 0.9.1 requires packaging 23.2 or later, but does not record this dependency, see pypa/pyproject-metadata#239 This becomes a problem when meson-python is installed on a platform where packaging 19.0 (the current minimum required version) is installed. This does not trigger an update of packaging to the latest available version and results in run time errors, see scipy/scipy#22840 (comment) This could be fixed by a new release of pyproject-metadata, but we do not want meson-python to depend on very recent releases. meson-python supports pyproject-metadata 0.9.0 or later and still carries some work-arounds for issues in that release. The least invasive and most effective solution is to bump the packaging requirement for meson-python to 23.2. This also allows to remove a more restrictive packaging version requirement used for the tests optional dependencies, due to the use of API available only with packaging 23.1 or later in the meson-python tests. Fixes #733.
1 parent 2320a4b commit 991985d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ backend-path = ['.']
88
requires = [
99
'meson >= 0.64.0; python_version < "3.12"',
1010
'meson >= 1.2.3; python_version >= "3.12"',
11-
'packaging >= 19.0',
11+
'packaging >= 23.2',
1212
'pyproject-metadata >= 0.9.0',
1313
'tomli >= 1.0.0; python_version < "3.11"',
1414
]
@@ -36,15 +36,14 @@ classifiers = [
3636
dependencies = [
3737
'meson >= 0.64.0; python_version < "3.12"',
3838
'meson >= 1.2.3; python_version >= "3.12"',
39-
'packaging >= 19.0',
39+
'packaging >= 23.2',
4040
'pyproject-metadata >= 0.9.0',
4141
'tomli >= 1.0.0; python_version < "3.11"',
4242
]
4343

4444
[project.optional-dependencies]
4545
test = [
4646
'build',
47-
'packaging >= 23.1',
4847
'pytest >= 6.0',
4948
'pytest-cov[toml]',
5049
'pytest-mock',

0 commit comments

Comments
 (0)