Skip to content

Commit fe91ff8

Browse files
authored
drop python 3.9 support (#130)
* drop python 3.9 support * changelog
1 parent 484b2bf commit fe91ff8

File tree

6 files changed

+9
-18
lines changed

6 files changed

+9
-18
lines changed

.github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
os: ["ubuntu-latest"]
25-
python-version: ["3.9", "3.11", "3.12"]
25+
python-version: ["3.10", "3.12"]
2626
env: [""]
2727
include:
2828
- env: "min-all-deps"
29-
python-version: "3.9"
29+
python-version: "3.10"
3030
os: "ubuntu-latest"
3131
- env: ""
3232
python-version: "3.12"

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Breaking changes
66

7+
- Removed support for python 3.9 ([#130](https://github.com/mathause/mplotutils/pull/130)).
78
- The minimum versions of some dependencies were changed ([#117](https://github.com/mathause/mplotutils/pull/117) and [#118](https://github.com/mathause/mplotutils/pull/118)).
89

910
| Package | Old | New |

ci/requirements/min-all-deps.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
- nodefaults
55
dependencies:
6-
- python=3.9
6+
- python=3.10
77
- cartopy=0.21
88
- matplotlib-base=3.7
99
- numpy=1.22

docs/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Required dependencies
44

5-
- Python (3.9 or later)
5+
- Python (3.10 or later)
66
- [cartopy](http://scitools.org.uk/cartopy/) (0.21 or later)
77
- [matplotlib](http://matplotlib.org/) (3.7 or later)
88
- [numpy](http://www.numpy.org/) (1.22 or later)

mplotutils/tests/test_mapticklabels.py

+3-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import sys
2-
31
import cartopy.crs as ccrs
42
import numpy as np
53

@@ -21,9 +19,7 @@ def test_yticklabels_robinson():
2119
# two elements are not added because they are beyond the map limits
2220
lat = lat[1:-1]
2321

24-
# remove when dropping py 3.9
25-
strict = {"strict": True} if sys.version_info >= (3, 10) else {}
26-
for t, y_pos in zip(ax.texts, lat, **strict):
22+
for t, y_pos in zip(ax.texts, lat, strict=True):
2723
np.testing.assert_allclose((x_pos, y_pos), t.xy, atol=0.01)
2824

2925
assert ax.texts[0].get_text() == "70°S"
@@ -44,9 +40,7 @@ def test_yticklabels_robinson_180():
4440
# two elements are not added because they are beyond the map limits
4541
lat = lat[1:-1]
4642

47-
# remove when dropping py 3.9
48-
strict = {"strict": True} if sys.version_info >= (3, 10) else {}
49-
for t, y_pos in zip(ax.texts, lat, **strict):
43+
for t, y_pos in zip(ax.texts, lat, strict=True):
5044
np.testing.assert_allclose((x_pos, y_pos), t.xy, atol=0.01)
5145

5246
assert ax.texts[0].get_text() == "70°S"
@@ -66,10 +60,7 @@ def test_xticklabels_robinson():
6660
# two elements are not added because they are beyond the map limits
6761
lon = lon[1:-1]
6862

69-
# remove when dropping py 3.9
70-
strict = {"strict": True} if sys.version_info >= (3, 10) else {}
71-
72-
for t, x_pos in zip(ax.texts, lon, **strict):
63+
for t, x_pos in zip(ax.texts, lon, strict=True):
7364
np.testing.assert_allclose((x_pos, y_pos), t.xy, atol=0.01)
7465

7566
assert ax.texts[0].get_text() == "120°W"

setup.cfg

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ classifiers =
1414
Intended Audience :: Science/Research
1515
Programming Language :: Python
1616
Programming Language :: Python :: 3
17-
Programming Language :: Python :: 3.9
1817
Programming Language :: Python :: 3.10
1918
Programming Language :: Python :: 3.11
2019
Programming Language :: Python :: 3.12
@@ -23,7 +22,7 @@ classifiers =
2322
packages = find:
2423
zip_safe = False # https://mypy.readthedocs.io/en/latest/installed_packages.html
2524
include_package_data = True
26-
python_requires = >=3.9
25+
python_requires = >=3.10
2726
install_requires =
2827
cartopy >=0.21
2928
matplotlib >=3.7

0 commit comments

Comments
 (0)