From 8923a4e8e434e1109a3c1dd19a771d32f33ebb92 Mon Sep 17 00:00:00 2001 From: Mathias Fussenegger Date: Tue, 20 Jan 2026 07:24:08 +0100 Subject: [PATCH] Remove py < 3.9 deps; Mention dropped python version support in changes Also removes the "Modernize project definition" entry. CHANGES.rst should be written for users of the library. The entry had no relevance for end users. --- CHANGES.rst | 7 +++++-- pyproject.toml | 2 -- tests/client/test_cursor.py | 10 ++-------- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index db094c5e..48c8588f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,8 +4,11 @@ Changes for crate Unreleased ========== -- Modernize project definition to latest Python best practices. Thanks, @surister. -- Exceptions: Exceptions from the BLOB API now include their full names. + +- Exceptions from the BLOB API now include their full names. + +- Dropped support for Python versions earlier than 3.10 as they've reached + their end of life. 2025/01/30 2.0.0 ================ diff --git a/pyproject.toml b/pyproject.toml index 7ffcd94e..27360801 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,6 @@ classifiers = [ "Topic :: System :: Networking", ] dependencies = [ - "importlib-metadata; python_version<'3.8'", "orjson", "urllib3", "verlib2>=0.3.1", @@ -57,7 +56,6 @@ dependencies = [ [dependency-groups] dev = [ - "backports.zoneinfo<1; python_version<'3.9'", "certifi", "coverage", "mypy<1.20", diff --git a/tests/client/test_cursor.py b/tests/client/test_cursor.py index 976491f9..46fbd4bd 100644 --- a/tests/client/test_cursor.py +++ b/tests/client/test_cursor.py @@ -20,22 +20,16 @@ # software solely pursuant to the terms of the relevant commercial agreement. import datetime +import zoneinfo from ipaddress import IPv4Address from unittest import mock import pytest - -from crate.client.exceptions import ProgrammingError - -try: - import zoneinfo -except ImportError: - from backports import zoneinfo - import pytz from crate.client import connect from crate.client.converter import DataType, DefaultTypeConverter +from crate.client.exceptions import ProgrammingError def test_cursor_fetch(mocked_connection):