From 98574e015ff575969f012f9cb5595601c90b79a3 Mon Sep 17 00:00:00 2001 From: Hofer-Julian <30049909+Hofer-Julian@users.noreply.github.com> Date: Mon, 29 Jul 2024 10:11:22 +0200 Subject: [PATCH] chore: sort `pixi init` output (#1691) As discussed in https://github.com/prefix-dev/pixi/pull/1673#issuecomment-2252472007 --- src/cli/init.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cli/init.rs b/src/cli/init.rs index 7f825b933..894b4bfcc 100644 --- a/src/cli/init.rs +++ b/src/cli/init.rs @@ -47,14 +47,14 @@ pub struct Args { /// /// This uses a template just to simplify the flexibility of emitting it. const PROJECT_TEMPLATE: &str = r#"[project] -name = "{{ name }}" -version = "{{ version }}" -description = "Add a short description here" {%- if author %} authors = ["{{ author[0] }} <{{ author[1] }}>"] {%- endif %} channels = {{ channels }} +description = "Add a short description here" +name = "{{ name }}" platforms = {{ platforms }} +version = "{{ version }}" {%- if index_url or extra_indexes %} @@ -96,18 +96,18 @@ default = { solve-group = "default" } /// /// This is used to create a pyproject.toml from scratch const NEW_PYROJECT_TEMPLATE: &str = r#"[project] -name = "{{ name }}" -version = "{{ version }}" -description = "Add a short description here" {%- if author %} authors = [{name = "{{ author[0] }}", email = "{{ author[1] }}"}] {%- endif %} -requires-python = ">= 3.11" dependencies = [] +description = "Add a short description here" +name = "{{ name }}" +requires-python = ">= 3.11" +version = "{{ version }}" [build-system] -requires = ["setuptools"] build-backend = "setuptools.build_meta" +requires = ["setuptools"] [tool.pixi.project] channels = {{ channels }}