Skip to content

Commit 2424f2c

Browse files
authored
feat: add support for py3.14 (#152)
1 parent 465f3ce commit 2424f2c

File tree

3 files changed

+270
-211
lines changed

3 files changed

+270
-211
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description = "A python package for Substrait."
44
authors = [{name = "Substrait contributors", email = "substrait@googlegroups.com"}]
55
license = {text = "Apache-2.0"}
66
readme = "README.md"
7-
requires-python = ">=3.10,<3.14"
7+
requires-python = ">=3.10,<3.15"
88
dependencies = [
99
"protobuf >=5,<7",
1010
"substrait-protobuf==0.79.0",
@@ -16,10 +16,10 @@ write_to = "src/substrait/_version.py"
1616

1717
[project.optional-dependencies]
1818
extensions = ["antlr4-python3-runtime", "pyyaml"]
19-
sql = ["sqloxide", "deepdiff"]
19+
sql = ["sqloxide; python_version < '3.14'", "deepdiff"]
2020

2121
[dependency-groups]
22-
dev = ["pytest >= 7.0.0", "antlr4-python3-runtime", "pyyaml", "sqloxide", "deepdiff", "duckdb<=1.2.2", "datafusion"]
22+
dev = ["pytest >= 7.0.0", "antlr4-python3-runtime", "pyyaml", "sqloxide; python_version < '3.14'", "deepdiff", "duckdb<=1.2.2; python_version < '3.14'", "datafusion"]
2323

2424
[tool.pytest.ini_options]
2525
pythonpath = "src"

tests/sql/test_sql_to_substrait.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import pyarrow.substrait as pa_substrait
66
import pytest
77

8+
pytest.importorskip("sqloxide")
9+
810
from substrait.extension_registry import ExtensionRegistry
911
from substrait.sql.sql_to_substrait import convert
1012

0 commit comments

Comments
 (0)