Skip to content

Commit 95d2a4e

Browse files
lwjohnst86signekb
andauthored
refactor: ♻️ create homepage as variable, not question (#179)
# Description Homepage doesn't need to be a question, it can be auto created and confirmed via TODOs. This PR needs a quick review. ## Checklist - [x] Ran `just run-all` Co-authored-by: Signe Kirk Brødbæk <40836345+signekb@users.noreply.github.com>
1 parent c518649 commit 95d2a4e

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

copier.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ hosting_provider:
7272
- netlify
7373
- gh-pages
7474

75-
homepage:
76-
type: str
77-
help: "What is the homepage of your project?"
78-
default: "{{ 'https://%s.seedcase-project.org' % github_repo if is_seedcase_project else '' }}"
79-
8075
author_given_name:
8176
type: str
8277
help: "What is your first/given name?"
@@ -116,3 +111,8 @@ copyright_year:
116111
type: str
117112
default: "{{ copyright_year | default('%Y' | strftime) }}"
118113
when: false
114+
115+
homepage:
116+
type: str
117+
default: "https://{{ github_repo }}.{{ github_user }}.org"
118+
when: false

template/CITATION.cff.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ keywords:
2222
license: MIT
2323
message: "If you use this Python package, please cite it using these metadata."
2424
repository-code: "https://github.com/{{ github_repo_spec }}"
25+
# TODO: Confirm URL
2526
url: "{{ homepage }}"

template/pyproject.toml.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ requires-python = ">=3.12"
1818
dependencies = []
1919

2020
[project.urls]
21+
# TODO: Confirm URL
2122
homepage = "{{ homepage }}"
2223
repository = "https://github.com/{{ github_repo_spec }}"
2324
changelog = "https://github.com/{{ github_repo_spec }}/blob/main/CHANGELOG.md"

0 commit comments

Comments
 (0)