Skip to content

Commit

Permalink
BLD: Add support for Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
nmacholl committed Nov 6, 2024
1 parent baec139 commit 05ac86b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
name: build - Python ${{ matrix.python-version }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}

Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 0.45.0 - TBD

This release adds support for Python v3.13.

#### Enhancements
- Added support for Python 3.13

## 0.44.1 - 2024-10-29

#### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repository = "https://github.com/databento/databento-python"
"Bug Tracker" = "https://github.com/databento/databento-python/issues"

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
python = ">=3.9,<3.14"
aiohttp = [
{version = "^3.8.3", python = "<3.12"},
{version = "^3.9.0", python = "^3.12"}
Expand Down
7 changes: 6 additions & 1 deletion tests/mockliveserver/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ def _command_active_count(self, *_: str) -> None:
"""
Log the number of active connections.
"""
count = self._server._active_count # type: ignore [attr-defined]
# _active_count was removed in Python 3.13
if hasattr(self._server, "_active_count"):
count = self._server._active_count
else:
count = len(self._server._clients) # type: ignore [attr-defined]

logger.info("active connections: %d", count)

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

0 comments on commit 05ac86b

Please sign in to comment.