Replies: 1 comment 9 replies
-
I have to admit that my reluctance to integrate is is, simply put, that I never needed it. Also, that it'd be the 1st time we actually tie some feature to the Python language. Yes, Copier is always Python, but writing or consuming templates never needed it. But I also have to admit your arguments are pretty good! 😊 So let's talk about it. I understand the need for slugify, but it's as simple as adding this extension. I understand the need for shortcuts, but nowadays we have computed fields in Copier. I understand you might need some extra extension but... well, you can write an extension and include it in Copier. Thus, what's the real use case that is really missing here? (Might be an obvious question, but remember I never used it 😅). Just to be able to evaluate the impact/benefit properly... |
Beta Was this translation helpful? Give feedback.
-
As suggested in #1633, it could be interesting to integrate the functionality of copier-templates-extension (at least the extension that allows loading other extensions from the template root, without having to package them) directly into Copier.
I initially developed it out of Copier to experiment (see #376). It was deemed too unsafe for integration within Copier. Since then, Copier has implemented the
--trust
flag which allows disabling the use of extensions, tasks and migrations (since these latter two are also unsafe), so maybe it's time to reconsider?Modifying the context after the user provided answers, and adding filters like
slugify
are considered by some (many?) users very basic / non-brainers features that should definitely be part of the project, without having to install anything extra, as this extra install almost always means having to run a second command (therefore no one-liners possible withpipx run
,rye tool run
,uv tool run
, etc.). I agree with these users, as without surprise I'm a user of copier-templates-extension myself.If the main argument against integration within Copier is maintenance, well I'll counter-argue that I'm already maintaining the project 😅 If I start maintaining it in Copier, that changes a bit the process, but not the maintenance amount.
Another possible argument against integration is that it would tie the project to Copier's own release cycle, which could slow down Copier or copier-templates-extensions releases. However copier-templates-extensions has needed almost zero maintenance or new releases since it started to exist, so it might not cause any real issue.
Anyway, just starting this discussion in case others would like to share their opinion! No strong preference from me. I just think integration could improve Copier's UX/DX, but it's not critical.
Beta Was this translation helpful? Give feedback.
All reactions