pyk.kbuild.project module
-
final class PackageSource(package: 'str')[source]
Bases: Source
-
package: str
-
resolve(project_path: Path) → Path[source]
-
final class PathSource(path: 'Path')[source]
Bases: Source
-
path: Path
-
resolve(project_path: Path) → Path[source]
-
final class Project(*, path: 'str | Path', name: 'str', version: 'str', source_dir: 'str | Path', resources: 'Mapping[str, str | Path] | None' = None, dependencies: 'Iterable[Project]' = (), targets: 'Iterable[Target]' = ())[source]
Bases: object
-
property all_files: list[Path]
-
dependencies: tuple[Project, ...]
-
get_target(target_name: str) → Target[source]
-
static load(project_file: str | Path) → Project[source]
-
static load_from_dir(project_dir: str | Path) → Project[source]
-
name: str
-
path: Path
-
property project_file: Path
-
property resource_file_names: dict[str, list[str]]
-
property resource_files: dict[str, list[Path]]
-
resources: FrozenDict[str, Path]
-
source_dir: Path
-
property source_file_names: list[str]
-
property source_files: list[Path]
-
property sub_projects: tuple[Project, ...]
-
targets: tuple[Target, ...]
-
version: str
-
class Source[source]
Bases: ABC
-
static from_dict(dct: Mapping[str, Any]) → Source[source]
-
abstract resolve(project_path: Path) → Path[source]
-
final class Target(*, name: 'str', args: 'Mapping[str, Any]')[source]
Bases: object
-
args: dict[str, Any]
-
name: str