Skip to content

Commit 5e96ca7

Browse files
dnicolodirgommers
authored andcommitted
MAINT: bump minimum required Meson version to 0.64.0
Depending on 0.64.0 or later allows to use the pure argument when invoking the import('python').find_installation() Meson function, which makes for some nicer test and example code. Meson 0.64.0 was released on November 6th, 2022, just over a month after the current minimum supported version.
1 parent 9faca83 commit 5e96ca7

File tree

4 files changed

+5
-25
lines changed

4 files changed

+5
-25
lines changed

.github/workflows/tests.yml

-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ jobs:
7070
# Test with older supported Meson version. Meson up to
7171
# version 1.2.3 requires distutils, which has been removed
7272
# from the stdlib in Python 3.12, thus test with Pythn 3.11.
73-
- os: ubuntu-latest
74-
python: '3.11'
75-
meson: '~=0.63.3'
7673
- os: ubuntu-latest
7774
python: '3.11'
7875
meson: '~=0.64.0'

docs/reference/meson-compatibility.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ maintain compatibility with as old as possible Meson releases.
1515
However, some functionality is available only with more recent Meson
1616
versions.
1717

18-
.. option:: 0.63.3
18+
.. option:: 0.64.0
1919

20-
Meson is 0.63.3 is the minimum required version.
20+
Meson is 0.64.0 is the minimum required version.
2121

2222
.. option:: 1.1.0
2323

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
build-backend = 'mesonpy'
77
backend-path = ['.']
88
requires = [
9-
'meson >= 0.63.3; python_version < "3.12"',
9+
'meson >= 0.64.0; python_version < "3.12"',
1010
'meson >= 1.2.3; python_version >= "3.12"',
1111
'packaging >= 19.0',
1212
'pyproject-metadata >= 0.8.0',
@@ -34,7 +34,7 @@ classifiers = [
3434
]
3535

3636
dependencies = [
37-
'meson >= 0.63.3; python_version < "3.12"',
37+
'meson >= 0.64.0; python_version < "3.12"',
3838
'meson >= 1.2.3; python_version >= "3.12"',
3939
'packaging >= 19.0',
4040
'pyproject-metadata >= 0.8.0',

tests/packages/subdirs/meson.build

+1-18
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,7 @@ project('subdirs', version: '1.0.0')
66

77
py = import('python').find_installation()
88

9-
# in Meson >= 0.64 this could be replace with a single
10-
# py.install_sources() with the 'preserve_path: true' argument.
119
py.install_sources(
1210
'subdirs/__init__.py',
13-
subdir: 'subdirs',
14-
)
15-
16-
py.install_sources(
17-
'subdirs/a/__init__.py',
18-
subdir: 'subdirs/a',
19-
)
20-
21-
py.install_sources(
22-
'subdirs/a/b/c.py',
23-
subdir: 'subdirs/a/b',
24-
)
25-
26-
py.install_sources(
27-
'subdirs/b/c.py',
28-
subdir: 'subdirs/b',
11+
preserve_path: true,
2912
)

0 commit comments

Comments
 (0)