Skip to content

Commit 5ba597e

Browse files
committedDec 12, 2024
pin to compatible Keras versions
1 parent f3e0473 commit 5ba597e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎pyproject.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ version = "0.14.0"
3131
[tool.poetry.dependencies]
3232
python = ">=3.9.0,<3.13"
3333
scikit-learn = ">=1.4.2,<1.6.0"
34-
keras = ">=3.2.0"
34+
keras = ">=3.2.0,<3.7.0"
3535
tensorflow = { version = ">=2.16.1", optional = true }
3636

3737
[tool.poetry.extras]
@@ -82,3 +82,7 @@ show_missing = true
8282
[build-system]
8383
build-backend = "poetry.core.masonry.api"
8484
requires = ["poetry-core>=1.0.8"]
85+
86+
# ignore pytest warnings about missing __file__ attribute
87+
[tool.pytest.ini_options]
88+
filterwarnings = "ignore::DeprecationWarning:scikeras"

‎scikeras/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@
2525
I thank all of the users and contributors over the years and hope that the new Keras wrappers will meet your needs.
2626
TODO: add link to Keras docs and release here.
2727
""",
28+
DeprecationWarning,
2829
stacklevel=1,
2930
)

0 commit comments

Comments
 (0)