At the moment people need to manually copy a bunch of files and snippets, but most of this can be automated.
The contents of the setup.py cannot be automated, as it would be excessively complicated to parse that file and insert that snippet at the correct location. OTOH everything else can be automated.
We should:
add an entrypoint script that grabs the version.py in the installed version of miniver and inserts the necessary lines into __init__.py and .gitattributes. It should then print the necessary lines that need to be copied manually by the user to the terminal and exit
add a script that can be curld and piped into bash/python that will do the same thing as the entrypoint script, but it will get its version.py from GitHub instead.
At the moment people need to manually copy a bunch of files and snippets, but most of this can be automated.
The contents of the
setup.py
cannot be automated, as it would be excessively complicated to parse that file and insert that snippet at the correct location. OTOH everything else can be automated.We should:
version.py
in the installed version ofminiver
and inserts the necessary lines into__init__.py
and.gitattributes
. It should then print the necessary lines that need to be copied manually by the user to the terminal and exitcurl
d and piped into bash/python that will do the same thing as the entrypoint script, but it will get itsversion.py
from GitHub instead.