diff --git a/.github/workflows/release.yml b/.github/workflows/python-publish.yml similarity index 100% rename from .github/workflows/release.yml rename to .github/workflows/python-publish.yml diff --git a/cppython/plugins/generator/cmake.py b/cppython/plugins/generator/cmake.py index 83e266a..b7300ce 100644 --- a/cppython/plugins/generator/cmake.py +++ b/cppython/plugins/generator/cmake.py @@ -18,7 +18,9 @@ class CMakeGenerator(Generator): """ def __init__(self, pyproject: PyProject, cmake_data: CMakeData) -> None: - super().__init__(pyproject, cmake_data) + """ + TODO + """ @staticmethod def name() -> str: diff --git a/cppython/project.py b/cppython/project.py index 92284b0..6bd8d7d 100644 --- a/cppython/project.py +++ b/cppython/project.py @@ -16,7 +16,10 @@ class Project(API): def __init__(self, interface: Interface, pyproject: PyProject) -> None: - self.enabled = pyproject.cppython != None + self.enabled = pyproject.cppython is not None + + if not self.enabled: + return self._interface = interface diff --git a/cppython/schema.py b/cppython/schema.py index 9b0c8eb..388800a 100644 --- a/cppython/schema.py +++ b/cppython/schema.py @@ -145,10 +145,6 @@ class Generator(Plugin, API): Abstract type to be inherited by CPPython Generator plugins """ - @abstractmethod - def __init__(self, pyproject: PyProject, generator_data: GeneratorData) -> None: - super().__init__() - @staticmethod def plugin_group() -> str: """