github prefix-dev/pixi v0.46.0
0.46.0 - 2025-04-22

latest releases: v0.61.0, v0.60.0, v0.59.0...
7 months ago

Release Notes

⚠️ Breaking Change

arg names in tasks can no longer contain dashes (-).
This restriction is due to the integration of Minijinja for rendering tasks, where dashes could be misinterpreted as a subtraction operator.

✨ Highlights

This release comes with another set of features for the tasks!

  • The command of a task is now able to use minijinja for rendering the command.
 [tasks]
# The arg `text`, converted to uppercase, will be printed.
task1 = { cmd = "echo {{ text | upper }}", args = ["text"] }
# If arg `text` contains 'hoi', it will be converted to lowercase. The result will be printed.
task2 = { cmd = "echo {{ text | lower if 'hoi' in text }}", args = [
  { arg = "text", default = "" },
] }
# With `a` and `b` being strings, they will be appended and then printed.
task3 = { cmd = "echo {{ a + b }}", args = ["a", { arg = "b", default = "!" }] }
# `names` will be split by whitespace and then every name will be printed separately
task4 = { cmd = "{% for name in names | split %} echo {{ name }};{% endfor %}", args = [
  "names",
] }
  • Shortened composition of tasks with depends-on key.
[tasks]
test-all = [{ task = "test", args = ["all"] }]
# Equivalent to: test-all = { depends-on = [{task = "test", args = ["all"] }]}
  • The depends-on key can now include the environment that the task should run in.
[tasks]
# Using the shortened composition of tasks
test-all = [
  { task = "test", environment = "py311" },
  { task = "test", environment = "py312" },
]

Added

Changed

  • Format shell script with shfmt by @gzm55 in #3552
  • Improve error message at missing pixi section by @joyanedel in #3516
  • Install.sh supports installing without tar and unzip commands by @gzm55 in #3551

Documentation

Fixed

Refactor

New Contributors

Download pixi 0.46.0

File Platform Checksum
pixi-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
pixi-x86_64-apple-darwin.tar.gz Intel macOS checksum
pixi-aarch64-pc-windows-msvc.zip ARM64 Windows checksum
pixi-aarch64-pc-windows-msvc.msi ARM64 Windows checksum
pixi-x86_64-pc-windows-msvc.zip x64 Windows checksum
pixi-x86_64-pc-windows-msvc.msi x64 Windows checksum
pixi-aarch64-unknown-linux-musl.tar.gz ARM64 MUSL Linux checksum
pixi-x86_64-unknown-linux-musl.tar.gz x64 MUSL Linux checksum

Don't miss a new pixi release

NewReleases is sending notifications on new releases.