copier-org / copier

Library and command-line utility for rendering projects templates.

Home Page:https://readthedocs.org/projects/copier/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support zip template from local or http endpoint

tianzhipeng-git opened this issue · comments

Actual Situation

We have lots of copier template, we don't want to create git repo for each one.

We want to put all template code in a single repo, and during the ci/cd, we archive and upload these templates to some http file services such as Nginx.

Desired Situation

support zip template from local or http endpoint

Proposed solution

support zip template from local or http endpoint:
copier copy http://somedomain.com/my_template.zip target_dir

create a simple PR for this feature #1565

If I understand correctly, generating a project from a ZIP template means that the project cannot use copier update 🤔 You don't use the update feature of Copier?

If I understand correctly, generating a project from a ZIP template means that the project cannot use copier update 🤔 You don't use the update feature of Copier?

Sure, I don't use the update feature of Copier for now, I will check how update works

The update feature is a core aspect of Copier, so we're likely not interested in implementing features that work against it. Please check it out and let us know if you still need to support URLs to ZIP files (which by the way is easily automated with a wrapper script).

FWIW Copier supports git bundles out of the box, including updates support (if bundled with replayable history).