99# Message to show after generating or regenerating the project successfully
1010_message_after_copy : |
1111
12- Your project "{{ package_name }}" has been created successfully!
12+ Your project "{{ github_repo }}" has been created successfully!
1313
1414 Next steps:
1515
@@ -40,43 +40,25 @@ _message_after_copy: |
4040 $ just list-todos
4141
4242# Questions:
43- package_github_repo :
44- type : str
45- help : " What is or will be the GitHub repository spec for the project?"
46- placeholder : " user/repo"
47- validator : |
48- {% if package_github_repo and not (package_github_repo | regex_search('^[\w.-]+\/[\w.-]+$')) %}
49- Must be in the format `user/repo` and contain only alphanumeric characters and `_`, `-`, or `.`.
50- {% endif %}
43+ is_seedcase_project :
44+ type : bool
45+ help : " Is this package part of the Seedcase Project?"
46+ default : true
5147
52- github_user :
48+ github_repo :
5349 type : str
54- default : " {{ package_github_repo.split('/')[0] if package_github_repo else '' }}"
50+ default : " {{ _copier_conf.dst_path | realpath | basename }}"
5551 when : false
5652
57- package_name :
53+ github_user :
5854 type : str
59- help : " What is the name of the package?"
60- default : " {{ _copier_conf.dst_path | basename }}"
61- validator : |
62- {% if package_name and not (package_name | regex_search('^[\w.-]+$')) %}
63- Must contain only alphanumeric characters and `_`, `-`, or `.`.
64- {% endif %}
65-
66- package_name_snake_case :
67- type : str
68- default : " {{package_name | replace('-', '_') | replace('.', '_')}}"
69- when : false
70-
71- is_seedcase_project :
72- type : bool
73- help : " Is this package part of the Seedcase Project?"
74- default : " {{ github_user == 'seedcase-project' }}"
55+ help : " What is the name of the GitHub user or organisation where the repository will be or is stored?"
56+ default : " {{ 'seedcase-project' if is_seedcase_project else '' }}"
7557
7658homepage :
7759 type : str
7860 help : " What is the homepage of your project?"
79- default : " {{ 'https://%s.seedcase-project.org' % package_name if is_seedcase_project else '' }}"
61+ default : " {{ 'https://%s.seedcase-project.org' % github_repo if is_seedcase_project else '' }}"
8062
8163author_given_name :
8264 type : str
@@ -103,6 +85,16 @@ github_board_number:
10385 The board number must be an integer.
10486 {% endif %}
10587
88+ github_repo_snake_case :
89+ type : str
90+ default : " {{github_repo | replace('-', '_') | replace('.', '_')}}"
91+ when : false
92+
93+ github_repo_spec :
94+ type : str
95+ default : " {{ github_user }}/{{ github_repo }}"
96+ when : false
97+
10698copyright_year :
10799 type : str
108100 default : " {{ copyright_year | default('%Y' | strftime) }}"
0 commit comments