Skip to content

Commit 05ac86b

Browse files
committed
BLD: Add support for Python 3.13
1 parent baec139 commit 05ac86b

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
os: [ubuntu-latest, macos-latest, windows-latest]
13-
python-version: ["3.9", "3.10", "3.11", "3.12"]
13+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1414
name: build - Python ${{ matrix.python-version }} (${{ matrix.os }})
1515
runs-on: ${{ matrix.os }}
1616

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 0.45.0 - TBD
4+
5+
This release adds support for Python v3.13.
6+
7+
#### Enhancements
8+
- Added support for Python 3.13
9+
310
## 0.44.1 - 2024-10-29
411

512
#### Enhancements

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repository = "https://github.com/databento/databento-python"
2727
"Bug Tracker" = "https://github.com/databento/databento-python/issues"
2828

2929
[tool.poetry.dependencies]
30-
python = ">=3.9,<3.13"
30+
python = ">=3.9,<3.14"
3131
aiohttp = [
3232
{version = "^3.8.3", python = "<3.12"},
3333
{version = "^3.9.0", python = "^3.12"}

tests/mockliveserver/controller.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,12 @@ def _command_active_count(self, *_: str) -> None:
9494
"""
9595
Log the number of active connections.
9696
"""
97-
count = self._server._active_count # type: ignore [attr-defined]
97+
# _active_count was removed in Python 3.13
98+
if hasattr(self._server, "_active_count"):
99+
count = self._server._active_count
100+
else:
101+
count = len(self._server._clients) # type: ignore [attr-defined]
102+
98103
logger.info("active connections: %d", count)
99104

100105
def _command_add_key(self, key: str) -> None:

0 commit comments

Comments
 (0)