Skip to content

Commit fe1547a

Browse files
authored
SPEC 0: Bump minimum supported version to Python 3.11 (#3606)
1 parent 823d9c0 commit fe1547a

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

.github/workflows/ci_tests.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
strategy:
5757
fail-fast: false
5858
matrix:
59-
python-version: ['3.10', '3.13']
59+
python-version: ['3.11', '3.13']
6060
os: [ubuntu-latest, macos-latest, windows-latest]
6161
# Is it a draft Pull Request (true or false)?
6262
isDraft:
@@ -68,8 +68,8 @@ jobs:
6868
- os: windows-latest
6969
isDraft: true
7070
include:
71-
# Python 3.10 + core packages (minimum supported versions) + optional packages (minimum supported versions if any)
72-
- python-version: '3.10'
71+
# Python 3.11 + core packages (minimum supported versions) + optional packages (minimum supported versions if any)
72+
- python-version: '3.11'
7373
numpy-version: '1.24'
7474
pandas-version: '=2.0'
7575
xarray-version: '=2023.04'
@@ -80,9 +80,9 @@ jobs:
8080
pandas-version: ''
8181
xarray-version: ''
8282
optional-packages: ' contextily geopandas>=1.0 ipython pyarrow rioxarray sphinx-gallery'
83-
# Python 3.11 + core packages (Linux only)
83+
# Python 3.12 + core packages (Linux only)
8484
- os: 'ubuntu-latest'
85-
python-version: '3.11'
85+
python-version: '3.12'
8686
numpy-version: ''
8787
pandas-version: ''
8888
xarray-version: ''

.github/workflows/ci_tests_legacy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- conda-forge
6060
- nodefaults
6161
create-args: >-
62-
python=3.10
62+
python=3.11
6363
gmt=${{ matrix.gmt_version }}
6464
ghostscript<10
6565
numpy<2

environment.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.10
6+
- python>=3.11
77
# Required dependencies
88
- gmt=6.5.0
99
- ghostscript=10.04.0

pygmt/tests/test_clib_put_vector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def test_put_vector_string_dtype():
126126
"2021-02-03T00:00:00",
127127
"2021-02-03T04:00:00",
128128
"2021-02-03T04:05:06",
129-
f"{datetime.datetime.now(tz=datetime.timezone.utc).strftime('%Y-%m-%d')}T04:50:06",
129+
f"{datetime.datetime.now(tz=datetime.UTC).strftime('%Y-%m-%d')}T04:50:06",
130130
],
131131
]
132132

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "pygmt"
77
description = "A Python interface for the Generic Mapping Tools"
88
readme = "README.md"
9-
requires-python = ">=3.10"
9+
requires-python = ">=3.11"
1010
authors = [{name = "The PyGMT Developers", email = "[email protected]"}]
1111
keywords = [
1212
"cartography",
@@ -24,7 +24,6 @@ classifiers = [
2424
"Intended Audience :: Education",
2525
"Topic :: Scientific/Engineering",
2626
"Topic :: Software Development :: Libraries",
27-
"Programming Language :: Python :: 3.10",
2827
"Programming Language :: Python :: 3.11",
2928
"Programming Language :: Python :: 3.12",
3029
"Programming Language :: Python :: 3.13",

0 commit comments

Comments
 (0)