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

Upgrade script or common library #59

Open
oktaal opened this issue Nov 6, 2024 · 1 comment
Open

Upgrade script or common library #59

oktaal opened this issue Nov 6, 2024 · 1 comment

Comments

@oktaal
Copy link
Contributor

oktaal commented Nov 6, 2024

When maintaining multiple generated projects; it is laborious to sync updates made to components/services/etc in the template and in generated projects. I add some improvement to the generated output of project A, now I can (or maybe not) update this in the cookiecutter and then I may (or not) update projects B, C and D. Halfway through realizing a modification in project C is somewhat related and should be merged with the modification and I get to start all over. Argh.

Ideally it should be possible to update the template and then apply this update automatically to existing projects. For example using this project upgrader: pypi/cookiecutter-project-upgrader (or perhaps similar tools exist). Another approach might be to have some kind of shared library which could then be imported instead of generated.

@jgonggrijp
Copy link
Contributor

Yeah I think shared libraries are to be preferred whenever possible. Much more flexible and easier to synchronize. Something like cookiecutter-project-upgrader is certainly also interesting, though. In the end, there will always be some glue code that needs to be included in the cookiecutter itself.

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

No branches or pull requests

2 participants