From 975317234c79ac4cd6ed5bf7403834a87783dbad Mon Sep 17 00:00:00 2001 From: Ales Pour Date: Mon, 2 Mar 2026 18:02:03 +0100 Subject: [PATCH 1/3] chore: upgrade Pythin matrix in CI --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a9c1f7f..406373f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2.1 parameters: default-python-image: type: string - default: "cimg/python:3.8" + default: "cimg/python:3.9" executors: docker-amd64-image: @@ -193,7 +193,7 @@ workflows: matrix: parameters: exe: [ docker-amd64-image, docker-arm64-image ] - python-image: [ << pipeline.parameters.default-python-image >>, "cimg/python:3.9", "cimg/python:3.10", "cimg/python:3.11", "cimg/python:3.12", "cimg/python:3.13" ] + python-image: [ << pipeline.parameters.default-python-image >>, "cimg/python:3.10", "cimg/python:3.11", "cimg/python:3.12", "cimg/python:3.13", "cimg/python:3.14" ] - tests-python: requires: - tests-python From f62880f84c169a2d7621cf3e5710dab7f58b66f9 Mon Sep 17 00:00:00 2001 From: Ales Pour Date: Mon, 2 Mar 2026 18:06:18 +0100 Subject: [PATCH 2/3] test: base for 3.9+ --- tests/test_api_client.py | 2 -- tests/util/mocks.py | 1 - 2 files changed, 3 deletions(-) diff --git a/tests/test_api_client.py b/tests/test_api_client.py index 411c9aa..e5600b5 100644 --- a/tests/test_api_client.py +++ b/tests/test_api_client.py @@ -56,7 +56,6 @@ def mock_urllib3_timeout_request(method, return response.HTTPResponse(status=200, version=4, reason="OK", decode_content=False, request_url=url) def test_default_headers(self): - global _package conf = Configuration() client = ApiClient(conf, header_name="Authorization", @@ -69,7 +68,6 @@ def test_default_headers(self): @mock.patch("influxdb_client_3.write_client._sync.rest.RESTClientObject.request", side_effect=mock_rest_request) def test_call_api(self, mock_post): - global _package global _sentHeaders _sentHeaders = {} diff --git a/tests/util/mocks.py b/tests/util/mocks.py index 8716e19..416e020 100644 --- a/tests/util/mocks.py +++ b/tests/util/mocks.py @@ -53,7 +53,6 @@ def set_req_headers(headers): def get_req_headers(): - global req_headers return req_headers From bba0792d099d85a56b4d32e9f3959876d91747c4 Mon Sep 17 00:00:00 2001 From: Ales Pour Date: Tue, 3 Mar 2026 08:32:32 +0100 Subject: [PATCH 3/3] chore: Python 3.9+ required --- README.md | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0be7419..7b27911 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ pip install influxdb3-python Note: This does not include Pandas support. If you would like to use key features such as `to_pandas()` and `write_file()` you will need to install `pandas` separately. -*Note: Please make sure you are using 3.6 or above. For the best performance use 3.11+* +*Note: Please make sure you are using 3.9 or above. For the best performance use 3.11+* # Usage One of the easiest ways to get started is to checkout the ["Pokemon Trainer Cookbook"](https://github.com/InfluxCommunity/influxdb3-python/blob/main/Examples/pokemon-trainer/cookbook.ipynb). This scenario takes you through the basics of both the client library and Pyarrow. diff --git a/setup.py b/setup.py index 5f06d37..2920869 100644 --- a/setup.py +++ b/setup.py @@ -60,16 +60,16 @@ def get_version(): ] }, install_requires=requires, - python_requires='>=3.8', + python_requires='>=3.9', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: 3.14', ] )