| | |
| | | A git filter for automated manifest regeneration at "git add" time. See |
| | | http://progit.org/book/ch7-2.html for more info about git filters. This |
| | | script just echoes back what comes to it on stdin to stdout, but it also |
| | | regenerates a MANIFEST.in file as a side effect. |
| | | regenerates a MANIFEST file as a side effect. |
| | | |
| | | Add this script somewhere to your operating system's $PATH (executable as |
| | | ``manifestgen.py``). |
| | |
| | | |
| | | * filter=manifestgen |
| | | |
| | | Whenever you use ``git add`` in the project, the MANIFEST.in file at the |
| | | project root will be regenerated (and will include the file you've just |
| | | added). This will happen for each and every file added *except* MANIFEST.in |
| | | itself. |
| | | Whenever you use ``git add`` in the project, the MANIFEST file at the project |
| | | root will be regenerated (and will include the file you've just added). This |
| | | will happen for each and every file added *except* MANIFEST itself. |
| | | |
| | | The generated MANIFEST.in will have a comment at the top of it with the epoch |
| | | The generated MANIFEST will have a comment at the top of it with the epoch |
| | | time it was generated. |
| | | |
| | | Setting the OS environment variable DEBUG_MANIFESTGEN will send informational |
| | |
| | | |
| | | marker = '###--- generated by manifestgen at %s ---###\n' |
| | | marker_re = re.compile(marker % '\\d+') |
| | | manifest = 'MANIFEST.in' |
| | | manifest = 'MANIFEST' |
| | | |
| | | def debug(msg): |
| | | if 'DEBUG_MANIFESTGEN' in os.environ: |