Skip to content

Commit

Permalink
Merge pull request #116 from akrherz/patch_downloader
Browse files Browse the repository at this point in the history
backport natural earth download URL
  • Loading branch information
xylar authored Sep 3, 2021
2 parents 273dff1 + caa709a commit 5468ec5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
15 changes: 15 additions & 0 deletions recipe/gh1833_update_ne_url.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/lib/cartopy/io/shapereader.py b/lib/cartopy/io/shapereader.py
index 795b202c..386004fc 100644
--- a/lib/cartopy/io/shapereader.py
+++ b/lib/cartopy/io/shapereader.py
@@ -297,8 +297,8 @@ class NEShpDownloader(Downloader):
# Define the NaturalEarth URL template. The natural earth website
# returns a 302 status if accessing directly, so we use the naciscdn
# URL directly.
- _NE_URL_TEMPLATE = ('https://naciscdn.org/naturalearth/{resolution}'
- '/{category}/ne_{resolution}_{name}.zip')
+ _NE_URL_TEMPLATE = ('https://naturalearth.s3.amazonaws.com/'
+ '{resolution}_{category}/ne_{resolution}_{name}.zip')

def __init__(self,
url_template=_NE_URL_TEMPLATE,
5 changes: 4 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ package:
source:
url: https://pypi.io/packages/source/C/Cartopy/Cartopy-{{ version }}.tar.gz
sha256: 4b8b4773a98ed7009fe17d9b6ec87ac3ac62b7d14634d7768c190eadc647d576
patches:
- gh1833_update_ne_url.patch

build:
error_overlinking: true
number: 0
number: 1

requirements:
build:
Expand Down Expand Up @@ -41,6 +43,7 @@ requirements:
# including matplotlib-base even though it's optional upstream
- matplotlib-base >=1.5.1
- scipy >=0.10
- ucrt # [win]

test:
imports:
Expand Down

1 comment on commit 5468ec5

@conda-forge-linter
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! This is the friendly automated conda-forge-webservice.

I updated the Github team because of this commit.

You should get push access to this feedstock and CI services.

Feel free to join the community chat room.

NOTE: Please make sure to not push to the repository directly.
Use branches in your fork for any changes and send a PR.
More details here

Please sign in to comment.