Skip to content

Commit 55e00f4

Browse files
committed
require Python >= 3.8
Numpy NEP29 dropped support for Python < 3.8 in December 2021. We are having a harder time supporting corner cases in Python 3.7.
1 parent 54fea73 commit 55e00f4

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
1919
strategy:
2020
matrix:
21-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
21+
python-version: ['3.8', '3.9', '3.10', '3.11']
2222
os: [ubuntu-latest]
2323
include:
2424
- os: macos-latest

.github/workflows/ci_stdlib_only.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
1919
strategy:
2020
matrix:
21-
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11']
21+
python-version: ['3.8', '3.9', '3.10', '3.11']
2222
os: ['ubuntu-latest']
2323
include:
2424
- os: macos-latest

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Thanks to our [contributors](./.github/contributors.md).
2424

2525
## Prerequisites
2626

27-
Pymap3d is compatible with Python &ge; 3.7 including PyPy.
28-
Numpy and AstroPy are optional; algorithms from Vallado and Meeus are used if AstroPy is not present.
27+
Numpy and AstroPy are optional.
28+
Algorithms from Vallado and Meeus are used if AstroPy is not present.
2929

3030
## Install
3131

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classifiers = ["Development Status :: 5 - Production/Stable",
1414
"Programming Language :: Python :: 3",
1515
"Topic :: Scientific/Engineering :: GIS"
1616
]
17-
requires-python = ">=3.7"
17+
requires-python = ">=3.8"
1818
dynamic = ["version", "readme"]
1919

2020
[tool.setuptools.dynamic]

src/pymap3d/ellipsoid.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
from __future__ import annotations
44
from math import sqrt
55
from dataclasses import dataclass, field
6+
from typing import TypedDict
67
import sys
7-
from typing import Dict # for Python < 3.9
88

9-
if sys.version_info >= (3, 8):
10-
from typing import TypedDict
9+
if sys.version_info < (3, 9):
10+
from typing import Dict
1111
else:
12-
from typing_extensions import TypedDict
12+
Dict = dict
1313

1414

1515
class Model(TypedDict):

0 commit comments

Comments
 (0)