diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f07deb13..e80a09bb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,7 +53,7 @@ jobs: strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] steps: - name: Checkout code diff --git a/CHANGES.txt b/CHANGES.txt index 35026e16..d4543836 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,9 @@ -2.1.1 (TBD) +2.1.1 (2023-07-20) Changed: +- Version 2.1.0 was not compatible with Python 3.7 because of an import of + typing.Literal. It is now imported exclusively from typing_extensions and + Python 3.7, while EOL, will be supported for a while longer (#). - The upper version pin for click has been removed. This project ignores type errors involving click.command() and click.group() since 2.1.0 and does not need to avoid click 8.1.4 or 8.1.5. diff --git a/noxfile.py b/noxfile.py index 0e5990a3..13ab37a6 100644 --- a/noxfile.py +++ b/noxfile.py @@ -37,7 +37,7 @@ def coverage(session): session.run('coverage', 'report') -@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"]) +@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]) def test(session): session.run('python', '-m', 'ensurepip', '--upgrade') session.install('-U', 'setuptools') diff --git a/planet/clients/subscriptions.py b/planet/clients/subscriptions.py index de91daeb..bf92193b 100644 --- a/planet/clients/subscriptions.py +++ b/planet/clients/subscriptions.py @@ -1,7 +1,9 @@ """Planet Subscriptions API Python client.""" import logging -from typing import AsyncIterator, Literal, Optional, Sequence +from typing import AsyncIterator, Optional, Sequence + +from typing_extensions import Literal from planet.exceptions import APIError, ClientError from planet.http import Session diff --git a/planet/subscription_request.py b/planet/subscription_request.py index ca6bff2a..648c93e6 100644 --- a/planet/subscription_request.py +++ b/planet/subscription_request.py @@ -13,7 +13,9 @@ # the License. """Functionality for preparing subscription requests.""" from datetime import datetime -from typing import Any, Dict, Optional, List, Literal, Mapping, Sequence +from typing import Any, Dict, Optional, List, Mapping, Sequence + +from typing_extensions import Literal from . import geojson, specs from .exceptions import ClientError