-
Notifications
You must be signed in to change notification settings - Fork 207
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
Remove edax_files.zip from distribution #2049
Remove edax_files.zip from distribution #2049
Conversation
This is the solution I would have suggested, so LGTM |
hyperspy/tests/io/test_edax.py
Outdated
with open(ZIPF, 'wb') as f: | ||
f.write(r.content) | ||
TEST_FILES_OK = os.path.isfile(ZIPF) | ||
except BaseException: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to do a hash check here for the zip file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I'll fix that in a minute.
Thanks @jat255, it should be fine now. If nobody is against it, if this passed the tests in conda-forge, I'll merge it and release. |
The
edax_files.zip
test files are too large and take hyperpy's distribution beyond PyPI's file size limit of 60MB. See #2048.This PR removes the file from the distribution. Instead, the test files are downloaded from GitHub. The tests are skipped if the download fails.