Skip to content

Commit 4311923

Browse files
authored
chore: add supports for Python 3.11, fix build for Python 3.7.15 (#523)
1 parent 472a8a7 commit 4311923

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ workflows:
198198
- tests-python:
199199
name: test-3.10
200200
python-image: "cimg/python:3.10"
201+
- tests-python:
202+
name: test-3.11
203+
python-image: "cimg/python:3.11"
201204

202205
nightly:
203206
when:

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## 1.35.0 [unreleased]
22

3+
### CI
4+
1. [#523](https://github.com/influxdata/influxdb-client-python/pull/523): Add Python 3.11 to CI builds
5+
36
## 1.34.0 [2022-10-27]
47

58
### Breaking Changes

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
'Programming Language :: Python :: 3.8',
8181
'Programming Language :: Python :: 3.9',
8282
'Programming Language :: Python :: 3.10',
83+
'Programming Language :: Python :: 3.11',
8384
'Topic :: Database',
8485
'Topic :: Software Development :: Libraries',
8586
'Topic :: Software Development :: Libraries :: Python Modules',

tests/test_InfluxDBClient.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,14 +407,16 @@ def test_custom_debug_logging_handler(self):
407407

408408

409409
class ServerWithSelfSingedSSL(http.server.SimpleHTTPRequestHandler):
410-
def _set_headers(self):
411-
self.send_response(200)
412-
self.send_header('Content-type', 'application/json')
410+
def _set_headers(self, response: bytes):
411+
self.send_response(http.HTTPStatus.OK)
412+
self.send_header("Content-type", 'application/json')
413+
self.send_header("Content-Length", f'{len(response)}')
414+
self.send_header("Last-Modified", self.date_time_string())
413415
self.end_headers()
414416

415417
def do_GET(self):
416-
self._set_headers()
417418
response = json.dumps(
418419
dict(name="influxdb", message="ready for queries and writes", status="pass", checks=[], version="2.0.0",
419420
commit="abcdefgh")).encode('utf-8')
421+
self._set_headers(response)
420422
self.wfile.write(response)

0 commit comments

Comments
 (0)