Cookiecutter for new bob projects
Edited bdt new
to use the cookiecutter format.
Fixes #104 (closed).
Merge request reports
Activity
assigned to @ydayer
There is a remaining choice to discuss:
Do we follow the cookiecutter "mindset" to have a repository for each template (e.g.
bob/bob.cookiecutter
containing only the template)?or do we go with the approach implemented here (a folder inside bob.devtools)? This prevents having yet another package.
added 1 commit
- 146639b1 - [deps] Add cookiecutter to the pinned dependencies
added 1 commit
- 1b581d44 - Set no_input for bdt new, prevents waiting in CI.
Frankly, I think that should be the default in our decisions - just use the tool and avoid circumventions and wrappers. It reduces maintenance and improves functionality encapsulation.
I personally dislike what we did with many of the
bdt dev
commands, wrapping git and pip in ways that replicate their functionality with new clothing, without substantial contribution as withbdt dev create
/bdt create
. This behaviour also goes against the unix mindset of encapsulation, that made it successful.With this in mind, I'd move this template to a new subproject. I'd then write instructions in the user guide here on how to use cookiecutter to achieve this. I'd also include cookiecutter as a dependence of
bob.devtools
so thatbdt
installations have that by default. I'd not call the templatebob.cookiecutter
, but rather something meaningful likebob/new-project
or the such. De-branding should start somewhere... I hope that makes senseEdited by André Anjosadded 1 commit
- 48a9668a - Moved the cookiecutter to its own Gitlab project.
added 9 commits
-
48a9668a...5269ccae - 4 commits from branch
master
- 1d8b6951 - Use cookiecutter for new package creation.
- 42331a56 - [doc] fix subtitle underline being too short.
- 956cf72a - [deps] Add cookiecutter to the pinned dependencies
- 35e353fd - Set no_input for bdt new, prevents waiting in CI.
- b7fb64c9 - Moved the cookiecutter to its own Gitlab project.
Toggle commit list-
48a9668a...5269ccae - 4 commits from branch
added 1 commit
- 5cedcb31 - Default cookiecutter address as url instead of ssh
- Resolved by Yannick DAYER
@ydayer: shall we close this?