Skip to content

Commit

Permalink
ADD: Python client support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
nmacholl committed Nov 22, 2023
1 parent 3acf1bd commit a23cc2f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 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.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
name: build - Python ${{ matrix.python-version }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}

Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

## 0.24.0 - TBD

This release adds support for DBN v2.
This release adds support for DBN v2 as well as Python v3.12.

#### Enhancements
- Added support for Python 3.12
- Improved the performance for stream writes in the `Live` client
- Upgraded `databento-dbn` to 0.14.2
- Added `databento.common.types` module to hold common type annotations
Expand Down
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ repository = "https://github.com/databento/databento-python"

[tool.poetry.dependencies]
python = "^3.8"
aiohttp = "^3.8.3"
aiohttp = [
{version = "^3.8.3", python = "<3.12"},
{version = "^3.9.0", python = "^3.12"}
]
databento-dbn = "0.14.2"
numpy = ">=1.23.5"
numpy = [
{version = ">=1.23.5", python = "<3.12"},
{version = "^1.26.0", python = "^3.12"}
]
pandas = ">=1.5.3"
requests = ">=2.24.0"
zstandard = ">=0.21.0"
Expand Down
5 changes: 0 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,6 @@ async def fixture_mock_live_server(

yield mock_live_server

asyncio.run_coroutine_threadsafe(
coro=mock_live_server.stop(),
loop=loop,
).result()

loop.run_in_executor(
None,
loop.stop,
Expand Down

0 comments on commit a23cc2f

Please sign in to comment.