-
Hello, I am having trouble trying to create template for namespace packages. I am on the following system:
It seems sort of related to the discussion in #683 and this might just be because I am a new user and am failing to understand the placement of different files or where to invoke the commands from. I want to create a folder structure where the top-level directory is generated as I have tried different things, and the closest I have been able to achieve what I want is a template structure as follows:
The copier.yml looks like this: namespace:
type: str
help: What is your project namespace?
module_name:
type: str
help: What is your Python module name?
_subdirectory: project Envoking this: λ copier ../namespace-package-copier copier-testing/.
No git tags found in template; using HEAD as ref
� What is your project namespace?
placeholder (this is pre-filled so it seems copier correctly captures existing answers)
� What is your Python module name?
module (this is pre-filled so it seems copier correctly captures existing answers)
Copying from template version 0.0.0.post43.dev0+b639d5b
identical .
create placeholder-module
create placeholder-module\.gitignore
create placeholder-module\README.md
create placeholder-module\placeholder
create placeholder-module\placeholder\module
create placeholder-module\placeholder\module\__main__.py
create placeholder-module\.copier-answers.yml Will yield a new directory inside the
Git initializing this project and then attempting to update it breaks however. When making a change in the template and running λ copier update copier-testing/placeholder-module/
No git tags found in template; using HEAD as ref
Updating to template version 0.0.0.post44.dev0+89a5a5c
No git tags found in template; using HEAD as ref
� What is your project namespace?
placeholder
� What is your Python module name?
module
Copying from template version 0.0.0.post44.dev0+89a5a5c
identical .
create placeholder-module
create placeholder-module\.gitignore
create placeholder-module\README.md
create placeholder-module\placeholder
create placeholder-module\placeholder\module
create placeholder-module\placeholder\module\__main__.py
create placeholder-module\.copier-answers.yml Yielding:
Where am I going wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You are generating the project with |
Beta Was this translation helpful? Give feedback.
You are generating the project with
copier-testing
as destination. Then you are updatingcopier-testing/placeholder-module
. Shouldn't you updatecopier-testing
directly?