modules: Add stabilization information to ModuleInfo

We're going to do more with this in the next commit, but this just adds
the information for now. This allows the next commit have 100% mv
changes for some of the modules, which makes review easier
pull/10702/head
Dylan Baker 3 years ago committed by Eli Schwartz
parent 6843f56f6b
commit c32f83a829
  1. 2
      mesonbuild/modules/__init__.py
  2. 2
      mesonbuild/modules/keyval.py
  3. 2
      mesonbuild/modules/unstable_cuda.py
  4. 2
      mesonbuild/modules/unstable_external_project.py
  5. 2
      mesonbuild/modules/unstable_icestorm.py
  6. 2
      mesonbuild/modules/unstable_rust.py
  7. 2
      mesonbuild/modules/unstable_simd.py
  8. 2
      mesonbuild/modules/unstable_wayland.py

@ -173,6 +173,8 @@ class ModuleInfo:
name: str
added: T.Optional[str] = None
deprecated: T.Optional[str] = None
unstable: bool = False
stabilized: T.Optional[str] = None
class NewExtensionModule(ModuleObject):

@ -25,7 +25,7 @@ if T.TYPE_CHECKING:
class KeyvalModule(ExtensionModule):
INFO = ModuleInfo('keyval', '0.55.0')
INFO = ModuleInfo('keyval', '0.55.0', stabilized='0.56.0')
def __init__(self, interp: 'Interpreter'):
super().__init__(interp)

@ -32,7 +32,7 @@ if T.TYPE_CHECKING:
class CudaModule(NewExtensionModule):
INFO = ModuleInfo('CUDA', '0.50.0')
INFO = ModuleInfo('CUDA', '0.50.0', unstable=True)
def __init__(self, *args, **kwargs):
super().__init__()

@ -274,7 +274,7 @@ class ExternalProject(NewExtensionModule):
class ExternalProjectModule(ExtensionModule):
INFO = ModuleInfo('External build system', '0.56.0')
INFO = ModuleInfo('External build system', '0.56.0', unstable=True)
def __init__(self, interpreter: 'Interpreter'):
super().__init__(interpreter)

@ -36,7 +36,7 @@ if T.TYPE_CHECKING:
class IceStormModule(ExtensionModule):
INFO = ModuleInfo('FPGA/Icestorm', '0.45.0')
INFO = ModuleInfo('FPGA/Icestorm', '0.45.0', unstable=True)
def __init__(self, interpreter: Interpreter) -> None:
super().__init__(interpreter)

@ -50,7 +50,7 @@ class RustModule(ExtensionModule):
"""A module that holds helper functions for rust."""
INFO = ModuleInfo('rust', '0.57.0')
INFO = ModuleInfo('rust', '0.57.0', unstable=True)
def __init__(self, interpreter: 'Interpreter') -> None:
super().__init__(interpreter)

@ -19,7 +19,7 @@ from . import ExtensionModule, ModuleInfo
class SimdModule(ExtensionModule):
INFO = ModuleInfo('SIMD', '0.42.0')
INFO = ModuleInfo('SIMD', '0.42.0', unstable=True)
def __init__(self, interpreter):
super().__init__(interpreter)

@ -45,7 +45,7 @@ if T.TYPE_CHECKING:
class WaylandModule(ExtensionModule):
INFO = ModuleInfo('wayland', '0.62.0')
INFO = ModuleInfo('wayland', '0.62.0', unstable=True)
def __init__(self, interpreter: Interpreter) -> None:
super().__init__(interpreter)

Loading…
Cancel
Save