-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'sdmx.__version__' is not set properly #68
Comments
Thanks, good catch! The practices here follow the instructions in the setuptools-scm documentation (https://github.com/pypa/setuptools_scm/#retrieving-package-version-at-runtime) and the example in other packages like xarray (https://github.com/pydata/xarray/blob/50d97e9d35bac783850827fa66ff5eb768e62905/xarray/__init__.py#L32-L37). I'd encourage you to raise any concerns with them directly. For a package like this one, I think it's simplest to say, "we follow these instructions/examples, including any updates they make to newer practices."
This makes it seem like it's currently either
Not too small at all, please go ahead. |
Variable sdmx.__version__ is initialised with 'pkg_resources.get_distribution' using the appropriate Distribution Package name 'sdmx1'.
Variable sdmx.__version__ is initialised with 'pkg_resources.get_distribution' using the appropriate Distribution Package name 'sdmx1'.
sdmx.__version__
is not set properly:outputs
The culprit is
sdmx/sdmx/__init__.py
Lines 25 to 29 in 3e4cbc1
where line 26 should be
I was tempted to open a pull request with just a single character change (
"sdmx" → "sdmx1"
) but maybe this is a too small change for a PR.Moreover I think that perhaps a more robust way of initialising
sdmx.__version__
should be devised: having the "Distribution Package" name (sdmx1
) different from the "Import Package" name (sdmx
) is OK, but hardcoding the Distribution Package name in the call topkg_resources.get_distribution
is not good, in my opinion. By the way, thepkg_resources.get_distribution
has known limitations and problems when used for initialising the__version__
string (seehttps://packaging.python.org/guides/single-sourcing-package-version/
item 5).The text was updated successfully, but these errors were encountered: