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

Replace cartopy dependency with own downloader. #28

Merged
merged 30 commits into from
Nov 17, 2022
Merged

Replace cartopy dependency with own downloader. #28

merged 30 commits into from
Nov 17, 2022

Conversation

juseg
Copy link
Owner

@juseg juseg commented Nov 17, 2022

Close #25.

  • Add generic downloader class.
  • Add Natural Earth downloader.
  • Remove cartopy dependence.

@juseg juseg added the enhancement New feature or request label Nov 17, 2022
@juseg juseg added this to the v0.2.1 milestone Nov 17, 2022
@juseg juseg self-assigned this Nov 17, 2022
@juseg juseg linked an issue Nov 17, 2022 that may be closed by this pull request
3 tasks
@juseg juseg marked this pull request as ready for review November 17, 2022 15:04
@juseg juseg merged commit b9b510e into main Nov 17, 2022
juseg added a commit that referenced this pull request Nov 18, 2022
* Remove cartopy dependency in doc, whatsnew.

* Remove dependency on Cartopy.

* Remove outdated cities plot methods.

* Pylint had a lot of complaints on my code.

* Add missing downloader dosctrings, homogenize.

* Use new logic in NaturalEarthDownloader, it works!

* Separate args, kwargs in generic Downloader call.

* Add generic ArchiveDownloader base class.

* Rewrite, document OSFDownloader.

* Add CacheDownloader to download files in cache.

* Split downloader call into url, path, check, get.

* Require shapefile dbf, prj, shp, shx, ignore cpg.

* Remove now-unused BasenameDownloader.

* Fix plotting ehl11 paleoglaciers, crs is in .prj.

* Store Natural Earth shapefiles in subdirectories.

* Use XDG_CACHE_HOME env variable if present.

* Add quick and dirty natural earth downloader.

* Add commend with overnight ideas for subclassing.

* Move hyoga.core.download to hyoga.open.downloader.

* Fix download module header and docstring.

* Add ZipShapeDownloader for Ehlers et al data.

* Add tiny OSFDownloader class.

* Remove _download_example private method.

* Separate generic and basename downloaders.

* Replace _download method with a downloader class.

* Move download code to hyoga.core.download.

Note: this will be force-pushed overriding the merge-commit b9b510e. For
two hours yesterday GitHub's main pointed to that commit, but I meant to
do a `merge --squash` not a real `merge`. Sorry if anyone checked out
that merge commit.
juseg added a commit that referenced this pull request Nov 18, 2022
Without cartopy dependency docs can be built in virtualenv with pip.
The readthedocs builds revealed an incompatibility between `python<3.8`
and `importlib_metadata==5.0.0` (see pydata/xarray#7115, NEP 29).

* Remove readthedocs conda enviromnent.

* Ask readthedocs to use Python 3.8.

* Require Python >= 3.8.

* Remove readthedocs build settings.

* Replace conda with pip for readthedocs build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove cartopy dependence, implement own downloader.
1 participant