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 authored Jul 8, 2024
1 parent 6075e7c commit 6dfe6fa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,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.5.1]
fail-fast: false
Expand Down
11 changes: 10 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
filterwarnings = [
'error',
# 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.core.property.primitive',
'ignore::DeprecationWarning:bokeh',
'ignore:Creating AiiDA configuration:UserWarning:aiida',
'ignore:The `Code` class:aiida.common.warnings.AiidaDeprecationWarning:',
'ignore:crystal system:UserWarning:ase.io.cif',
Expand All @@ -25,6 +31,9 @@ filterwarnings = [
# https://github.com/aiidalab/aiidalab-widgets-base/issues/551
'ignore:Exception ignored in:pytest.PytestUnraisableExceptionWarning:_pytest',
'ignore::DeprecationWarning:jupyter_client',
# 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 @@ -57,7 +57,7 @@ eln =
aiidalab-eln>=0.1.2,~=0.1
smiles =
rdkit>=2021.09.2
scikit-learn~=1.0.0
scikit-learn~=1.1
docs =
sphinx~=7.3
sphinx-design~=0.5
Expand Down

0 comments on commit 6dfe6fa

Please sign in to comment.