-
Notifications
You must be signed in to change notification settings - Fork 94
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
__version__ in pip wheel is mangled #361
Comments
Thanks for filing this. This is...not good. We use versioneer for versioning in pyresample and a lot of us have been using conda-forge for a long time and conda-forge builds from source so that explains why we haven't seen it there. So "good news" is I can reproduce it on my local machine. I'll try to figure this out in the next day or so. |
Ah also just discovered that the reason 1.14.0 works is that we don't have any published wheels for that version. 1.15.0 was the first one we started doing it. |
re 1.14 oh yeah, sorry. That's why I went back to 1.14 to show that it's been a problem since the wheels were introduced. |
Generating a wheel locally seems to be bad as well if you are not in the git repository directory. So at least I can test it. I wonder if we just have versioneer configured poorly. |
Updating to versioneer 0.19 seems to resolve the issue. I think it's related to this PR python-versioneer/python-versioneer#171 which although old was only incorporated into the semi recent 0.19 release. |
Nice catch. That explains some of the confusion I had when reading the install instructions https://github.com/python-versioneer/python-versioneer/blob/master/INSTALL.md as it seems we don't have a @mraspaud do you have any opinions on this? Should we try updating versioneer and review how we have it configured? Or we could switch to setuptools_scm to match the other pytroll packages I've switched to using it. |
I'm good with both solutions. Maybe upgrading versioneer is the most straightforward, so we can do that and only switch to setuptools_scm when we really need to? @abrammer do you want to take a shot at a PR for this? |
yeah, I can submit a PR. Also, noticed that just including the file on Played around with adding tests to the deploy.yaml as well, so that the wheels are actually tested before upload, would need to also add a test on |
If you can create a PR for the versionfile_build change that would be good and then we can see how hard it would be to make a test for the wheel |
Various installation and version checks
Problem description
The internal version attribute for pyresample from the wheels is mangled. Satpy utilizes this and will block functionality with the mangled version. https://github.com/pytroll/satpy/blob/378a2c563f647a7bb7ce74b417f288d0738d2762/satpy/resample.py#L182
Should satpy be querying the version in a different way or do the wheels need to be fixed?
Expected Output
the correct version number when calling
pyresample.__version__
edit: added comments regarding the various install versions to document the method to my madness
The text was updated successfully, but these errors were encountered: