Skip to content

Commit

Permalink
require Python >= 3.8
Browse files Browse the repository at this point in the history
Numpy NEP29 dropped support for Python < 3.8 in December 2021.
We are having a harder time supporting corner cases in Python 3.7.
  • Loading branch information
scivision committed Feb 26, 2023
1 parent 54fea73 commit 55e00f4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest]
include:
- os: macos-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_stdlib_only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11']
os: ['ubuntu-latest']
include:
- os: macos-latest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Thanks to our [contributors](./.github/contributors.md).

## Prerequisites

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

## Install

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = ["Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: GIS"
]
requires-python = ">=3.7"
requires-python = ">=3.8"
dynamic = ["version", "readme"]

[tool.setuptools.dynamic]
Expand Down
8 changes: 4 additions & 4 deletions src/pymap3d/ellipsoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
from __future__ import annotations
from math import sqrt
from dataclasses import dataclass, field
from typing import TypedDict
import sys
from typing import Dict # for Python < 3.9

if sys.version_info >= (3, 8):
from typing import TypedDict
if sys.version_info < (3, 9):
from typing import Dict
else:
from typing_extensions import TypedDict
Dict = dict


class Model(TypedDict):
Expand Down

0 comments on commit 55e00f4

Please sign in to comment.