Replies: 1 comment 1 reply
|
I don't see how what you're trying to do is possible. For example, how do you intend to have a fully functional
I don't see how to make this excerpt of a I think the project template should always be separated from the overall repo boilerplate. For example, I maintain a test suite that tests all kinds of variants of generated projects based on different answers to the questions. At the same time, the project template also contains a test suite starter. But the two test suites are very different. A Copier template repo layout for a Python project template might look something like this: I typically use test-driven development for Copier templates, this has worked very well for me so far. I'm curious what you think and learn more about your use case. |
Uh oh!
There was an error while loading. Please reload this page.
Hi! I want my template repository to be a fully functioning project itself to make it testable and usable as an ordinary project. What I don't understand is how to deal with project-specific files in such a case. For example, consider
pyproject.toml. On the one hand, it must be a full-fledged working thing in the template repository. On the other hand, I want to: (1) oncopier copy, update the project name and project version inpyproject.toml; (2) oncopier update, skip this file.(2) seems to be solved by the "skip if exists" setting. However, how do I solve (1) without introducing
pyprojec.toml.jinjawhich would lead to duplication betweenpyproject.tomlandpyprojec.toml.jinja?P.S. The following discussion seems to be relevant:
https://github.com/orgs/copier-org/discussions/1626
All reactions