diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index 351f918620d..0c874fdac77 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -56,7 +56,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10', '3.13'] + python-version: ['3.11', '3.13'] os: [ubuntu-latest, macos-latest, windows-latest] # Is it a draft Pull Request (true or false)? isDraft: @@ -68,8 +68,8 @@ jobs: - os: windows-latest isDraft: true include: - # Python 3.10 + core packages (minimum supported versions) + optional packages (minimum supported versions if any) - - python-version: '3.10' + # Python 3.11 + core packages (minimum supported versions) + optional packages (minimum supported versions if any) + - python-version: '3.11' numpy-version: '1.24' pandas-version: '=2.0' xarray-version: '=2023.04' @@ -80,9 +80,9 @@ jobs: pandas-version: '' xarray-version: '' optional-packages: ' contextily geopandas>=1.0 ipython pyarrow rioxarray sphinx-gallery' - # Python 3.11 + core packages (Linux only) + # Python 3.12 + core packages (Linux only) - os: 'ubuntu-latest' - python-version: '3.11' + python-version: '3.12' numpy-version: '' pandas-version: '' xarray-version: '' diff --git a/.github/workflows/ci_tests_legacy.yaml b/.github/workflows/ci_tests_legacy.yaml index b927e34ebc0..d8195e8fe17 100644 --- a/.github/workflows/ci_tests_legacy.yaml +++ b/.github/workflows/ci_tests_legacy.yaml @@ -59,7 +59,7 @@ jobs: - conda-forge - nodefaults create-args: >- - python=3.10 + python=3.11 gmt=${{ matrix.gmt_version }} ghostscript<10 numpy<2 diff --git a/environment.yml b/environment.yml index 3b1bcd6a5e3..c9a9932f596 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ channels: - conda-forge - nodefaults dependencies: - - python>=3.10 + - python>=3.11 # Required dependencies - gmt=6.5.0 - ghostscript=10.04.0 diff --git a/pygmt/tests/test_clib_put_vector.py b/pygmt/tests/test_clib_put_vector.py index 968e09bf87c..cad77ba59cf 100644 --- a/pygmt/tests/test_clib_put_vector.py +++ b/pygmt/tests/test_clib_put_vector.py @@ -126,7 +126,7 @@ def test_put_vector_string_dtype(): "2021-02-03T00:00:00", "2021-02-03T04:00:00", "2021-02-03T04:05:06", - f"{datetime.datetime.now(tz=datetime.timezone.utc).strftime('%Y-%m-%d')}T04:50:06", + f"{datetime.datetime.now(tz=datetime.UTC).strftime('%Y-%m-%d')}T04:50:06", ], ] diff --git a/pyproject.toml b/pyproject.toml index 0f871dbcfd2..184c2dbdece 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" name = "pygmt" description = "A Python interface for the Generic Mapping Tools" readme = "README.md" -requires-python = ">=3.10" +requires-python = ">=3.11" authors = [{name = "The PyGMT Developers", email = "pygmt.team@gmail.com"}] keywords = [ "cartography", @@ -24,7 +24,6 @@ classifiers = [ "Intended Audience :: Education", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13",