Materials-Data-Science-and-Informatics / fair-python-cookiecutter

An opinionated cookiecutter template to kickstart a modern best-practice Python project with FAIR metadata.
MIT License
27 stars 4 forks source link

Use custom cookiecutter as library in custom CLI tool #16

Closed apirogov closed 10 months ago

apirogov commented 11 months ago

There are many desired configurations for the template, such as

Creating forks of this repository seems to be a recipe for maintainability nightmare, while working with the tricks possible in a "plain" cookiecutter repo is reaching its limits (too much conditional rendering turns it into a mess).

The solution is to use cookiecutter as a library and add some custom wrapping code for orchestrating it. Most users probably won't have cookiecutter on their system, so it does not matter much if they need to pip install cookiecutter, or a custom CLI tool of this repository. The upside would be much more flexibility and potential for customizing the template for each user.

This would simplify taking care of certain differences between Github and Gitlab (i.e. help with #15).

apirogov commented 11 months ago

Template Config

Functionality

Streamlining

In the course of implementing this, also it should be reconsidered how: