From 4a79f7d58dfde24a0b276a9e1f44c9337b24c805 Mon Sep 17 00:00:00 2001 From: Xuan Hu Date: Wed, 27 Mar 2024 17:20:25 +0800 Subject: [PATCH] chore: move sample copier answer to includes directory --- Makefile | 6 +++--- .../copier-answers-sample.yml | 0 template/Makefile.jinja | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) rename .copier-answers-sample.yml => includes/copier-answers-sample.yml (100%) diff --git a/Makefile b/Makefile index ac487a83..c2342922 100644 --- a/Makefile +++ b/Makefile @@ -156,10 +156,10 @@ doc: changelog doc-gen doc-mypy doc-coverage ######################################################################################## consistency: - find . -maxdepth 1 | grep -vE '(\.|\.git|\.copier-answers-sample\.yml|template|includes|copier\.yaml|pdm\.lock)$$' | xargs -I {} rm -r {} - copier copy -r HEAD --data-file .copier-answers-sample.yml --data repo_host_type=gitlab.com -f . . + find . -maxdepth 1 | grep -vE '(\.|\.git|template|includes|copier\.yaml|pdm\.lock)$$' | xargs -I {} rm -r {} + copier copy -r HEAD --data-file includes/copier-answers-sample.yml --data repo_host_type=gitlab.com -f . . rm -rf .copier-answers.yml - copier copy -r HEAD --data-file .copier-answers-sample.yml -f . . + copier copy -r HEAD --data-file includes/copier-answers-sample.yml -f . . rm -rf .copier-answers.yml ######################################################################################## diff --git a/.copier-answers-sample.yml b/includes/copier-answers-sample.yml similarity index 100% rename from .copier-answers-sample.yml rename to includes/copier-answers-sample.yml diff --git a/template/Makefile.jinja b/template/Makefile.jinja index 1ff1e84e..cbe60e55 100644 --- a/template/Makefile.jinja +++ b/template/Makefile.jinja @@ -159,10 +159,10 @@ doc: changelog doc-gen doc-mypy doc-coverage ######################################################################################## consistency: - find . -maxdepth 1 | grep -vE '(\.|\.git|\.copier-answers-sample\.yml|template|includes|copier\.yaml|pdm\.lock)$$' | xargs -I {} rm -r {} - copier copy -r HEAD --data-file .copier-answers-sample.yml --data repo_host_type=gitlab.com -f . . + find . -maxdepth 1 | grep -vE '(\.|\.git|template|includes|copier\.yaml|pdm\.lock)$$' | xargs -I {} rm -r {} + copier copy -r HEAD --data-file includes/copier-answers-sample.yml --data repo_host_type=gitlab.com -f . . rm -rf .copier-answers.yml - copier copy -r HEAD --data-file .copier-answers-sample.yml -f . . + copier copy -r HEAD --data-file includes/copier-answers-sample.yml -f . . rm -rf .copier-answers.yml [% endif -%]