diff --git a/.copier-answers.yml b/.copier-answers.yml index b416f8e0..4f187ace 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: v0.0.13 +_commit: v0.0.14 _src_path: gh:LabAutomationAndScreening/copier-base-template.git description: Copier template for creating Python libraries and executables python_ci_versions: diff --git a/copier.yml b/copier.yml index 29ca6934..5e32568e 100644 --- a/copier.yml +++ b/copier.yml @@ -11,6 +11,11 @@ description: type: str help: What is the description of this repository? +is_open_source: + type: bool + help: Is this library open source? + default: no + ssh_port_number: type: int help: What port should the devcontainer bind SSH to? diff --git a/template/CODE_OF_CONDUCT.md b/template/{% if is_open_source %}CODE_OF_CONDUCT.md{% endif %} similarity index 100% rename from template/CODE_OF_CONDUCT.md rename to template/{% if is_open_source %}CODE_OF_CONDUCT.md{% endif %} diff --git a/template/LICENSE b/template/{% if is_open_source %}LICENSE{% endif %} similarity index 100% rename from template/LICENSE rename to template/{% if is_open_source %}LICENSE{% endif %} diff --git a/tests/copier_data/data1.yaml b/tests/copier_data/data1.yaml index d5f9d737..238b37c3 100644 --- a/tests/copier_data/data1.yaml +++ b/tests/copier_data/data1.yaml @@ -1,6 +1,7 @@ # Data managed by upstream template repo_name: the_best_repo repo_org_name: great-company +is_open_source: true description: Doing amazing things ssh_port_number: 12345 use_windows_in_ci: false diff --git a/tests/copier_data/data2.yaml b/tests/copier_data/data2.yaml index 33a6ff92..2519117b 100644 --- a/tests/copier_data/data2.yaml +++ b/tests/copier_data/data2.yaml @@ -1,6 +1,7 @@ # Data managed by upstream template repo_name: another_repo repo_org_name: initech +is_open_source: false description: Doing crazy things! So many things! ssh_port_number: 54321 use_windows_in_ci: true diff --git a/tests/copier_data/data3.yaml b/tests/copier_data/data3.yaml index 65f2df82..41b7601a 100644 --- a/tests/copier_data/data3.yaml +++ b/tests/copier_data/data3.yaml @@ -1,6 +1,7 @@ # Data managed by upstream template repo_name: the_best_repo repo_org_name: great-company +is_open_source: true description: Doing amazing things ssh_port_number: 12345 use_windows_in_ci: false