File tree Expand file tree Collapse file tree 3 files changed +22
-6
lines changed Expand file tree Collapse file tree 3 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 1
1
_templates_suffix : .jinja
2
2
_envops :
3
3
autoescape : false
4
+
4
5
_jinja_extensions :
5
6
- copier_templates_extensions.TemplateExtensionLoader
6
7
- extensions.py:GitDefaultsExtension
7
8
- extensions.py:PythonVersionExtension
9
+ - extensions.py:CurrentYearExtension
10
+
8
11
_subdirectory : " template"
9
12
10
13
_templates :
11
14
- path : LICENSE.jinja
12
15
when : " {{ license != 'None' }}"
16
+ - path : .github/workflows/tests.yml.jinja
17
+ when : " {{ 'tests' in github_actions }}"
18
+ - path : .github/workflows/lint.yml.jinja
19
+ when : " {{ 'lint' in github_actions }}"
20
+ - path : .github/workflows/publish.yml.jinja
21
+ when : " {{ 'publish' in github_actions }}"
22
+
13
23
package_name :
14
24
type : str
15
25
help : Python package name (must be a valid identifier)
@@ -119,15 +129,19 @@ copyright_license:
119
129
Open Software License 3.0 : OSL-3.0
120
130
PostgreSQL License : PostgreSQL
121
131
132
+ github_actions :
133
+ type : str
134
+ help : Which GitHub Actions to include? (multiple selection allowed)
135
+ multiselect : true
136
+ choices :
137
+ Tests : tests
138
+ Lint : lint
139
+ Publish to PyPI : publish
140
+ default : [tests, lint]
141
+
122
142
readme_badges :
123
143
type : bool
124
144
help : Add badges to the README?
125
145
default : true
126
-
127
- publish_gh_action :
128
- type : bool
129
- help : Add a GitHub action for publishing to PyPi?
130
- default : true
131
-
132
146
_tasks :
133
147
- ' {% if copyright_license == '' None'' %}python -c "import os; os.remove('' LICENSE'' ) if os.path.exists('' LICENSE'' ) else None"{% endif %}'
File renamed without changes.
Original file line number Diff line number Diff line change 2
2
3
3
{% - if readme_badges %}
4
4
5
+ {% - if 'tests' in github_actions %}
5
6
[]({{ repository_url }}/actions/workflows/tests.yml)
7
+ {% - endif %}
6
8
[](https://badge.fury.io/py/{{ repo_name }})
7
9

8
10
[](https://pepy.tech/project/{{ repo_name }})
You can’t perform that action at this time.
0 commit comments