11---
22# package details
3- AddPackageDetails :
4- type : bool
5- default : yes
6- help : |-
7- If you are planning to publish the package it is recommended to provide more details.
8- Do you want to provide extra details for the package?
9- when : " {{ template_profile != 'minimum'}} "
3+ # AddPackageDetails:
4+ # type: bool
5+ # default: yes
6+ # help: |-
7+ # If you are planning to publish the package it is recommended to provide more details.
8+ # Do you want to provide extra details for the package?
9+ # when: false
1010package_short_description :
1111 type : str
1212 placeholder : Short description
1313 help : Short description of package
14- when : " {{ template_profile != 'minimum' and AddPackageDetails }}"
1514 validator : >-
1615 {% if not package_short_description %}
1716 Package description cannot be empty
1817 {% endif %}
19- keyword1 :
18+ keywords :
2019 type : str
21- placeholder : keyword1
22- help : Add keyword1
23- when : " {{ template_profile != 'minimum' and AddPackageDetails }}"
24- keyword2 :
25- type : str
26- placeholder : keyword2
27- help : Add keyword2
28- when : " {{ template_profile != 'minimum' and AddPackageDetails }}"
20+ placeholder : keyword1,second keyword,third keyword
21+ help : Add keywords to make your package findable on PyPI
2922github_organization :
3023 type : str
31- placeholder : " <my -github-organization> "
24+ placeholder : " your -github-username or your-github- organization"
3225 help : Enter the name of your GitHub username or organization
33- when : " {{ template_profile != 'minimum' and AddPackageDetails }}"
3426 validator : >-
35- {% if not github_organization %}
36- This field cannot be empty
27+ {% if not ( github_organization | regex_search('^\\S*$')) %}
28+ Username or organization cannot include spaces
3729 {% endif %}
3830email :
3931 type : str
4032 placeholder : yourname@esciencecenter.nl
4133 help : What is your email address?
42- when : " {{ template_profile != 'minimum' and AddPackageDetails }}"
4334 validator : >-
4435 {% if not (email | regex_search('([A-Za-z0-9]+[.-_])*[A-Za-z0-9]+@[A-Za-z0-9-]+(\.[A-Z|a-z]{2,})+')) %}
4536 Please enter a valid email address
@@ -48,22 +39,24 @@ code_of_conduct_email:
4839 type : str
4940 default : " {{ email }}"
5041 help : What is the email address to report code of conduct violations?
51- when : " {{ template_profile != 'minimum' and AddPackageDetails }}"
5242 validator : >-
5343 {% if not (code_of_conduct_email | regex_search('([A-Za-z0-9]+[.-_])*[A-Za-z0-9]+@[A-Za-z0-9-]+(\.[A-Z|a-z]{2,})+')) %}
5444 Please enter a valid email address
5545 {% endif %}
5646copyright_holder :
5747 type : str
58- placeholder : Netherlands eScience Center
59- help : Who is the copyright holder?
60- when : " {{ template_profile != 'minimum' and AddPackageDetails }}"
48+ default : " {{ full_name }}"
49+ help : Who is the copyright holder (the default is your full name)?
50+ validator : >-
51+ {% if not copyright_holder %}
52+ This field cannot be empty as it will be used in content of the generated files.
53+ {% endif %}
6154
62- # calculated fields for GitHub
55+
56+ # computed fields
6357repository :
6458 default : git@github.com:{{ github_organization }}/{{ package_name }}
6559 when : false
66-
6760repository_url :
6861 default : https://github.com/{{ github_organization }}/{{ package_name }}
6962 when : false
0 commit comments