pixi workspace dependencies add#
Add dependencies to the [workspace.dependencies] table
Usage#
Arguments#
-
<SPEC>- The dependency as names or conda MatchSpecs
May be provided more than once.
required:true
Options#
-
--path <PATH>- The local path to use when adding a workspace path dependency
Git Options#
-
--git (-g) <GIT>- The git url to use when adding a workspace git dependency
-
--branch <BRANCH>- The git branch
-
--tag <TAG>- The git tag
-
--rev <REV>- The git revision
-
--subdirectory <SUBDIRECTORY>- The subdirectory of the git repository to use
Examples#
pixi workspace dependencies add numpy # (1)!
pixi workspace dependencies add "numpy=1.*" boltons # (2)!
pixi workspace dependencies add shared-lib --path packages/shared-lib # (3)!
pixi workspace dependencies add shared-lib --path /absolute/path/to/shared-lib # (4)!
pixi workspace dependencies add shared-lib --git https://github.com/org/shared-lib # (5)!
pixi workspace dependencies add shared-lib --git https://github.com/org/shared-lib --branch main --subdirectory recipe # (6)!
pixi workspace dependencies add shared-lib --git https://github.com/org/shared-lib --tag v1.2.3 # (7)!
pixi workspace dependencies add shared-lib --git https://github.com/org/shared-lib --rev e50d4a1 # (8)!
- Add
numpywith the default spec. - Add multiple MatchSpecs to the workspace dependencies.
- Add a local pixi-build package from a path stored relative to the workspace manifest.
- Absolute input paths are also stored relative to the workspace manifest.
- Add a pixi-build source package from a git repository.
- Select a branch and package subdirectory within the repository.
- Select a git tag.
- Select a git revision.