Infrastructure to publish data files as PyPI package #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the basic infrastructure to publish a package with the SNOwGLoBES data files (
detector_configurations.dat
and the directorieschannels/
,effic/
,smear/
andxscns/
) to PyPI.This makes it easier to reuse these files. For example, in SNEWPY users currently need to manually download SNOwGLoBES and specify the SNOwGLoBES directory in every function call (or set the environment variable). With this PR and the corresponding changes to SNEWPY, this would all be handled automatically by the package manager.
As you can this in this PR, no changes to existing SNOwGLoBES code, files or directory structure is required. The additions are in a single
snowglobes_data/
directory; simply run thesetup.sh
script in there to generate the package.In a future commit, I can add a GitHub workflow which automatically generates the package and uploads it to PyPI whenever a new SNOwGLoBES version is tagged.