From f94a8b45038032f87de807bd39e1cf3f8e8ce584 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 22 Jul 2022 09:34:17 -0400 Subject: [PATCH 1/5] build(deps): bump orjson from 3.7.7 to 3.7.8 (#852) Bumps [orjson](https://github.com/ijl/orjson) from 3.7.7 to 3.7.8. - [Release notes](https://github.com/ijl/orjson/releases) - [Changelog](https://github.com/ijl/orjson/blob/master/CHANGELOG.md) - [Commits](https://github.com/ijl/orjson/compare/3.7.7...3.7.8) --- updated-dependencies: - dependency-name: orjson dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Duckworth --- requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-test.txt b/requirements-test.txt index 1b34d47ca..29509de49 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -14,4 +14,4 @@ types-orjson==3.6.2 pre-commit==2.20.0 # optional dependencies -orjson==3.7.7 +orjson==3.7.8 From b6ed96127d32e0ea9381995428ddf45811e8f0c8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 22 Jul 2022 09:41:34 -0400 Subject: [PATCH 2/5] build(deps): bump mypy from 0.961 to 0.971 (#851) Bumps [mypy](https://github.com/python/mypy) from 0.961 to 0.971. - [Release notes](https://github.com/python/mypy/releases) - [Commits](https://github.com/python/mypy/compare/v0.961...v0.971) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-test.txt b/requirements-test.txt index 29509de49..c744f6bd0 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,4 +1,4 @@ -mypy==0.961 +mypy==0.971 flake8==4.0.1 black==22.6.0 From ccead6bbc59ba5ecb239ad6c678ba15710ed911f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 22 Jul 2022 09:51:21 -0400 Subject: [PATCH 3/5] build(deps): bump types-python-dateutil from 2.8.18 to 2.8.19 (#850) Bumps [types-python-dateutil](https://github.com/python/typeshed) from 2.8.18 to 2.8.19. - [Release notes](https://github.com/python/typeshed/releases) - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-python-dateutil dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-test.txt b/requirements-test.txt index c744f6bd0..d1c91cb04 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -8,7 +8,7 @@ jsonschema==4.7.2 coverage==6.4.2 doc8==0.11.2 -types-python-dateutil==2.8.18 +types-python-dateutil==2.8.19 types-orjson==3.6.2 pre-commit==2.20.0 From 1714eafed957271ef465a21af8dab49e9b4bf775 Mon Sep 17 00:00:00 2001 From: Jon Duckworth Date: Fri, 22 Jul 2022 10:06:33 -0400 Subject: [PATCH 4/5] Remove Python 3.7 support (#853) * Remove Python 3.7 support * Fix CHANGELOG entry --- .github/workflows/continuous-integration.yml | 2 -- CHANGELOG.md | 2 ++ README.md | 6 +++--- pystac/summaries.py | 7 +------ setup.py | 8 ++------ 5 files changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 3d95c1921..06334621e 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -21,7 +21,6 @@ jobs: fail-fast: false matrix: python-version: - - "3.7" - "3.8" - "3.9" - "3.10" @@ -123,7 +122,6 @@ jobs: fail-fast: false matrix: python-version: - - "3.7" - "3.8" - "3.9" - "3.10" diff --git a/CHANGELOG.md b/CHANGELOG.md index db5e5d6ce..ed486db93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ ### Removed +- Support for Python 3.7 ([#853](https://github.com/stac-utils/pystac/pull/853)) + ### Changed ### Fixed diff --git a/README.md b/README.md index 07aa7291e..6c3bc7f87 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,10 @@ PySTAC is a library for working with [SpatioTemporal Asset Catalog](https://stac ## Installation -PySTAC requires Python >= 3.7. This project follows the recommendations of +PySTAC requires Python >= 3.8. This project follows the recommendations of [NEP-29](https://numpy.org/neps/nep-0029-deprecation_policy.html) in deprecating support -for Python versions. This means that users can expect support for Python 3.7 to be -removed from the `main` branch after Dec 26, 2021 and therefore from the next release +for Python versions. This means that users can expect support for Python 3.8 to be +removed from the `main` branch after Apr 14, 2023 and therefore from the next release after that date. Note that while we support Python 3.10.\*, wheels for the `orjson` library are not always immediately available for all diff --git a/pystac/summaries.py b/pystac/summaries.py index f7850628c..c9718caf5 100644 --- a/pystac/summaries.py +++ b/pystac/summaries.py @@ -1,5 +1,4 @@ from copy import deepcopy -import sys import numbers from enum import Enum from functools import lru_cache @@ -13,17 +12,13 @@ Generic, List, Optional, + Protocol, Union, TypeVar, Iterable, TYPE_CHECKING, ) -if sys.version_info >= (3, 8): - from typing import Protocol -else: - from typing_extensions import Protocol - if TYPE_CHECKING: from pystac.item import Item as Item_Type from pystac.collection import Collection as Collection_Type diff --git a/setup.py b/setup.py index ca4065801..53af1bb4c 100644 --- a/setup.py +++ b/setup.py @@ -22,11 +22,8 @@ packages=find_packages(exclude=["tests*"]), package_data={"": ["py.typed", "*.jinja2"]}, py_modules=[splitext(basename(path))[0] for path in glob("pystac/*.py")], - python_requires=">=3.7", - install_requires=[ - "python-dateutil>=2.7.0", - 'typing_extensions >= 3.7; python_version < "3.8"', - ], + python_requires=">=3.8", + install_requires=["python-dateutil>=2.7.0"], extras_require={"validation": ["jsonschema>=3.0"], "orjson": ["orjson>=3.5"]}, license="Apache Software License 2.0", license_files=["LICENSE"], @@ -38,7 +35,6 @@ "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", From 106dfd42a1450619d305d39b19500561fb0b7316 Mon Sep 17 00:00:00 2001 From: Jon Duckworth Date: Fri, 22 Jul 2022 10:17:22 -0400 Subject: [PATCH 5/5] Change to support v1.6.0 release (#854) --- CHANGELOG.md | 12 +++++++++--- pystac/version.py | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed486db93..63e650d7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,12 +6,17 @@ ### Removed -- Support for Python 3.7 ([#853](https://github.com/stac-utils/pystac/pull/853)) - ### Changed ### Fixed + +## [v1.6.0] + +### Removed + +- Support for Python 3.7 ([#853](https://github.com/stac-utils/pystac/pull/853)) + ## [v1.5.0] ### Added @@ -604,7 +609,8 @@ use `Band.create` Initial release. -[Unreleased]: +[Unreleased]: +[v1.6.0]: [v1.5.0]: [v1.4.0]: [v1.3.0]: diff --git a/pystac/version.py b/pystac/version.py index ba4486ac1..6830dbc0e 100644 --- a/pystac/version.py +++ b/pystac/version.py @@ -1,7 +1,7 @@ import os from typing import Optional -__version__ = "1.5.0" +__version__ = "1.6.0" """Library version"""