diff --git a/copier.yaml b/copier.yaml index 3933d8b9..d751af59 100644 --- a/copier.yaml +++ b/copier.yaml @@ -26,6 +26,10 @@ project_description: default: Project brief description. help: "Provide a concise description to be used in the Python package overview and the introductory paragraph in the README and documentation's index page:" type: str +project_keywords: + default: "{{ project_name|lower }}" + type: str + help: "Provide a list of comma-separated keywords to be using in the Python package overview:" development_status: default: Alpha choices: diff --git a/includes/copier-answers-sample.yml b/includes/copier-answers-sample.yml index 3ad46a4a..caa7f90f 100644 --- a/includes/copier-answers-sample.yml +++ b/includes/copier-answers-sample.yml @@ -4,10 +4,10 @@ copyright_holder: Serious Scaffold copyright_license: MIT License copyright_year: 2022-2024 coverage_threshold: 100 -default_py: '3.12' +default_py: "3.12" development_status: Alpha -max_py: '3.13' -min_py: '3.9' +max_py: "3.13" +min_py: "3.9" module_name: ss_python organization_name: Serious Scaffold package_name: ss-python @@ -15,8 +15,8 @@ platforms: - macos - linux - windows -project_description: - A Python Project Template for Long-Term Maintainability. +project_description: A Python Project Template for Long-Term Maintainability. +project_keywords: copier-template, project-template, long-term-maintainability project_name: Serious Scaffold Python repo_name: ss-python repo_namespace: serious-scaffold diff --git a/pyproject.toml b/pyproject.toml index 662ab0f1..77cb8eaa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ description = "A Python Project Template for Long-Term Maintainability." readme = "README.md" keywords = [ "copier-template", - "full-development-lifecycle", + "long-term-maintainability", "project-template", "serious-scaffold", ] diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index 6e93909f..8ea22a62 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -13,10 +13,10 @@ name = "{{ package_name }}" description = "{{ project_description }}" readme = "README.md" keywords = [ - "copier-template", - "full-development-lifecycle", - "project-template", - "serious-scaffold", +{% set keywords = (project_keywords.split(",") | map("trim") | list) + ["serious-scaffold"] %} +{% for keyword in keywords | sort %} + "{{ keyword }}", +{% endfor %} ] {% if copyright_license == "Apache Software License" %} license = { text = "Apache-2.0" }