Skip to content

Commit 5457928

Browse files
committed
chore: attempt to fix whitespace issues with pyproject.toml
1 parent 237aeb5 commit 5457928

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

{{cookiecutter.project_name}}/pyproject.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,14 @@ dev = [
4747
Homepage = "https://github.com/{{ cookiecutter.github_user | lower | replace(' ', '-') }}/{{ cookiecutter.project_name.replace('_', '-') }}"
4848
Repository = "https://github.com/{{ cookiecutter.github_user | lower | replace(' ', '-') }}/{{ cookiecutter.project_name.replace('_', '-') }}"
4949

50-
[build-system]
51-
requires = [{% if cookiecutter.add_rust_extension == 'y' -%} "maturin>=1.3.0,<2.0" {% else -%} "setuptools>=61.0" {% endif -%}]
52-
build-backend = {% if cookiecutter.add_rust_extension == 'y' -%} "maturin" {% else -%} "setuptools.build_meta" {% endif -%}
5350
{% if cookiecutter.add_rust_extension == 'y' -%}
51+
[build-system]
52+
requires = "maturin>=1.3.0,<2.0"
53+
build-backend = "maturin"
54+
{% else -%}
55+
[build-system]
56+
requires = "setuptools>=61.0"
57+
build-backend = "setuptools.build_meta"
5458

5559
[tool.maturin]
5660
rust-src = "rust"

0 commit comments

Comments
 (0)