python-project-template
python-project-template copied to clipboard
Create a template update script.
I have a number of projects on which work is currently being done that use this template project. It would be nice if I could run a script to update the project to the current version of the template project.
A possible solution would involve the following steps:
- Create a new "fake" project based on the template project.
- Replace the fake project's
metadata.pywith the old project. - Run generation on the fake project.
- Diff the output on relevant files from the old project to the fake project and save to a patch file.
- Use
git applyor plainpatchto apply the patch.
Some conflict resolution would likely be necessary for most projects, but it would be much better than doing a manual merge.
A prototype script is currently working. Has to be developed into a full script and then added to the PPT distribution.