aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/dlang.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-07-14 12:59:48 -0700
committerEli Schwartz <eschwartz93@gmail.com>2022-08-17 16:25:36 -0400
commit6843f56f6b8e71e75c287de31686913eea5e4a44 (patch)
treea92e933d88d48dd2bfd4a1fc2bb652296f053332 /mesonbuild/modules/dlang.py
parent2801ead6d3a144f3cf7ae03f61bb463c7aeac0a9 (diff)
downloadmeson-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/dlang.py')
-rw-r--r--mesonbuild/modules/dlang.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/mesonbuild/modules/dlang.py b/mesonbuild/modules/dlang.py
index d9255d9..7a9b99f 100644
--- a/mesonbuild/modules/dlang.py
+++ b/mesonbuild/modules/dlang.py
@@ -18,17 +18,18 @@
import json
import os
-from . import ExtensionModule
+from . import ExtensionModule, ModuleInfo
from .. import dependencies
from .. import mlog
-from ..interpreterbase import FeatureNew, typed_pos_args
+from ..interpreterbase import typed_pos_args
from ..mesonlib import Popen_safe, MesonException
class DlangModule(ExtensionModule):
class_dubbin = None
init_dub = False
- @FeatureNew('Dlang Module', '0.48.0')
+ INFO = ModuleInfo('dlang', '0.48.0')
+
def __init__(self, interpreter):
super().__init__(interpreter)
self.methods.update({