From 61bcc4a021473b814c70014680e95da77a2789c9 Mon Sep 17 00:00:00 2001 From: Florian Wilhelm Date: Fri, 10 Nov 2023 18:16:08 +0100 Subject: [PATCH] license doesn't break hatch as it is no SPX license --- CHANGELOG.md | 4 ++++ {{cookiecutter.project_slug}}/pyproject.toml | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2aa462f..4fd52ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Version 0.2.3 + +- fix: license `propriertary` doesn't break hatch as it is no SPX license + ## Version 0.2.2 - Fix: replace periods with underscores when determining `pkg_name` from `project_slug` diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index 0267345..855615a 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -11,8 +11,12 @@ name = "{{ cookiecutter.project_slug }}" description = "{{ cookiecutter.project_short_description }}" readme = "README.md" requires-python = ">={{ cookiecutter.target_python_version }}" -# use license identifier from https://spdx.org/licenses/ +{% if not cookiecutter.open_source_license == 'proprietary' %} +# only license identifier from https://spdx.org/licenses/ allowed license = "{{ cookiecutter.open_source_license }}" +{% endif %} +license-files = { paths = ["LICENSE.txt"] } + # keywords for easier look-up on PyPI keywords = ["keyword_1", "keyword_2"] # ToDo: Modify according to your needs! authors = [ @@ -180,7 +184,7 @@ unfixable = [ ] [tool.ruff.format] -quote-style = 'single' # be more like black +quote-style = "single" # be more like black [tool.ruff.isort] known-first-party = ["{{ cookiecutter.pkg_name }}"]