python-project-template icon indicating copy to clipboard operation
python-project-template copied to clipboard

Create a template update script.

Open seanfisk opened this issue 12 years ago • 1 comments

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.py with 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 apply or plain patch to apply the patch.

Some conflict resolution would likely be necessary for most projects, but it would be much better than doing a manual merge.

seanfisk avatar Jul 15 '13 22:07 seanfisk

A prototype script is currently working. Has to be developed into a full script and then added to the PPT distribution.

seanfisk avatar Oct 14 '13 16:10 seanfisk