Skip to content

Commit c7bbab8

Browse files
committed
DEP: Minimum supported Python version 3.10
1 parent 16c04e2 commit c7bbab8

File tree

8 files changed

+24
-28
lines changed

8 files changed

+24
-28
lines changed

.github/workflows/build_docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ jobs:
2323
- name: Setup Conda
2424
uses: s-weigand/setup-conda@v1
2525
with:
26-
python-version: 3.9
26+
python-version: '3.11'
2727
conda-channels: conda-forge
2828

2929
- name: Install and Build
3030
shell: bash
3131
run: |
3232
conda config --prepend channels conda-forge
3333
conda config --set channel_priority strict
34-
conda create -n docs python=3.9 cython proj
34+
conda create -n docs python=3.11 cython proj
3535
source activate docs
3636
python -m pip install -e .
3737
python -m pip install -r requirements-docs.txt

.github/workflows/test_proj_latest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v4
3030
- uses: actions/setup-python@v4
3131
with:
32-
python-version: 3.9
32+
python-version: '3.11'
3333
- name: Install PROJ
3434
shell: bash
3535
run: |

.github/workflows/tests.yaml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v4
2424
- uses: actions/setup-python@v4
2525
with:
26-
python-version: 3.9
26+
python-version: '3.10'
2727
- uses: pre-commit/action@v3.0.0
2828
- name: Install mypy
2929
run: |
@@ -40,16 +40,16 @@ jobs:
4040
strategy:
4141
fail-fast: false
4242
matrix:
43-
python-version: ['3.9', '3.10', '3.11', '3.12']
43+
python-version: ['3.10', '3.11', '3.12']
4444
proj-version: ['9.3.0']
4545
include:
46-
- python-version: '3.9'
46+
- python-version: '3.10'
4747
proj-version: '9.2.1'
48-
- python-version: '3.9'
48+
- python-version: '3.10'
4949
proj-version: '9.1.1'
50-
- python-version: '3.9'
50+
- python-version: '3.10'
5151
proj-version: '9.1.0'
52-
- python-version: '3.9'
52+
- python-version: '3.10'
5353
proj-version: '9.0.1'
5454
steps:
5555
- uses: actions/checkout@v4
@@ -125,14 +125,15 @@ jobs:
125125
fail-fast: true
126126
matrix:
127127
os: [ubuntu-latest, macos-latest, windows-latest]
128-
python-version: ['3.9', '3.10', '3.11']
128+
python-version: ['3.10', '3.11', '3.12']
129129
python-implementation: [python]
130130
proj-version: ['*']
131131
include:
132-
- os: ubuntu-latest
133-
python-version: '*'
134-
python-implementation: pypy
135-
proj-version: '*'
132+
# DISABLED UNTIL CONDA-FORGE PYPY SUPPORTS PYTHON 3.10+
133+
# - os: ubuntu-latest
134+
# python-version: '*'
135+
# python-implementation: pypy
136+
# proj-version: '*'
136137
- os: ubuntu-latest
137138
python-version: '*'
138139
python-implementation: python
@@ -150,12 +151,7 @@ jobs:
150151
run: |
151152
conda config --prepend channels conda-forge
152153
conda config --set channel_priority strict
153-
export INSTALL_DEPS='${{ matrix.python-implementation }}=${{ matrix.python-version }} cython proj=${{ matrix.proj-version }} numpy'
154-
if [ "${{ matrix.os }}" = "macos-latest" -a "${{ matrix.python-version }}" = "3.10" ]; then
155-
sed -i.bak '/shapely/d' requirements-test.txt;
156-
else
157-
export INSTALL_DEPS="${INSTALL_DEPS} shapely";
158-
fi;
154+
export INSTALL_DEPS='${{ matrix.python-implementation }}=${{ matrix.python-version }} cython proj=${{ matrix.proj-version }} numpy shapely'
159155
if [ "${{ matrix.python-implementation }}" = "pypy" ]; then
160156
sed -i.bak '/xarray/d' requirements-test.txt;
161157
sed -i.bak '/pandas/d' requirements-test.txt;

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ environment:
1313
# See: http://www.appveyor.com/docs/installed-software#python
1414
# build is limited to 60 minutes, without caching each build takes 10-30 minutes
1515
# with caching build takes less than 1 minute
16-
- PYTHON: "C:\\Python39-x64"
16+
- PYTHON: "C:\\Python310-x64"
1717
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
1818
PROJSOURCE: 9.3.0
1919
BUILD_SHARED_LIBS: ON
20-
# - PYTHON: "C:\\Python39-x64"
20+
# - PYTHON: "C:\\Python310-x64"
2121
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
2222
# PROJSOURCE: git
2323
# BUILD_SHARED_LIBS: ON
2424
# matrix:
2525
# allow_failures:
26-
# - PYTHON: "C:\\Python39-x64"
26+
# - PYTHON: "C:\\Python310-x64"
2727
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
2828
# PROJSOURCE: git
2929
# BUILD_SHARED_LIBS: ON

docs/history.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Change Log
33

44
Latest
55
------
6+
- DEP: Minimum supported Python version 3.10 (pull #1357)
67

78
3.6.1
89
------

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GitHub Repository: https://github.com/pyproj4/pyproj
77

88
.. note:: Minimum supported PROJ version is 9.0
99

10-
.. note:: Minimum supported Python version is 3.9
10+
.. note:: Minimum supported Python version is 3.10
1111

1212
.. note:: Linux (manylinux2014) wheels require pip 19.3+
1313

pyproj/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Download: http://python.org/pypi/pyproj
66
7-
Requirements: Python 3.9+.
7+
Requirements: Python 10+.
88
99
Contact: Jeffrey Whitaker <jeffrey.s.whitaker@noaa.gov>
1010

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ classifiers = [
2929
"License :: OSI Approved :: MIT License",
3030
"Operating System :: OS Independent",
3131
"Programming Language :: Python",
32-
"Programming Language :: Python :: 3.9",
3332
"Programming Language :: Python :: 3.10",
3433
"Programming Language :: Python :: 3.11",
3534
"Programming Language :: Python :: 3.12",
@@ -40,7 +39,7 @@ classifiers = [
4039
"Topic :: Software Development :: Libraries :: Python Modules",
4140
"Typing :: Typed",
4241
]
43-
requires-python = ">=3.9"
42+
requires-python = ">=3.10"
4443
dependencies = [
4544
"certifi",
4645
]
@@ -64,4 +63,4 @@ include = ["pyproj", "pyproj.*"]
6463
version = {attr = "pyproj.__version__"}
6564

6665
[tool.black]
67-
target_version = ["py39"]
66+
target_version = ["py310"]

0 commit comments

Comments
 (0)