Paul Moore <p.f.mo...@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. l...@metapensiero.it | -- Fortunato Depero, 1929. -- https://mail.python.org/mailman/listinfo/python-list