From 1b15d13ac5cd1e9249fb17ce6b2a9818a16c0e17 Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Fri, 10 Jan 2025 15:17:46 +0100 Subject: [PATCH] chore: version to v0.40.0 (#2876) --- CHANGELOG.md | 55 ++++++++++++++++++++++++++ CITATION.cff | 4 +- Cargo.lock | 2 +- Cargo.toml | 2 +- crates/pixi_consts/src/consts.rs | 2 +- docs/advanced/github_actions.md | 2 +- docs/advanced/production_deployment.md | 2 +- docs/ide_integration/devcontainer.md | 2 +- install/install.ps1 | 2 +- install/install.sh | 2 +- schema/schema.json | 4 +- tbump.toml | 4 +- tests/integration_python/common.py | 2 +- 13 files changed, 70 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b886202e..442e1c5c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,61 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +### [0.40.0] - 2025-01-10 +#### ✨ Highlights +Manifest file parsing has been significantly improved. +Errors will now be clearer and more helpful, for example: +```shell + × Expected one of 'first-index', 'unsafe-first-match', 'unsafe-best-match' + ╭─[pixi.toml:2:27] + 1 │ + 2 │ index-strategy = "UnsafeFirstMatch" + · ──────────────── + 3 │ + ╰──── + help: Did you mean 'unsafe-first-match'? +``` + +#### Breaking Change Alert: +The `depends_on` field has been renamed to `depends-on` for better consistency. +Using the old format without a dash (depends_on) will now result in an error. +The new errors should help you find the location: +```shell +Error: + × field 'depends_on' is deprecated, 'depends-on' has replaced it + ╭─[pixi.toml:22:51] + 21 │ install = "cargo install --path . --locked" + 22 │ install-as = { cmd = "python scripts/install.py", depends_on = [ + · ─────┬──── + · ╰── replace this with 'depends-on' + 23 │ "build-release", + ╰──── +``` + +#### Added +- Pixi add git source dependency by @nichmor in [#2858](https://github.com/prefix-dev/pixi/pull/2858) + +#### Documentation +- Fix installation docs mistake in index.md by @PanTheDev in [#2869](https://github.com/prefix-dev/pixi/pull/2869) + +#### Fixed +- Create missing global manifest folder with pixi global edit by @zbowling in [#2847](https://github.com/prefix-dev/pixi/pull/2847) +- Pixi add creates a project by @nichmor in [#2861](https://github.com/prefix-dev/pixi/pull/2861) +- Initialized detached envs with None by @ruben-arts in [#2841](https://github.com/prefix-dev/pixi/pull/2841) + +#### `pixi build` Preview work +- Build backend docs by @tdejager in [#2844](https://github.com/prefix-dev/pixi/pull/2844) +- Move pixi build type conversions into its own crate by @tdejager in [#2866](https://github.com/prefix-dev/pixi/pull/2866) +- Expose build type v1 function by @tdejager in [#2875](https://github.com/prefix-dev/pixi/pull/2875) +- Use toml-span for deserialization by @baszalmstra in [#2718](https://github.com/prefix-dev/pixi/pull/2718) +- Expands options for setting pixi-build override options by @tdejager in [#2843](https://github.com/prefix-dev/pixi/pull/2843) +- Split capability retrieval from initialize by @tdejager in [#2831](https://github.com/prefix-dev/pixi/pull/2831) +- Move package fields under `[package]`. by @baszalmstra in [#2731](https://github.com/prefix-dev/pixi/pull/2731) +- Extract pixi manifest info into protocol by @tdejager in [#2850](https://github.com/prefix-dev/pixi/pull/2850) + +#### New Contributors +* @PanTheDev made their first contribution in [#2869](https://github.com/prefix-dev/pixi/pull/2869) + ### [0.39.5] - 2025-01-06 #### ✨ Highlights By updating [`resolvo`](https://github.com/mamba-org/resolvo/pull/91) to the latest version we now significantly lower the RAM usage during the solve process. 🚀 diff --git a/CITATION.cff b/CITATION.cff index 7da00c0a5..5b55e9611 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -30,8 +30,8 @@ authors: - given-names: Julian family-names: Hofer email: julian.hofer@protonmail.com -repository-code: 'https://github.com/prefix-dev/pixi/releases/tag/v0.39.5' -url: 'https://pixi.sh/v0.39.5' +repository-code: 'https://github.com/prefix-dev/pixi/releases/tag/v0.40.0' +url: 'https://pixi.sh/v0.40.0' abstract: >- A cross-platform, language agnostic, package/project management tool for development in virtual environments. diff --git a/Cargo.lock b/Cargo.lock index f5a21dd4c..4b02ba913 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3627,7 +3627,7 @@ dependencies = [ [[package]] name = "pixi" -version = "0.39.5" +version = "0.40.0" dependencies = [ "ahash", "assert_matches", diff --git a/Cargo.toml b/Cargo.toml index 82d45d2b0..c55a72563 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -171,7 +171,7 @@ license.workspace = true name = "pixi" readme.workspace = true repository.workspace = true -version = "0.39.5" +version = "0.40.0" [features] default = ["rustls-tls"] diff --git a/crates/pixi_consts/src/consts.rs b/crates/pixi_consts/src/consts.rs index 406fe5610..a123c3095 100644 --- a/crates/pixi_consts/src/consts.rs +++ b/crates/pixi_consts/src/consts.rs @@ -16,7 +16,7 @@ pub const PYPROJECT_MANIFEST: &str = "pyproject.toml"; pub const CONFIG_FILE: &str = "config.toml"; pub const PIXI_VERSION: &str = match option_env!("PIXI_VERSION") { Some(v) => v, - None => "0.39.5", + None => "0.40.0", }; pub const PREFIX_FILE_NAME: &str = "pixi_env_prefix"; pub const ENVIRONMENTS_DIR: &str = "envs"; diff --git a/docs/advanced/github_actions.md b/docs/advanced/github_actions.md index 07825deb4..307e730f3 100644 --- a/docs/advanced/github_actions.md +++ b/docs/advanced/github_actions.md @@ -15,7 +15,7 @@ We created [prefix-dev/setup-pixi](https://github.com/prefix-dev/setup-pixi) to ```yaml - uses: prefix-dev/setup-pixi@v0.8.0 with: - pixi-version: v0.39.5 + pixi-version: v0.40.0 cache: true auth-host: prefix.dev auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} diff --git a/docs/advanced/production_deployment.md b/docs/advanced/production_deployment.md index a019bf25f..238dd651b 100644 --- a/docs/advanced/production_deployment.md +++ b/docs/advanced/production_deployment.md @@ -33,7 +33,7 @@ It also makes use of `pixi shell-hook` to not rely on pixi being installed in th For more examples, take a look at [pavelzw/pixi-docker-example](https://github.com/pavelzw/pixi-docker-example). ```Dockerfile -FROM ghcr.io/prefix-dev/pixi:0.39.5 AS build +FROM ghcr.io/prefix-dev/pixi:0.40.0 AS build # copy source code, pixi.toml and pixi.lock to the container WORKDIR /app diff --git a/docs/ide_integration/devcontainer.md b/docs/ide_integration/devcontainer.md index 93e9e9777..329d484a3 100644 --- a/docs/ide_integration/devcontainer.md +++ b/docs/ide_integration/devcontainer.md @@ -11,7 +11,7 @@ Then, create the following two files in the `.devcontainer` directory: ```dockerfile title=".devcontainer/Dockerfile" FROM mcr.microsoft.com/devcontainers/base:jammy -ARG PIXI_VERSION=v0.39.5 +ARG PIXI_VERSION=v0.40.0 RUN curl -L -o /usr/local/bin/pixi -fsSL --compressed "https://github.com/prefix-dev/pixi/releases/download/${PIXI_VERSION}/pixi-$(uname -m)-unknown-linux-musl" \ && chmod +x /usr/local/bin/pixi \ diff --git a/install/install.ps1 b/install/install.ps1 index 7d60fb2ff..7a5d4c5ce 100644 --- a/install/install.ps1 +++ b/install/install.ps1 @@ -18,7 +18,7 @@ .LINK https://github.com/prefix-dev/pixi .NOTES - Version: v0.39.5 + Version: v0.40.0 #> param ( [string] $PixiVersion = 'latest', diff --git a/install/install.sh b/install/install.sh index 77317296d..799095bac 100644 --- a/install/install.sh +++ b/install/install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash set -euo pipefail -# Version: v0.39.5 +# Version: v0.40.0 __wrap__() { diff --git a/schema/schema.json b/schema/schema.json index 79b95e040..603757993 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://pixi.sh/v0.39.5/schema/manifest/schema.json", + "$id": "https://pixi.sh/v0.40.0/schema/manifest/schema.json", "title": "`pixi.toml` manifest file", "description": "The configuration for a [`pixi`](https://pixi.sh) project.", "type": "object", @@ -22,7 +22,7 @@ "title": "Schema", "description": "The schema identifier for the project's configuration", "type": "string", - "default": "https://pixi.sh/v0.39.5/schema/manifest/schema.json", + "default": "https://pixi.sh/v0.40.0/schema/manifest/schema.json", "format": "uri-reference" }, "activation": { diff --git a/tbump.toml b/tbump.toml index b79a493e4..8b04c661e 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/prefix-dev/pixi" [version] -current = "0.39.5" +current = "0.40.0" # Example of a semver regexp. # Make sure this matches current_version before @@ -19,7 +19,7 @@ regex = ''' [git] # The current version will get updated when tbump is run -message_template = "Bump version: 0.39.5 → {new_version}" +message_template = "Bump version: 0.40.0 → {new_version}" tag_template = "v{new_version}" # For each file to patch, add a [[file]] config diff --git a/tests/integration_python/common.py b/tests/integration_python/common.py index 4f9902201..728e379c8 100644 --- a/tests/integration_python/common.py +++ b/tests/integration_python/common.py @@ -6,7 +6,7 @@ from rattler import Platform -PIXI_VERSION = "0.39.5" +PIXI_VERSION = "0.40.0" ALL_PLATFORMS = '["linux-64", "osx-64", "osx-arm64", "win-64", "linux-ppc64le", "linux-aarch64"]'