From 58615de380298fe969a2dda5fd536c51ea6a086f Mon Sep 17 00:00:00 2001 From: "Stephen C. Pope" Date: Thu, 9 May 2024 08:15:11 -0700 Subject: [PATCH] Client release v3.1.0 (#12567) GitOrigin-RevId: 1979767b5a8b09062843ec7b5eb6ce37847f1ce3 --- .github/workflows/public-ci.yml | 2 +- README.md | 6 +++++- descarteslabs/core/client/__init__.py | 6 ++++++ descarteslabs/core/client/version.py | 2 +- setup.py | 6 +++--- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/public-ci.yml b/.github/workflows/public-ci.yml index 50732819..1cd07a70 100644 --- a/.github/workflows/public-ci.yml +++ b/.github/workflows/public-ci.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 diff --git a/README.md b/README.md index a7b648a1..0ecc7314 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,11 @@ The documentation for the latest release can be found at [https://docs.descartes Changelog ========= -## Unreleased +## [3.1.0] - 2024-05-09 + +### General + +- Due to declining support for Python 3.8 across the ecosystem, we have discontinued our support for Python 3.8. It is expected that the client will continue to function until Python 3.8 is End of Life (October 2024), but we can no longer test new releases against this version. ### Catalog diff --git a/descarteslabs/core/client/__init__.py b/descarteslabs/core/client/__init__.py index e092ec62..a1102f7d 100644 --- a/descarteslabs/core/client/__init__.py +++ b/descarteslabs/core/client/__init__.py @@ -21,6 +21,12 @@ ) raise ImportError(msg) +if sys.version_info < (3, 9): + msg = "Python version {}.{} is no longer supported. You may encounter unexpected errors.".format( + sys.version_info.major, sys.version_info.minor + ) + warnings.warn(msg, FutureWarning) + if sys.version_info >= (3, 12): msg = "Python version {}.{} is not supported yet. You may encounter unexpected errors.".format( sys.version_info.major, sys.version_info.minor diff --git a/descarteslabs/core/client/version.py b/descarteslabs/core/client/version.py index 6b106438..e6f65678 100644 --- a/descarteslabs/core/client/version.py +++ b/descarteslabs/core/client/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "3.0.5" +__version__ = "3.1.0" diff --git a/setup.py b/setup.py index 97e1eb30..7dc874e4 100644 --- a/setup.py +++ b/setup.py @@ -67,7 +67,6 @@ def do_setup(): classifiers=[ "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -91,7 +90,7 @@ def do_setup(): "descarteslabs = descarteslabs.core.client.scripts.__main__:main" ] }, - python_requires="~=3.8", + python_requires="~=3.9", install_requires=[ "affine>=2.2.2", "blosc>=1.10.6", @@ -100,7 +99,8 @@ def do_setup(): "dynaconf>=3.1.11", "geojson>=2.5.0", "geopandas>=0.13.2", - "imagecodecs>=2021.5.20", + "imagecodecs>=2021.6.8,<=2023.3.16;python_version=='3.8'", + "imagecodecs>=2023.3.16;python_version>='3.9'", "lazy_object_proxy>=1.7.1", "mercantile>=1.1.3", "numpy>=1.22.0;python_version>='3.8' and python_version<'3.11'",