Skip to content
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

Merged

Conversation

francisco-dlp
Copy link
Member

@francisco-dlp francisco-dlp commented Sep 3, 2018

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.

@jat255
Copy link
Member

jat255 commented Sep 3, 2018

This is the solution I would have suggested, so LGTM

with open(ZIPF, 'wb') as f:
f.write(r.content)
TEST_FILES_OK = os.path.isfile(ZIPF)
except BaseException:
Copy link
Member

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?

Copy link
Member Author

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.

@francisco-dlp
Copy link
Member Author

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.

@francisco-dlp francisco-dlp merged commit 6d288af into hyperspy:RELEASE_next_minor Sep 3, 2018
@francisco-dlp francisco-dlp added this to the 1.4.1 milestone Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants