Skip to content

Commit 9f6e529

Browse files
authored
Genereate .copier-answer.yml and add template tag to README (#78)
# Description This genarates the `.copier-answer.yml` file which I've been debating on adding for a while. My hesitation is adding yet another file into the template's output, but I'm realizing a few strengths: 1. authors can validate how they set up a project, and use that in a new project, if they find it helpful 2. support, like from the napari team, will be easier because we can see what the project started with, in order to narrow down changes 3. it allows re-running templates and updating, by basing on previous answers or 'resetting' This also adds the `vcs_ref` (tag or dev version) to the template output, so that, again, it's easier to support plugin authors.
1 parent 9fdd8fe commit 9f6e529

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

template/README.md.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
----------------------------------
1515

16-
This [napari] plugin was generated with [copier] using the [napari-plugin-template].
16+
This [napari] plugin was generated with [copier] using the [napari-plugin-template] ({{ _copier_conf.vcs_ref }}).
1717

1818
<!--
1919
Don't miss the full getting started guide to set up your new package:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2+
{{ _copier_answers|to_nice_yaml -}}

0 commit comments

Comments
 (0)