This commit is contained in:
Marc Beninca 2024-09-14 18:15:42 +02:00
parent 148f757d5d
commit 4d8c1d7aab
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
3 changed files with 2 additions and 16 deletions

View file

@ -1,17 +1,11 @@
"""Debian operating system.""" """Debian operating system."""
from pathlib import Path
from . import OS from . import OS
class Debian(OS): class Debian(OS):
"""Debian operating system.""" """Debian operating system."""
def __init__(self, path: Path) -> None:
"""Initialize."""
super().__init__(path)
def get_name(self) -> str: def get_name(self) -> str:
"""Return name.""" """Return name."""
return "Debian" return "Debian"

View file

@ -7,10 +7,6 @@ from rwx.ps import Command
class APT(PM): class APT(PM):
"""Advanced Package Tool.""" """Advanced Package Tool."""
def __init__(self) -> None:
"""Initialize."""
super().__init__()
def get_install_command(self) -> Command: def get_install_command(self) -> Command:
"""Return install command.""" """Return install command."""
return Command() return Command()

View file

@ -14,10 +14,6 @@ from rwx.prj import Project
class SphinxProject(Project): class SphinxProject(Project):
"""Child class for a project based on Sphinx.""" """Child class for a project based on Sphinx."""
def __init__(self, file_path: str) -> None:
"""Call the parent constructor."""
super().__init__(file_path)
def build(self) -> None: def build(self) -> None:
"""Build the project.""" """Build the project."""
output_root: Path = self.root / "out" output_root: Path = self.root / "out"
@ -31,9 +27,9 @@ class SphinxProject(Project):
"-D", "-D",
f"project={self.name}", f"project={self.name}",
"-D", "-D",
"master_doc={}".format("index"), "master_doc=index",
"-D", "-D",
"html_theme={}".format("sphinx_rtd_theme"), "html_theme=sphinx_rtd_theme",
"-c", "-c",
str(self.root), str(self.root),
# "-C", # "-C",