Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Provide __version__ attribute #31
I'm sure that would work fine.…
On Mon, Nov 12, 2018 at 2:57 AM Alessandro Amici ***@***.***> wrote: @shoyer <https://github.com/shoyer> I'm using zest.releaser <https://zestreleaser.readthedocs.io/en/stable/> for version management and they suggest <https://zestreleaser.readthedocs.io/en/stable/versions.html#using-the-version-number-in-setup-py-or-setup-cfg-as-version> adding this snippet to cfgrib/__init__.py: import pkg_resources __version__ = pkg_resources.get_distribution('cfgib').version in order to still keep one single master version in setup.py. Would that work for you? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#31 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABKS1mPR4S9C0jwBSH_CGAgZxRsV6M7Gks5uuVQLgaJpZM4YYsW5> .
Looks like I could implement the single-sourcing the package version using method 1 of: https://packaging.python.org/guides/single-sourcing-package-version/
Trying to close again.