fix: relax dependencies #57
Merged
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.
Description
This PR relaxes the Click dependency so this can be installed against a more modern set of dependencies in our atmospheric correction container.
I updated the tests to run on a newer version of Python to modernize in general, but specifically because the CI failed to install Python 3.6 since it's deprecated.
The removal of pin on numpy was pretty trivial. Bumping
mypycaused so many linting issues, many related to the poor typing withnumpy.ma😭Of note is the re-pin for
pystac(similar to NASA-IMPACT/hls-cmr_stac#11),pystac[validation]==1.0.0rc2doesn't work against modern versions ofjsonschema. Instead of pinningjsonschemaI opted to bumppystac()pystac==1.12.0introduces a breaking change in theprojextension (proj:epsg->proj:code) that was caught in our tests 🙏.pystac<=1.12.0is still on STAC version1.0.0, but I'm also going to specify in our container that we should be usingstac==1.0.0by defining thePYSTAC_STAC_VERSION_OVERRIDEenvvar. I also set this in the STAC generation code.