Manager for project templates, that allows "incremental" feature addition

Lele Gaifax lele at metapensiero.it
Wed Mar 22 05:40:36 EDT 2017


Paul  Moore <p.f.moore at gmail.com> writes:

> I'm looking for a utility that is something like cookiecutter, in that it generates a "template" project for me. However, I would like the ability to have a template add content based on runtime questions, something like
>
>    Do you want to include a C extension? [yes/no]
>    ... adds Extension() to setup.py, adds a C source file, etc
>    Do you want to include tests? [yes/no]
>    ... add a test directory with a sample test
>    Tests to run under tox? [yes/no]
>    ... add tox support (this question shouldn't be asked if the previous answer was "no")
>
> As far as I know, this sort of feature isn't available in cookiecutter, nor is it planned.
>
> Does anyone know of any similar utility that has this feature?

This what I wrote and heavily use

  https://pypi.python.org/pypi/metapensiero.tool.tinject

It seems to fit some, but not all, of your requested features.

Hope this helps,
ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.




More information about the Python-list mailing list