Skip to content

Commit

Permalink
Fix jinja2 if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed Apr 13, 2024
1 parent 288da2f commit 93899dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion {{cookiecutter.project_slug}}/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
To set up [hatch] and [pre-commit] for the first time:

1. install [hatch] globally, e.g. with [pipx], i.e. `pipx install hatch`,
{% if cookiecutter.lock_file_support -%}
2. make sure `pre-commit` is installed globally, e.g. with `pipx install pre-commit`,

A special feature that makes hatch very different from other familiar tools is that you almost never
Expand Down
6 changes: 3 additions & 3 deletions {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ name = "{{ cookiecutter.project_slug }}"
description = "{{ cookiecutter.project_short_description }}"
readme = "README.md"
requires-python = ">={{ cookiecutter.target_python_version }}"
{%- if not cookiecutter.open_source_license == 'proprietary' %}
{%- if cookiecutter.open_source_license == 'proprietary' %}
license = { file = "LICENSE.txt" }
{% else -%}
# only license identifier from https://spdx.org/licenses/ are allowed
license = { text = "{{ cookiecutter.open_source_license }}"}
{% else -%}
license = { file = "LICENSE.txt" }
{%- endif %}

# keywords for easier look-up on PyPI
Expand Down

0 comments on commit 93899dd

Please sign in to comment.