Hi,
Thanks for making and maintaining this awesome package! I was about to create something similar, but was happily surprised there is already a package that does the job. I have a question about single sourcing the version number.
Currently, I use a common strategy: __version__.py inside mypackage folder, which has just
And then, in the setup.py, I read the version using some regex. In application code, I read the version by just importing by from mypackage.__version__ import __version__. or similar. When using pynsist, I have to define a version number for the application in installer.cfg:Application.version.
What is the recommended way to single source version number in applications using pynsist? I suppose there are many ways to do it, but probably there is one is covers most use cases and/or is better than the others.
Hi,
Thanks for making and maintaining this awesome package! I was about to create something similar, but was happily surprised there is already a package that does the job. I have a question about single sourcing the version number.
Currently, I use a common strategy:
__version__.pyinsidemypackagefolder, which has justAnd then, in the
setup.py, I read the version using some regex. In application code, I read the version by just importing byfrom mypackage.__version__ import __version__. or similar. When usingpynsist, I have to define a version number for the application ininstaller.cfg:Application.version.What is the recommended way to single source version number in applications using pynsist? I suppose there are many ways to do it, but probably there is one is covers most use cases and/or is better than the others.