From b0a9ec32c216891368abbb4eda49fc078d17d880 Mon Sep 17 00:00:00 2001 From: Eli Fine Date: Wed, 19 Mar 2025 15:56:21 +0000 Subject: [PATCH 1/3] update --- .copier-answers.yml | 2 +- copier.yml | 5 +++++ ... => {% if is_open_source %}CODE_OF_CONDUCT.md{% endif %}} | 0 .../{LICENSE => {% if is_open_source %}LICENSE{% endif %}} | 0 tests/copier_data/data1.yaml | 1 + tests/copier_data/data2.yaml | 1 + 6 files changed, 8 insertions(+), 1 deletion(-) rename template/{CODE_OF_CONDUCT.md => {% if is_open_source %}CODE_OF_CONDUCT.md{% endif %}} (100%) rename template/{LICENSE => {% if is_open_source %}LICENSE{% endif %}} (100%) diff --git a/.copier-answers.yml b/.copier-answers.yml index b416f8e0..99a4a1e3 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.13-5-gbc678ca _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 From a853c8611cbdbbd6a486eadac089fa41bd4b46a1 Mon Sep 17 00:00:00 2001 From: Eli Fine Date: Wed, 19 Mar 2025 16:02:10 +0000 Subject: [PATCH 2/3] copier tag --- .copier-answers.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index 99a4a1e3..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-5-gbc678ca +_commit: v0.0.14 _src_path: gh:LabAutomationAndScreening/copier-base-template.git description: Copier template for creating Python libraries and executables python_ci_versions: From 24d0c2bc765fcf276f74e98a356584e8696f5c5f Mon Sep 17 00:00:00 2001 From: Eli Fine Date: Wed, 19 Mar 2025 16:03:22 +0000 Subject: [PATCH 3/3] update data3 --- tests/copier_data/data3.yaml | 1 + 1 file changed, 1 insertion(+) 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