Skip to content

Commit d7f7604

Browse files
authored
Copier update (optional license) (#15)
## Why is this change necessary? Keep template up to date ## How does this change address the issue? Pulls in update for optional license file ## What side effects does this change have? None ## How is this change tested? In downstream open and closed-source repos
1 parent 56ccb39 commit d7f7604

File tree

7 files changed

+9
-1
lines changed

7 files changed

+9
-1
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v0.0.13
2+
_commit: v0.0.14
33
_src_path: gh:LabAutomationAndScreening/copier-base-template.git
44
description: Copier template for creating Python libraries and executables
55
python_ci_versions:

copier.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ description:
1111
type: str
1212
help: What is the description of this repository?
1313

14+
is_open_source:
15+
type: bool
16+
help: Is this library open source?
17+
default: no
18+
1419
ssh_port_number:
1520
type: int
1621
help: What port should the devcontainer bind SSH to?

template/CODE_OF_CONDUCT.md renamed to template/{% if is_open_source %}CODE_OF_CONDUCT.md{% endif %}

File renamed without changes.

template/LICENSE renamed to template/{% if is_open_source %}LICENSE{% endif %}

File renamed without changes.

tests/copier_data/data1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Data managed by upstream template
22
repo_name: the_best_repo
33
repo_org_name: great-company
4+
is_open_source: true
45
description: Doing amazing things
56
ssh_port_number: 12345
67
use_windows_in_ci: false

tests/copier_data/data2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Data managed by upstream template
22
repo_name: another_repo
33
repo_org_name: initech
4+
is_open_source: false
45
description: Doing crazy things! So many things!
56
ssh_port_number: 54321
67
use_windows_in_ci: true

tests/copier_data/data3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Data managed by upstream template
22
repo_name: the_best_repo
33
repo_org_name: great-company
4+
is_open_source: true
45
description: Doing amazing things
56
ssh_port_number: 12345
67
use_windows_in_ci: false

0 commit comments

Comments
 (0)