Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tests/data/pixi_build/multi-output-pin/pixi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[workspace]
authors = ["Wolf Vollprecht <[email protected]>"]
channels = ["https://prefix.dev/conda-forge"]
description = "Add a short description here"
name = "multi-output"
platforms = ["osx-arm64", "linux-64", "win-64"]
preview = ["pixi-build"]
version = "0.1.0"

[dependencies]
multi-output-pin = { path = "./recipe" }
15 changes: 15 additions & 0 deletions tests/data/pixi_build/multi-output-pin/recipe/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
recipe:
name: multi-output-pin
version: "0.1.0"

build:
number: 0

outputs:
- package:
name: libmulti-output-pin
- package:
name: multi-output-pin
requirements:
build:
- ${{ pin_subpackage('libmulti-output-pin', exact=True) }}
13 changes: 13 additions & 0 deletions tests/integration_python/test_multi_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ def test_install(pixi: Path, build_data: Path, tmp_pixi_workspace: Path) -> None
verify_cli_command([pixi, "install", "-v", "--locked", "--manifest-path", tmp_pixi_workspace])


def test_install_multioutput_pin(pixi: Path, build_data: Path, tmp_pixi_workspace: Path) -> None:
project = "multi-output-pin"
test_data = build_data.joinpath(project)
test_data.joinpath("pixi.lock").unlink(missing_ok=True)
shutil.copytree(test_data, tmp_pixi_workspace, dirs_exist_ok=True)

# Run `install` should work and create a lock file
verify_cli_command([pixi, "install", "-v", "--manifest-path", tmp_pixi_workspace])

# Running `install` again require a lock file update
verify_cli_command([pixi, "install", "-v", "--locked", "--manifest-path", tmp_pixi_workspace])


def test_available_packages(pixi: Path, build_data: Path, tmp_pixi_workspace: Path) -> None:
project = "multi-output"
test_data = build_data.joinpath(project)
Expand Down