Skip to content

Commit 41cfd4f

Browse files
committed
Merge branch 'hotfix-1.3.4'
2 parents 11bf105 + a49fb10 commit 41cfd4f

File tree

9 files changed

+55
-17
lines changed

9 files changed

+55
-17
lines changed

Diff for: .github/workflows/basemap-for-manylinux.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ jobs:
264264
run: |
265265
apt-get update
266266
apt-get install -y gcc g++ make
267-
pip install "numpy < 1.21.5"
268-
if: matrix.arch == 'x86' && matrix.python-version == '3.10'
267+
pip install "numpy < 1.24"
268+
if: matrix.arch == 'x86' && (matrix.python-version >= '3.8' || matrix.python-version >= '3.10')
269269
-
270270
name: Install package
271271
run: |

Diff for: CHANGELOG.md

+39-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,28 @@ https://keepachangelog.com/en/1.0.0/
1010
https://semver.org/spec/v2.0.0.html
1111

1212

13+
## [1.3.4] - 2022-08-10
14+
15+
### Changed
16+
- Upgrade `numpy` upper pin to 1.24.
17+
- Upgrade `pyshp` upper pin to 2.4.
18+
- Upgrade `sphinx` upper pin to 5.0 and require at least Python 3.6 to
19+
build the docs.
20+
21+
### Fixed
22+
- Update `numpy` build dependency to ensure that builds also work on
23+
MacOS (fixes issue [#547], thanks to @SongJaeIn for testing).
24+
- Fix broken implementation of `Basemap.arcgisimage` (PR [#548], solves
25+
issue [#546]).
26+
- Enforce up-to-date `numpy` dependency when possible:
27+
- Set `numpy >= 1.19` for Python == 3.6 due to `numpy` vulnerabilities
28+
[CVE-2021-41495] and [CVE-2021-41496].
29+
- Set `numpy >= 1.22` for Python >= 3.8 due to `numpy` vulnerability
30+
[CVE-2021-34141].
31+
- Enforce up-to-date `pillow` dependency when possible:
32+
- Set `pillow >= 9.0.1` for Python >= 3.7 due to `pillow`
33+
vulnerability [CVE-2022-24303].
34+
1335
## [1.3.3] - 2022-05-11
1436

1537
### Changed
@@ -902,6 +924,12 @@ https://semver.org/spec/v2.0.0.html
902924
- Fix glitches in drawing of parallels and meridians.
903925

904926

927+
[#548]:
928+
https://github.com/matplotlib/basemap/pull/548
929+
[#547]:
930+
https://github.com/matplotlib/basemap/issues/547
931+
[#546]:
932+
https://github.com/matplotlib/basemap/issues/546
905933
[#541]:
906934
https://github.com/matplotlib/basemap/pull/541
907935
[#539]:
@@ -974,7 +1002,9 @@ https://github.com/matplotlib/basemap/issues/228
9741002
https://github.com/matplotlib/basemap/issues/179
9751003

9761004
[Unreleased]:
977-
https://github.com/matplotlib/basemap/compare/v1.3.3...develop
1005+
https://github.com/matplotlib/basemap/compare/v1.3.4...develop
1006+
[1.3.4]:
1007+
https://github.com/matplotlib/basemap/compare/v1.3.3...v1.3.4
9781008
[1.3.3]:
9791009
https://github.com/matplotlib/basemap/compare/v1.3.2...v1.3.3
9801010
[1.3.2]:
@@ -1002,14 +1032,22 @@ https://github.com/matplotlib/basemap/compare/v1.0.3rel...v1.0.4rel
10021032
[1.0.3]:
10031033
https://github.com/matplotlib/basemap/tree/v1.0.3rel
10041034

1035+
[CVE-2022-24303]:
1036+
https://nvd.nist.gov/vuln/detail/CVE-2022-24303
10051037
[CVE-2022-22817]:
10061038
https://nvd.nist.gov/vuln/detail/CVE-2022-22817
10071039
[CVE-2022-22816]:
10081040
https://nvd.nist.gov/vuln/detail/CVE-2022-22816
10091041
[CVE-2022-22815]:
10101042
https://nvd.nist.gov/vuln/detail/CVE-2022-22815
1043+
[CVE-2021-41496]:
1044+
https://nvd.nist.gov/vuln/detail/CVE-2021-41496
1045+
[CVE-2021-41495]:
1046+
https://nvd.nist.gov/vuln/detail/CVE-2021-41495
10111047
[CVE-2021-34552]:
10121048
https://nvd.nist.gov/vuln/detail/CVE-2021-34552
1049+
[CVE-2021-34141]:
1050+
https://nvd.nist.gov/vuln/detail/CVE-2021-34141
10131051
[CVE-2021-33430]:
10141052
https://nvd.nist.gov/vuln/detail/CVE-2021-33430
10151053
[CVE-2021-28678]:

Diff for: packages/basemap/pyproject.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ requires = [
33
'setuptools',
44
'wheel',
55
'numpy == 1.21.4; python_version >= "3.10"',
6-
'numpy == 1.16.6; python_version == "2.7" or (python_version >= "3.4" and python_version <= "3.9")',
6+
'numpy == 1.21.4; sys_platform == "darwin" and (python_version >= "3.7" and python_version <= "3.9")',
7+
'numpy == 1.16.6; sys_platform != "darwin" and (python_version >= "3.7" and python_version <= "3.9")',
8+
'numpy == 1.16.6; python_version == "2.7" or (python_version >= "3.4" and python_version <= "3.6")',
79
'numpy == 1.11.3; python_version == "2.6" or (python_version >= "3.2" and python_version <= "3.3")',
810
'cython >= 0.29, < 3.1; python_version >= "3.3" or python_version < "3.0"',
911
'cython >= 0.26, < 0.27; python_version == "3.2"'

Diff for: packages/basemap/requirements-doc.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sphinx >= 3.0, < 3.4; python_version >= "3.5"
1+
sphinx >= 3.0, < 5.0; python_version >= "3.6"

Diff for: packages/basemap/requirements-test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ pillow >= 4.3.0, < 5.0.0; python_version == "3.3"
2828
pillow >= 5.4.0, < 6.0.0; python_version == "3.4"
2929
pillow >= 7.1.0, < 8.0.0; python_version == "3.5"
3030
pillow >= 8.3.2, < 9.0.0; python_version == "3.6"
31-
pillow >= 9.0.0, < 10.0.0; python_version >= "3.7"
31+
pillow >= 9.0.1, < 10.0.0; python_version >= "3.7"

Diff for: packages/basemap/requirements.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ numpy >= 1.11, < 1.12; python_version == "3.2"
66
numpy >= 1.11, < 1.12; python_version == "3.3"
77
numpy >= 1.15, < 1.17; python_version == "3.4"
88
numpy >= 1.16, < 1.19; python_version == "3.5"
9-
numpy >= 1.16, < 1.20; python_version == "3.6"
10-
numpy >= 1.21, < 1.23; python_version >= "3.7"
9+
numpy >= 1.19, < 1.20; python_version == "3.6"
10+
numpy >= 1.21, < 1.22; python_version == "3.7"
11+
numpy >= 1.22, < 1.24; python_version >= "3.8"
1112

1213
cycler < 0.11; python_version == "3.2"
1314
pyparsing >= 1.5, < 2.4.1; python_version == "2.6"
@@ -27,4 +28,4 @@ pyproj >= 1.9.3, < 2.1.0; python_version == "3.4"
2728
pyproj >= 1.9.3, < 3.4.0; python_version >= "3.5"
2829

2930
pyshp >= 1.2, < 2.0; python_version == "2.6"
30-
pyshp >= 1.2, < 2.2; python_version >= "2.7"
31+
pyshp >= 1.2, < 2.4; python_version >= "2.7"

Diff for: packages/basemap/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def run(self):
172172
"name":
173173
"basemap",
174174
"version":
175-
"1.3.3",
175+
"1.3.4",
176176
"license":
177177
"MIT",
178178
"description":

Diff for: packages/basemap/src/mpl_toolkits/basemap/__init__.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
from mpl_toolkits import basemap_data
6565
basemap_datadir = os.path.abspath(list(basemap_data.__path__)[0])
6666

67-
__version__ = "1.3.3"
67+
__version__ = "1.3.4"
6868

6969
# module variable that sets the default value for the 'latlon' kwarg.
7070
# can be set to True by user so plotting functions can take lons,lats
@@ -4215,7 +4215,7 @@ def warpimage(self,image="bluemarble",scale=None,**kwargs):
42154215
return im
42164216

42174217
def arcgisimage(self,server='http://server.arcgisonline.com/ArcGIS',\
4218-
service='ESRI_Imagery_World_2D',xpixels=400,ypixels=None,\
4218+
service='World_Imagery',xpixels=400,ypixels=None,\
42194219
dpi=96,verbose=False,**kwargs):
42204220
"""
42214221
Retrieve an image using the ArcGIS Server REST API and display it on
@@ -4232,7 +4232,7 @@ def arcgisimage(self,server='http://server.arcgisonline.com/ArcGIS',\
42324232
server web map server URL (default
42334233
http://server.arcgisonline.com/ArcGIS).
42344234
service service (image type) hosted on server (default
4235-
ESRI_Imagery_World_2D, which is NASA 'Blue Marble'
4235+
'World_Imagery', which is NASA 'Blue Marble'
42364236
image).
42374237
xpixels requested number of image pixels in x-direction
42384238
(default 400).
@@ -4284,9 +4284,6 @@ def arcgisimage(self,server='http://server.arcgisonline.com/ArcGIS',\
42844284
arcgisimage cannot handle images that cross
42854285
the dateline for cylindrical projections.""")
42864286
raise ValueError(msg)
4287-
if self.projection != 'cyl':
4288-
xmin = (180./np.pi)*xmin; xmax = (180./np.pi)*xmax
4289-
ymin = (180./np.pi)*ymin; ymax = (180./np.pi)*ymax
42904287
# ypixels not given, find by scaling xpixels by the map aspect ratio.
42914288
if ypixels is None:
42924289
ypixels = int(self.aspect*xpixels)

Diff for: packages/basemap/src/mpl_toolkits/basemap/proj.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# as textwrap.dedent.
1111
from matplotlib.cbook import dedent
1212

13-
__version__ = "1.3.3"
13+
__version__ = "1.3.4"
1414
_dg2rad = math.radians(1.)
1515
_rad2dg = math.degrees(1.)
1616

0 commit comments

Comments
 (0)