Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cookiecutter for bootstrapping #109

Closed
bonjourmauko opened this issue May 2, 2021 · 7 comments
Closed

Use cookiecutter for bootstrapping #109

bonjourmauko opened this issue May 2, 2021 · 7 comments

Comments

@bonjourmauko
Copy link
Member

When I'm creating a new extension for my country model,
I want it to be easy as tools that I already know like cookiecutter,
si I can spend more time adding value to users.

@MattiSG
Copy link
Member

MattiSG commented Aug 9, 2021

I'm not sure what that would entail exactly: does this mean this repository would have to become a cookiecutter-based template, replacing its bootstrap.sh file with a cookiecutter declaration, and requiring users to install and execute cookiecutter?

@bonjourmauko
Copy link
Member Author

Hello @MattiSG !

does this mean this repository would have to become a cookiecutter-based template, replacing its bootstrap.sh file with a cookiecutter declaration, and requiring users to install and execute cookiecutter?

Yes!

Bootstrapping a country/city would then be something like:

$ pip install cookiecutter
$ cookiecutter https://github.com/openfisca/country-template
organisation: segpres
country: chile

And then it would be iso functional —thanks to pre/post-hooks.

Pros
Cons
  • It's a DSL —learning curve

@MattiSG
Copy link
Member

MattiSG commented Aug 24, 2021

Another con: third-party dependency.

This sounds like an interesting venue to solve #82, but also like a big investment. I would not personally invest in it for the moment considering the production experience there is with the current system, and the limited practical existing problems this seems to solve.

@bonjourmauko
Copy link
Member Author

I was going to invest personally on this until some other issues took priority.

I still believe it is worth doing, maybe there are other options closer to what we do now that are easier to implement.

@verbman
Copy link
Contributor

verbman commented Apr 4, 2024

Did not see this thread, but thanks for pointing it out @MattiSG. Pull Request #139 does not change this conversation and possibly better prepares the way for it. I note the offline conversation also about utilising github workflows? to achieve the same objectives (but for github only).

@MattiSG
Copy link
Member

MattiSG commented Apr 4, 2024

Indeed, the reference for using GitHub Actions is OpenTermsArchive/demo-declarations#12.

@bonjourmauko
Copy link
Member Author

Thanks both @MattiSG and @verbman. I'm closing this issue as, even if the problem is still there, it is bound to a how from which I have distanced myself. I a need for a solution arises in the future, I'd rather open a new ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants