Skip to content

Commit 678dd56

Browse files
FFY00rgommers
authored andcommitted
MAINT: rename the pyproject.toml tool config table to meson-python
Signed-off-by: Filipe Laíns <[email protected]>
1 parent 722dd75 commit 678dd56

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mesonpy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,11 +625,11 @@ def __init__(
625625

626626
def _get_config_key(self, key: str) -> Any:
627627
value: Any = self._config
628-
for part in f'tool.mesonpy.{key}'.split('.'):
628+
for part in f'tool.meson-python.{key}'.split('.'):
629629
if not isinstance(value, Mapping):
630630
raise ConfigError(
631631
f'Found unexpected value in `{part}` when looking for '
632-
f'config key `tool.mesonpy.{key}` (`{value}`)'
632+
f'config key `tool.meson-python.{key}` (`{value}`)'
633633
)
634634
value = value.get(part, {})
635635
return value

tests/packages/user-args/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
build-backend = 'mesonpy'
33
requires = ['meson-python']
44

5-
[tool.mesonpy.args]
5+
[tool.meson-python.args]
66
dist = ['config-dist']
77
setup = ['config-setup']
88
compile = ['config-compile']

0 commit comments

Comments
 (0)