Skip to content

Commit 76b46cf

Browse files
authored
Supporting Python 3.14 (#310)
1 parent f64b3fb commit 76b46cf

File tree

10 files changed

+33
-24
lines changed

10 files changed

+33
-24
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.event_name == 'pull_request' # pre-commit-ci/lite-action only runs here
1313
strategy:
1414
matrix:
15-
python-version: [3.11, 3.13] # Our min and max supported Python versions
15+
python-version: [3.11, 3.14] # Our min and max supported Python versions
1616
steps:
1717
- uses: actions/checkout@v5
1818
with:
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
strategy:
3232
matrix:
33-
python-version: [3.11, 3.13] # Our min and max supported Python versions
33+
python-version: [3.11, 3.14] # Our min and max supported Python versions
3434
steps:
3535
- uses: actions/checkout@v5
3636
with:

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.12
1+
3.13

packages/gsm8k/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classifiers = [
1414
"Programming Language :: Python :: 3.11",
1515
"Programming Language :: Python :: 3.12",
1616
"Programming Language :: Python :: 3.13",
17+
"Programming Language :: Python :: 3.14",
1718
"Programming Language :: Python",
1819
"Topic :: Scientific/Engineering :: Artificial Intelligence",
1920
]

packages/hotpotqa/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classifiers = [
1414
"Programming Language :: Python :: 3.11",
1515
"Programming Language :: Python :: 3.12",
1616
"Programming Language :: Python :: 3.13",
17+
"Programming Language :: Python :: 3.14",
1718
"Programming Language :: Python",
1819
"Topic :: Scientific/Engineering :: Artificial Intelligence",
1920
]

packages/lfrqa/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classifiers = [
1414
"Programming Language :: Python :: 3.11",
1515
"Programming Language :: Python :: 3.12",
1616
"Programming Language :: Python :: 3.13",
17+
"Programming Language :: Python :: 3.14",
1718
"Programming Language :: Python",
1819
"Topic :: Scientific/Engineering :: Artificial Intelligence",
1920
]

packages/litqa/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classifiers = [
1414
"Programming Language :: Python :: 3.11",
1515
"Programming Language :: Python :: 3.12",
1616
"Programming Language :: Python :: 3.13",
17+
"Programming Language :: Python :: 3.14",
1718
"Programming Language :: Python",
1819
"Topic :: Scientific/Engineering :: Artificial Intelligence",
1920
]
@@ -39,6 +40,7 @@ datasets = [
3940
dev = [
4041
"aviary.litqa[datasets]",
4142
"paper-qa>=5.29.1", # Pin for gen_answer's EmptyDocsError, with fix
43+
"tantivy>=0.25.0; python_version >= '3.14'", # For Python 3.14 support
4244
]
4345

4446
[tool.ruff]

packages/notebook/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classifiers = [
1414
"Programming Language :: Python :: 3.11",
1515
"Programming Language :: Python :: 3.12",
1616
"Programming Language :: Python :: 3.13",
17+
"Programming Language :: Python :: 3.14",
1718
"Programming Language :: Python",
1819
"Topic :: Scientific/Engineering :: Artificial Intelligence",
1920
]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ classifiers = [
1818
"Programming Language :: Python :: 3.11",
1919
"Programming Language :: Python :: 3.12",
2020
"Programming Language :: Python :: 3.13",
21+
"Programming Language :: Python :: 3.14",
2122
"Programming Language :: Python",
2223
"Topic :: Scientific/Engineering :: Artificial Intelligence",
2324
]
@@ -63,7 +64,6 @@ dev = [
6364
"pytest-xdist",
6465
"pytest>=8", # Pin to keep recent
6566
"refurb>=2", # Pin to keep recent
66-
"tantivy<=0.22.0", # Pin until https://github.com/quickwit-oss/tantivy-py/issues/371 is resolved
6767
"tenacity",
6868
"typeguard",
6969
"vcrpy>=6", # Pin for https://github.com/kevin1024/vcrpy/issues/884

src/aviary/env.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
import asyncio
42
import importlib
53
import inspect
@@ -397,7 +395,7 @@ class TaskDataset(ABC, Generic[TEnvironment]):
397395
"""
398396

399397
@classmethod
400-
def from_name(cls, name: str, **env_kwargs) -> TaskDataset:
398+
def from_name(cls, name: str, **env_kwargs) -> "TaskDataset":
401399
return _get_cls_from_name(TASK_DATASET_REGISTRY, name)(**env_kwargs)
402400

403401
def __len__(self) -> int:
@@ -531,7 +529,7 @@ async def get_id(self) -> str:
531529
return self.task
532530

533531
@classmethod
534-
def from_task(cls, task: str) -> DummyEnv:
532+
def from_task(cls, task: str) -> "DummyEnv":
535533
return cls(task=task)
536534

537535
async def step(

uv.lock

Lines changed: 21 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)