From 0370cf9106541648bfe0635af137c0526dfb846c Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Mon, 1 Sep 2025 17:28:09 +0200 Subject: [PATCH] refactor: :recycle: create homepage as variable, not question --- copier.yaml | 10 +++++----- template/CITATION.cff.jinja | 1 + template/pyproject.toml.jinja | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/copier.yaml b/copier.yaml index ebbd734..0b25425 100644 --- a/copier.yaml +++ b/copier.yaml @@ -72,11 +72,6 @@ hosting_provider: - netlify - gh-pages -homepage: - type: str - help: "What is the homepage of your project?" - default: "{{ 'https://%s.seedcase-project.org' % github_repo if is_seedcase_project else '' }}" - author_given_name: type: str help: "What is your first/given name?" @@ -116,3 +111,8 @@ copyright_year: type: str default: "{{ copyright_year | default('%Y' | strftime) }}" when: false + +homepage: + type: str + default: "https://{{ github_repo }}.{{ github_user }}.org" + when: false diff --git a/template/CITATION.cff.jinja b/template/CITATION.cff.jinja index 0293166..c26d28f 100644 --- a/template/CITATION.cff.jinja +++ b/template/CITATION.cff.jinja @@ -21,4 +21,5 @@ keywords: license: MIT message: "If you use this Python package, please cite it using these metadata." repository-code: "https://github.com/{{ github_repo_spec }}" +# TODO: Confirm URL url: "{{ homepage }}" diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index d56d951..cda9b22 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -18,6 +18,7 @@ requires-python = ">=3.12" dependencies = [] [project.urls] +# TODO: Confirm URL homepage = "{{ homepage }}" repository = "https://github.com/{{ github_repo_spec }}" changelog = "https://github.com/{{ github_repo_spec }}/blob/main/CHANGELOG.md"