Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
folder: ["weaviate", "integration", "integration_embedded"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand All @@ -84,7 +84,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
folder: ["test", "mock_tests"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand All @@ -96,7 +96,7 @@ jobs:
- name: Run unittests
run: pytest --cov -v --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-${{ matrix.folder }}.xml ${{ matrix.folder }}
- name: Archive code coverage results
if: matrix.version == '3.10' && (github.ref_name != 'main')
if: matrix.version == '3.11' && (github.ref_name != 'main')
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: coverage-report-${{ matrix.folder }}
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
optional_dependencies: [false]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand All @@ -206,7 +206,7 @@ jobs:
if: ${{ !github.event.pull_request.head.repo.fork }}
run: pytest -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration-embedded.xml integration_embedded
- name: Archive code coverage results
if: matrix.version == '3.10' && (github.ref_name != 'main') && !github.event.pull_request.head.repo.fork
if: matrix.version == '3.11' && (github.ref_name != 'main') && !github.event.pull_request.head.repo.fork
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: coverage-report-integration-embedded
Expand All @@ -220,13 +220,13 @@ jobs:
fail-fast: false
matrix:
versions: [
{ py: "3.10", weaviate: $WEAVIATE_140, grpc: "1.59.5", protobuf: "4.25.9"},
{ py: "3.11", weaviate: $WEAVIATE_140, grpc: "1.66.0", protobuf: "5.29.6"},
{ py: "3.11", weaviate: $WEAVIATE_140, grpc: "1.59.5", protobuf: "4.25.9"},
{ py: "3.12", weaviate: $WEAVIATE_140, grpc: "1.70.0", protobuf: "5.29.6"},
{ py: "3.13", weaviate: $WEAVIATE_140, grpc: "1.72.1", protobuf: "6.33.6"},
{ py: "3.14", weaviate: $WEAVIATE_140, grpc: "1.76.0", protobuf: "6.33.6"},
{ py: "3.14", weaviate: $WEAVIATE_140, grpc: "1.85.0", protobuf: "6.33.6"},
{ py: "3.14", weaviate: $WEAVIATE_140, grpc: "1.85.0", protobuf: "7.36.2"}
{ py: "3.14", weaviate: $WEAVIATE_140, grpc: "1.85.0", protobuf: "7.36.2"},
{ py: "3.15", weaviate: $WEAVIATE_140, grpc: "1.85.0", protobuf: "7.36.2"}
]
optional_dependencies: [false]
steps:
Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:
if: ${{ github.event.pull_request.head.repo.fork || github.triggering_actor == 'dependabot[bot]' }}
run: pytest -n auto --dist loadgroup -v --cov --cov-report=term-missing --cov=weaviate --cov-report xml:coverage-integration.xml integration
- name: Archive code coverage results
if: matrix.versions.py == '3.10' && (github.ref_name != 'main')
if: matrix.versions.py == '3.11' && (github.ref_name != 'main')
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: coverage-report-integration
Expand All @@ -278,18 +278,18 @@ jobs:
fail-fast: false
matrix:
versions: [
{ py: "3.10", weaviate: $WEAVIATE_140},
{ py: "3.11", weaviate: $WEAVIATE_140},
{ py: "3.12", weaviate: $WEAVIATE_140},
{ py: "3.13", weaviate: $WEAVIATE_140},
{ py: "3.14", weaviate: $WEAVIATE_140}
{ py: "3.14", weaviate: $WEAVIATE_140},
{ py: "3.15", weaviate: $WEAVIATE_140}
Comment thread
dirkkul marked this conversation as resolved.
Resolved
]
optional_dependencies: [false]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.11"
python-version: ${{ matrix.versions.py }}
cache: 'pip' # caching pip dependencies
- name: Login to Docker Hub
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Weaviate python client

A python native client for easy interaction with a Weaviate instance.

The client is tested for python 3.9 and higher.
The client is tested for python 3.11 and higher.

Visit the official `Weaviate <https://weaviate.io/>`_ website for more information about the Weaviate and how to use it in production.

Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Version 4.25.0
This minor version includes:
- Remove support for Weaviate versions < 1.32.0. Connecting to an older server now raises ``WeaviateStartUpError`` even with ``skip_init_checks=True``. Please update your Weaviate instances
- Support ``protobuf`` 7
- Remove support for Python 3.10, which reached its end of life in October 2026. The client now requires Python 3.11 or newer
- Support Python 3.15
- Remove the legacy GraphQL aggregation path together with the ``weaviate.gql`` and ``weaviate.error_msgs`` modules, ``weaviate.util.is_weaviate_too_old`` and ``weaviate.util.MINIMUM_NO_WARNING_VERSION``, and the ``weaviate.AdditionalProperties`` and ``weaviate.LinkTo`` attributes (which already pointed at names that did not exist). Aggregations always use gRPC now. ``client.graphql_raw_query()`` is unchanged

Version 4.24.1
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Welcome to Weaviate Python Client's documentation!

|build-status| |pypi-version|

The Weaviate Python client makes it easy to work with `Weaviate <https://weaviate.io/>`_, an AI Native vector database. The client is tested for Python 3.8 and higher.
The Weaviate Python client makes it easy to work with `Weaviate <https://weaviate.io/>`_, an AI Native vector database. The client is tested for Python 3.11 and higher.

The current major version is **v4** while the older **v3** client is deprecated and should be avoided. You can find further documentation for both versions:

Expand Down
2 changes: 1 addition & 1 deletion packages/web/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "weaviate-client-web"
description = "grpc-web / WASM (Pyodide) transport for the Weaviate Python client"
readme = "README.md"
requires-python = ">=3.10"
requires-python = ">=3.11"
license = { text = "BSD-3-Clause" }
authors = [{ name = "Weaviate", email = "hello@weaviate.io" }]
keywords = ["weaviate", "grpc-web", "pyodide", "wasm", "emscripten"]
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions profiling/conftest.py → profiling_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@


def get_file_path(file_name: str) -> str:
if not os.path.exists(file_name) and not os.path.exists("profiling/" + file_name):
if not os.path.exists(file_name) and not os.path.exists("profiling_tests/" + file_name):
pytest.skip("data does not exist")
if os.path.exists("profiling/" + file_name):
file_name = "profiling/" + file_name
if os.path.exists("profiling_tests/" + file_name):
file_name = "profiling_tests/" + file_name
return file_name


Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# run:
# - profiling: pytest -m profiling profiling/test_profiling.py --profile-svg
# - benchmark: pytest profiling/test_profiling.py --benchmark-only --benchmark-disable-gc
# - profiling: pytest -m profiling profiling_tests/test_profiling.py --profile-svg
# - benchmark: pytest profiling_tests/test_profiling.py --benchmark-only --benchmark-disable-gc
import concurrent.futures
import math
import uuid
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 10 additions & 5 deletions requirements-devel.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
httpx==0.26.0
validators==0.34.0
authlib==1.9.1
grpcio==1.75.1
grpcio-tools==1.75.1
grpcio-health-checking==1.75.1
pydantic==2.12.0
# Python 3.15 needs the first releases with cp315 wheels; older ones build from source.
grpcio==1.75.1; python_version < "3.15"
grpcio-tools==1.75.1; python_version < "3.15"
grpcio-health-checking==1.75.1; python_version < "3.15"
pydantic==2.12.0; python_version < "3.15"
grpcio==1.84.0; python_version >= "3.15"
grpcio-tools==1.84.0; python_version >= "3.15"
grpcio-health-checking==1.84.0; python_version >= "3.15"
pydantic==2.14.0; python_version >= "3.15"
packaging==26.2

build
Expand All @@ -20,7 +25,7 @@ importlib_metadata==8.7.0
tomli==2.4.0
types-protobuf==6.30.2.20250703
types-urllib3==1.26.25.14
typing_extensions==4.15.0
typing_extensions==4.16.0

pre-commit
flake8
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ install_requires =
grpcio>=1.59.5,<2.0.0; sys_platform != "emscripten"
protobuf>=4.21.6,<8.0.0
packaging>=21.0
python_requires = >=3.10
python_requires = >=3.11

[options.extras_require]
agents =
Expand Down
4 changes: 1 addition & 3 deletions weaviate/collections/classes/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from datetime import datetime, timedelta, timezone
from enum import Enum, auto
from typing import (
Any,
Dict,
Generic,
List,
Expand Down Expand Up @@ -644,8 +643,7 @@ def mmr(limit: Optional[int] = None, balance: Optional[float] = None) -> MMR:

@dataclass
class BM25OperatorOptions:
# replace with ClassVar[base_search_pb2.SearchOperatorOptions.Operator] once python 3.10 is removed
operator: ClassVar[Any]
operator: ClassVar[base_search_pb2.SearchOperatorOptions.Operator]


@dataclass
Expand Down
10 changes: 4 additions & 6 deletions weaviate/collections/classes/internal.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import datetime
import sys
import uuid as uuid_package
from dataclasses import dataclass, field
from typing import (
Annotated,
Any,
Dict,
Generic,
Expand All @@ -14,15 +14,13 @@
Type,
Union,
cast,
get_args,
get_origin,
get_type_hints,
)

from typing_extensions import TypeAlias, deprecated

if sys.version_info < (3, 9):
from typing_extensions import Annotated, get_args, get_origin, get_type_hints
else:
from typing import Annotated, get_args, get_origin, get_type_hints

from weaviate.collections.classes.generative import (
_GenerativeConfigRuntime,
_GenerativeConfigRuntimeOptions,
Expand Down
6 changes: 2 additions & 4 deletions weaviate/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
UnexpectedStatusCodeError,
WeaviateInvalidInputError,
)
from weaviate.types import BLOB_INPUT, NUMBER, TIME, UUIDS
from weaviate.types import BLOB_INPUT, NUMBER, TIME, UUID, UUIDS
from weaviate.warnings import _Warnings

PYPI_PACKAGE_URL = "https://pypi.org/pypi/weaviate-client/json"
Expand Down Expand Up @@ -670,9 +670,7 @@ def _type_request_response(json_response: Any) -> Optional[Dict[str, Any]]:


def _to_beacons(uuids: UUIDS, to_class: str = "") -> List[Dict[str, str]]:
if isinstance(uuids, uuid_lib.UUID) or isinstance(
uuids, str
): # replace with isinstance(uuids, UUID) in 3.10
if isinstance(uuids, UUID):
uuids = [uuids]

if len(to_class) > 0:
Expand Down
Loading