vmklib.tasks.python package#
Submodules#
vmklib.tasks.python.build module#
A module for Python-package building tasks.
- class vmklib.tasks.python.build.PythonBuild(name: str, *args, execute: Callable[[Dict[str, Dict[str, Any]], Dict[str, Any]], Coroutine[Any, Any, bool]] = None, log: Logger = None, timer: Timer = None, target: Target = None, **kwargs)[source]#
Bases:
ConcreteOnceMixin
,SubprocessLogMixin
Build a Python package.
vmklib.tasks.python.datazen module#
A module for datazen tasks.
- class vmklib.tasks.python.datazen.DatazenTask(name: str, *args, execute: Callable[[Dict[str, Dict[str, Any]], Dict[str, Any]], Coroutine[Any, Any, bool]] = None, log: Logger = None, timer: Timer = None, target: Target = None, **kwargs)[source]#
Bases:
SubprocessLogMixin
A task for running datazen commands.
- default_requirements: _Set[str] = {'python-install-datazen', 'venv'}#
vmklib.tasks.python.docs module#
A module for Python documentation tasks.
- class vmklib.tasks.python.docs.PydepsTask(name: str, *args, execute: Callable[[Dict[str, Dict[str, Any]], Dict[str, Any]], Coroutine[Any, Any, bool]] = None, log: Logger = None, timer: Timer = None, target: Target = None, **kwargs)[source]#
Bases:
SubprocessLogMixin
A task for running pydeps.
- default_requirements: _Set[str] = {'python-install-pydeps', 'venv'}#
vmklib.tasks.python.lint module#
A module for registering Python linting tasks.
- class vmklib.tasks.python.lint.PythonLinter(name: str, *args, execute: Callable[[Dict[str, Dict[str, Any]], Dict[str, Any]], Coroutine[Any, Any, bool]] = None, log: Logger = None, timer: Timer = None, target: Target = None, **kwargs)[source]#
Bases:
SubprocessLogMixin
A task for running a Python linter.
- default_requirements: _Set[str] = {'venv'}#
- linter_args: dict[str, list[str]] = {'ruff': ['check']}#
vmklib.tasks.python.package module#
A module implementing a task for installing individual packages.
- class vmklib.tasks.python.package.PythonPackage(name: str, *args, execute: Callable[[Dict[str, Dict[str, Any]], Dict[str, Any]], Coroutine[Any, Any, bool]] = None, log: Logger = None, timer: Timer = None, target: Target = None, **kwargs)[source]#
Bases:
ConcreteOnceMixin
,SubprocessLogMixin
A task for installing a single Python package.
- default_requirements: _Set[str] = {'venv', 'vmklib.init'}#
vmklib.tasks.python.release module#
A module implementing a release task for Python projects.
vmklib.tasks.python.sa module#
A module for Python static-analysis tasks.
vmklib.tasks.python.test module#
A module for Python unit testing tasks.
- class vmklib.tasks.python.test.PythonTester(name: str, *args, execute: Callable[[Dict[str, Dict[str, Any]], Dict[str, Any]], Coroutine[Any, Any, bool]] = None, log: Logger = None, timer: Timer = None, target: Target = None, **kwargs)[source]#
Bases:
SubprocessLogMixin
A task for running pytest.
- default_requirements: _Set[str] = {'venv'}#
vmklib.tasks.python.yaml module#
A module implementing a task for running yamllint.
- class vmklib.tasks.python.yaml.Yamllint(name: str, *args, execute: Callable[[Dict[str, Dict[str, Any]], Dict[str, Any]], Coroutine[Any, Any, bool]] = None, log: Logger = None, timer: Timer = None, target: Target = None, **kwargs)[source]#
Bases:
SubprocessLogMixin
A task for running a YAML linter on project source(s).
- default_requirements: _Set[str] = {'python-install-yamllint', 'venv'}#
Module contents#
Utilities for working with Python.
- vmklib.tasks.python.python_entry(version: str = None) str [source]#
Attempt to get a Python entry-point as a string.
- vmklib.tasks.python.venv_bin(cwd: Path | str | None, program: str = None, version: str = None) Path [source]#
Get the path to a virtual environment’s script directory.