diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-07-14 12:59:48 -0700 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-08-17 16:25:36 -0400 |
commit | 6843f56f6b8e71e75c287de31686913eea5e4a44 (patch) | |
tree | a92e933d88d48dd2bfd4a1fc2bb652296f053332 /mesonbuild/modules/unstable_wayland.py | |
parent | 2801ead6d3a144f3cf7ae03f61bb463c7aeac0a9 (diff) | |
download | meson-6843f56f6b8e71e75c287de31686913eea5e4a44.zip meson-6843f56f6b8e71e75c287de31686913eea5e4a44.tar.gz meson-6843f56f6b8e71e75c287de31686913eea5e4a44.tar.bz2 |
modules: use module level information about new and deprecation
Instead of using FeatureNew/FeatureDeprecated in the module.
The goal here is to be able to handle information about modules in a
single place, instead of having to handle it separately. Each module
simply defines some metadata, and then the interpreter handles the rest.
Diffstat (limited to 'mesonbuild/modules/unstable_wayland.py')
-rw-r--r-- | mesonbuild/modules/unstable_wayland.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mesonbuild/modules/unstable_wayland.py b/mesonbuild/modules/unstable_wayland.py index 94c11f1..392e1a7 100644 --- a/mesonbuild/modules/unstable_wayland.py +++ b/mesonbuild/modules/unstable_wayland.py @@ -16,10 +16,10 @@ from __future__ import annotations import os import typing as T -from . import ExtensionModule, ModuleReturnValue +from . import ExtensionModule, ModuleReturnValue, ModuleInfo from ..build import CustomTarget from ..interpreter.type_checking import NoneType, in_set_validator -from ..interpreterbase import FeatureNew, typed_pos_args, typed_kwargs, KwargInfo +from ..interpreterbase import typed_pos_args, typed_kwargs, KwargInfo from ..mesonlib import File, MesonException if T.TYPE_CHECKING: @@ -45,7 +45,8 @@ if T.TYPE_CHECKING: class WaylandModule(ExtensionModule): - @FeatureNew('wayland module', '0.62.0') + INFO = ModuleInfo('wayland', '0.62.0') + def __init__(self, interpreter: Interpreter) -> None: super().__init__(interpreter) |