Resolver#
Feature-to-environment resolution.
Feature-to-environment resolver.
Takes a WorkspaceConfig and resolves which conda/PyPI packages
need to be installed for a given environment by composing its
constituent features.
- class conda_workspaces.resolver.ResolvedEnvironment(name: str, conda_dependencies: dict[str, MatchSpec]=<factory>, pypi_dependencies: dict[str, PyPIDependency]=<factory>, channels: list[Channel] = <factory>, platforms: list[str] = <factory>, activation_scripts: list[str] = <factory>, activation_env: dict[str, str]=<factory>, system_requirements: dict[str, str]=<factory>, channel_priority: str | None = None)[source]#
The fully resolved dependency set for a single environment.
This is what the environment manager uses to install or update a project-local conda environment.
- activation_env: dict[str, str]#
- activation_scripts: list[str]#
- channel_priority: str | None = None#
- channels: list[Channel]#
- conda_dependencies: dict[str, MatchSpec]#
- name: str#
- platforms: list[str]#
- pypi_dependencies: dict[str, PyPIDependency]#
- system_requirements: dict[str, str]#
- conda_workspaces.resolver.resolve_all_environments(config: WorkspaceConfig, platform: str | None = None) dict[str, ResolvedEnvironment][source]#
Resolve all environments in the workspace.
Returns a dict mapping environment name to its resolved deps.
- conda_workspaces.resolver.resolve_environment(config: WorkspaceConfig, env_name: str, platform: str | None = None) ResolvedEnvironment[source]#
Resolve an environment by composing its features.
Merges conda deps, PyPI deps, channels, activation scripts/env, and system requirements across all features in the environment.
If platform is given, target-specific overrides are included and platform support is validated.