pjkm.core.tasks.install.pdm_install

Install task: run pdm install in the generated project.

Classes

PdmInstallTask

Runs pdm install in the generated project directory.

Module Contents

class pjkm.core.tasks.install.pdm_install.PdmInstallTask[source]

Bases: pjkm.core.tasks.base.BaseTask

Runs pdm install in the generated project directory.

id = 'pdm_install'[source]
phase[source]
depends_on = [][source]
description = 'Install project dependencies with PDM'[source]
should_run(ctx)[source]

Override to conditionally skip this task based on context.

Parameters:

ctx (pjkm.core.engine.task_context.TaskContext)

Return type:

bool

execute(ctx)[source]

Run the task and return its result.

Parameters:

ctx (pjkm.core.engine.task_context.TaskContext)

Return type:

pjkm.core.models.task.TaskResult