1- _subdirectory : template
1+ _subdirectory : " template"
22
33# Message to show after generating or regenerating the project successfully
44_message_after_copy : |
55
6- Your project "{{ github_repo }}" has been created successfully!
6+ Your project "{{ github_repo }}" has been created successfully! See
7+ the template's guide as well as the "TODO.md" file in the newly created
8+ project for more details on the next steps.
79
8- See the [guide](https://template-python-package.seedcase-project.org/docs/guide) for more detail
9- on the next steps. Briefly:
10-
11- 1. Change directory to the project root:
12-
13- ``` bash
14- cd {{ _copier_conf.dst_path | realpath }}
15- ```
16-
17- 2. Install the pre-commit hooks, add (called "update" here) the Quarto extension,
18- and build the README:
19-
20- ``` bash
21- just install-precommit update-quarto-theme build-readme
22- ```
23-
24- 3. Install [`spaid`](https://github.com/seedcase-project/spaid) and run these setup steps:
25-
26- ``` bash
27- spaid_gh_create_repo_from_local -h
28- spaid_gh_set_repo_settings -h
29- spaid_gh_ruleset_basic_protect_main -h
30- ```
31-
32- 4. Configure GitHub following this
33- [guide](https://guidebook.seedcase-project.org/operations/security#using-github-apps-to-generate-tokens):
34-
35- - Install the [auto-release-token](https://github.com/apps/auto-release-token)
36- and [add-to-board-token](https://github.com/apps/add-to-board-token) GitHub Apps
37- - Create an `UPDATE_VERSION_TOKEN` and `ADD_TO_BOARD_TOKEN` secret for the GitHub Apps
38- - Create an `UPDATE_VERSION_APP_ID` and `ADD_TO_BOARD_APP_ID` variable of the GitHub Apps' IDs
39-
40- 5. List and complete all TODO items in the repository:
41-
42- ``` bash
43- just list-todos
44- ```
45-
46- # Questions:
47- is_seedcase_project :
10+ # Questions
11+ for_seedcase :
4812 type : bool
4913 help : " Is this package part of the Seedcase Project?"
50- default : true
14+ default : false
5115
5216github_user :
5317 type : str
54- help : " What is the name of the GitHub user or organisation where the repository will be or is stored?"
55- default : " {{ 'seedcase-project' if is_seedcase_project else '' }}"
18+ help : |
19+ What is the name of the GitHub user or organization where the
20+ package repository will be or is stored?
21+ default : >-
22+ {{ "seedcase-project" if for_seedcase else "" }}
5623
5724github_repo :
5825 type : str
59- help : " What is the name of the GitHub repository where the website will be or is stored? We strongly recommend using the default given."
26+ help : |
27+ What is the name of the GitHub repository where the package will be or
28+ is stored? We strongly recommend using the default given.
6029 default : " {{ _folder_name }}"
6130
6231hosting_provider :
6332 type : str
64- help : " What hosting provider will you use for the documentation website?"
33+ help : " What hosting provider will you use for the package's website?"
6534 choices :
6635 - netlify
6736 - gh-pages
68-
69- author_given_name :
70- type : str
71- help : " What is your first/given name?"
72-
73- author_family_name :
74- type : str
75- help : " What is your last/family name?"
76-
77- author_email :
78- type : str
79- help : " What is your email address?"
80-
81- review_team :
82- type : str
83- help : What GitHub team is responsible for reviewing pull requests?
84- default : " {{ '@%s/developers' % github_user if github_user else '' }}"
85-
86- github_board_number :
87- type : str
88- help : " What is the GitHub project board number to add issues and PRs to?"
89- validator : |
90- {% if github_board_number and not github_board_number.isdigit() %}
91- The board number must be an integer.
92- {% endif %}
37+ default : >-
38+ {{ "netlify" if for_seedcase else "gh-pages" }}
9339
9440# Configurations not asked
9541github_repo_snake_case :
@@ -106,8 +52,3 @@ copyright_year:
10652 type : str
10753 default : " {{ copyright_year | default('%Y' | strftime) }}"
10854 when : false
109-
110- homepage :
111- type : str
112- default : " https://{{ github_repo }}.{{ github_user }}.org"
113- when : false
0 commit comments