Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ html5lib = ">=1.1"
python-calamine = ">=0.2.0"
pyarrow-stubs = { version = ">=20.0.0.20250928", python = "<4" }
fsspec = "^2025.10.0"
tables = { version = ">=3.10.2", python = ">=3.11,<3.14" } # TODO: add py314 when PyTables/PyTables#1261 is resolved
tables = { version = ">=3.10.2", python = ">=3.11" }

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
10 changes: 0 additions & 10 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,21 +336,14 @@ def test_sas_xport() -> None:
pass


MESSAGE_PYTABLE_314 = (
"PyTables does not support Python 3.14+ yet, see PyTables/PyTables#1261"
)


@pytest.mark.skipif(sys.version_info < (3, 11), reason="PyTables requires Python 3.11+")
@pytest.mark.skipif(sys.version_info >= (3, 14), reason=MESSAGE_PYTABLE_314)
def test_hdf(tmp_path: Path) -> None:
path_str = str(tmp_path / str(uuid.uuid4()))
check(assert_type(DF.to_hdf(path_str, key="df"), None), type(None))
check(assert_type(read_hdf(path_str), DataFrame | Series), DataFrame)


@pytest.mark.skipif(sys.version_info < (3, 11), reason="PyTables requires Python 3.11+")
@pytest.mark.skipif(sys.version_info >= (3, 14), reason=MESSAGE_PYTABLE_314)
def test_hdfstore(tmp_path: Path) -> None:
path_str = str(tmp_path / str(uuid.uuid4()))
store = HDFStore(path_str, model="w")
Expand Down Expand Up @@ -386,7 +379,6 @@ def test_hdfstore(tmp_path: Path) -> None:


@pytest.mark.skipif(sys.version_info < (3, 11), reason="PyTables requires Python 3.11+")
@pytest.mark.skipif(sys.version_info >= (3, 14), reason=MESSAGE_PYTABLE_314)
def test_read_hdf_iterator(tmp_path: Path) -> None:
path_str = str(tmp_path / str(uuid.uuid4()))
check(assert_type(DF.to_hdf(path_str, key="df", format="table"), None), type(None))
Expand All @@ -402,7 +394,6 @@ def test_read_hdf_iterator(tmp_path: Path) -> None:


@pytest.mark.skipif(sys.version_info < (3, 11), reason="PyTables requires Python 3.11+")
@pytest.mark.skipif(sys.version_info >= (3, 14), reason=MESSAGE_PYTABLE_314)
def test_hdf_context_manager(tmp_path: Path) -> None:
path_str = str(tmp_path / str(uuid.uuid4()))
check(assert_type(DF.to_hdf(path_str, key="df", format="table"), None), type(None))
Expand All @@ -412,7 +403,6 @@ def test_hdf_context_manager(tmp_path: Path) -> None:


@pytest.mark.skipif(sys.version_info < (3, 11), reason="PyTables requires Python 3.11+")
@pytest.mark.skipif(sys.version_info >= (3, 14), reason=MESSAGE_PYTABLE_314)
def test_hdf_series(tmp_path: Path) -> None:
s = DF["a"]
path_str = str(tmp_path / str(uuid.uuid4()))
Expand Down
Loading