Skip to content

Commit

Permalink
chore: sort pixi init output (#1691)
Browse files Browse the repository at this point in the history
As discussed in
#1673 (comment)
  • Loading branch information
Hofer-Julian authored Jul 29, 2024
1 parent 56eb436 commit 98574e0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/cli/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 98574e0

Please sign in to comment.