-
Notifications
You must be signed in to change notification settings - Fork 96
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
Fix version number not being preserved in wheels #363
Conversation
Thanks for making this. For tests, is there something we could look for in the wheel's files that wouldn't require actually installing the wheel? Since wheels are just zip files I wonder if we could unzip one and grep for something in the version file. Maybe add something to https://github.com/pytroll/pyresample/blob/main/continuous_integration/build-manylinux-wheels.sh? |
Codecov Report
@@ Coverage Diff @@
## main #363 +/- ##
==========================================
- Coverage 93.30% 93.29% -0.01%
==========================================
Files 48 48
Lines 10022 10022
==========================================
- Hits 9351 9350 -1
- Misses 671 672 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Yeah, unzipping and checking the pro or con of running the full test suite on each wheel. I got it running for everything but the 32 bit linux, but notably the windows 3.6 tests fail, not sure if it's a legit fail or a just an actions things. example of the deploy workflow with tests here, dropped the upload jobs from this file for test purposes. |
Looks like the failure is due to the way rasterio was installed. So not necessarily a pyresample issue. Running all the tests for the wheels might be overkill. I'd be OK with replacing the |
Pushed the much simpler version check, just import and check 'unknown' isn't in the |
I tested this PR. But it still doesn't work for installing it on a node without Internet.
|
@zxdawn can you detail the steps you took. It looks like you transfered the repo to the node? Installing from the repo, relies on git to work out the version. If you didn't transfer the You could transfer one of the wheels to the node instead, and install that and then this PR would be relevant and should fix the issue. There are corrected built wheels in the artifacts from the success example in my previous comment here. |
@abrammer Thanks for the PR. Here're the details:
BTW, I got this issue today and it worked well in the last few days ... Strange. |
Does the main branch work? I'm thinking it's possibly unrelated to the PR. The related issue #361, might be the better place to discuss the issue if it's not related to the changes of the PR. |
The main branch also doesn't work. I'm not familiar with the pip and not sure whether this PR should fix this problem. What's your opinion, @djhoese? |
@zxdawn So you are Installing things in editable mode (the
|
@djhoese Thanks for your suggestions!
|
Thank you! |
Make sure that the wheel distributions include the versioneer details correctly.
git diff origin/main **/*py | flake8 --diff
N/A ?
Tests for this need to be local for now,