Skip to content

Commit 982da59

Browse files
committed
more updates for cookiecutter -> Copier transition
1 parent c399980 commit 982da59

24 files changed

Lines changed: 6 additions & 5 deletions

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ jobs:
2525
- name: install dependencies
2626
run: |
2727
python -m pip install --upgrade pip
28-
pip install -q cookiecutter
28+
pip install -q copier copier_templates_extensions
2929
pip install -q flake8
3030
pip install -q https://github.com/qiime2/q2lint/archive/master.zip
3131
3232
- name: build plugin from default template
3333
run: |
3434
git config --global user.email "q2dev@example.com"
3535
git config --global user.name "A QIIME 2 Plugin Developer"
36-
cookiecutter . --no-input
36+
copier copy --defaults --trust . .
3737
3838
- name: Set up Conda
3939
uses: conda-incubator/setup-miniconda@v3

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# QIIME 2 Plugin [Cookiecutter](https://readthedocs.io/) template
1+
# QIIME 2 Plugin [Copier](https://copier.readthedocs.io) template
22

3-
This is a cookiecutter template for creating new QIIME 2 plugins.
3+
This is a Copier template for creating new QIIME 2 plugins.
44
To learn how to use this, refer to the [Plugin Development Tutorial](https://develop.qiime2.org/en/latest/plugins/tutorials/intro.html) in *Developing with QIIME 2* (https://develop.qiime2.org).
55
Specific usage instructions can be found [here](https://develop.qiime2.org/en/latest/plugins/tutorials/create-from-template.html).
66

copier.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ license:
4444
_templates_suffix: ""
4545
_tasks:
4646
- command: >-
47+
cd "{{ package_name }}" &&
4748
git init &&
4849
git add . &&
4950
git commit \

extensions/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ def hook(self, context):
3636
"target_epoch": target_epoch,
3737
"has_git": _check_git_installed(),
3838
"first_run": not (context['_copier_conf']['dst_path']
39-
/ '.git/').exists()
39+
/ context['package_name'] / '.git/').exists()
4040
}
4141
return update
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)