Skip to content

Commit

Permalink
Support and test with py3.11 (#619)
Browse files Browse the repository at this point in the history
- update scikit-learn dependency to support python 3.11
  • Loading branch information
danielhollas committed Nov 19, 2024
1 parent 7c9a3ef commit 7f3668d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:

strategy:
matrix:
python-version: ['3.9', '3.10']
python-version: ['3.9', '3.11']
# Test on the latest and oldest supported version
aiida-core-version: [2.2.2, 2.4.3]
fail-fast: false
Expand Down
17 changes: 13 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@ build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
filterwarnings = [
'error',
'ignore::DeprecationWarning:bokeh.core.property.primitive',
# The following deprecation warnings come from Python 3.12 stdlib modules
"ignore:datetime.datetime.:DeprecationWarning:",
# This one is coming from plumpy
"ignore:There is no current event loop:DeprecationWarning:",
# This deprecation warning coming from sqlite3 module might go away if we update bokeh
"ignore:The default datetime adapter is deprecated as of Python 3.12; see the sqlite3 documentation for suggested replacement recipes:DeprecationWarning:",
# This is needed since SQLAlchemy 2.0, see
# https://github.com/aiidalab/aiidalab-widgets-base/issues/605
'ignore:Object of type .* not in session, .* operation along .* will not proceed:sqlalchemy.exc.SAWarning',
'ignore::DeprecationWarning:bokeh',
'ignore:Creating AiiDA configuration:UserWarning:aiida',
'ignore:crystal system:UserWarning:ase.io.cif',
'ignore::DeprecationWarning:ase.atoms',
Expand All @@ -22,8 +30,9 @@ filterwarnings = [
'ignore:Exception ignored in:pytest.PytestUnraisableExceptionWarning:_pytest',
'ignore::DeprecationWarning:pytest_html',
'ignore::DeprecationWarning:jupyter_client',
'ignore::DeprecationWarning:selenium',
'ignore::DeprecationWarning:pytest_selenium',
# This warning is coming from circus (aiida-core dependency):
# https://github.com/circus-tent/circus/issues/1215
"ignore:'pipes' is deprecated and slated for removal in Python 3.13:DeprecationWarning:",
]

[tool.ruff]
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ optimade =
ipyoptimade~=0.1
smiles =
rdkit>=2021.09.2
scikit-learn~=1.0.0
scikit-learn~=1.1
docs =
sphinx
sphinx-design
Expand Down

0 comments on commit 7f3668d

Please sign in to comment.