Skip to content

Commit

Permalink
feat: support Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofavorito committed Mar 18, 2023
1 parent 60f33d9 commit 8614923
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.9, "3.10"]
python-version: [3.8, 3.9, "3.10", "3.11"]

timeout-minutes: 30

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ classifiers = [
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Scientific/Engineering'
]

Expand All @@ -38,7 +39,7 @@ classifiers = [
"Pull Requests" = "https://github.com/bancaditalia/black-it/pulls"

[tool.poetry.dependencies]
python = ">=3.8,<3.11"
python = ">=3.8,<3.12"
GPy = {git = "https://github.com/SheffieldML/GPy.git", rev = "f63ed48"}
ipywidgets = "^8.0.4"
matplotlib = "^3.7.1"
Expand Down
17 changes: 16 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
isolated_build = True
envlist = bandit, safety, check-copyright, black-check, isort-check, vulture, flake8, mypy, pylint, py3{8,9,10}, docs
envlist = bandit, safety, check-copyright, black-check, isort-check, vulture, flake8, mypy, pylint, py3{8,9,10,11}, docs

[tox:.package]
# note tox will use the same python version as under what tox is installed to package
Expand Down Expand Up @@ -37,6 +37,12 @@ commands =
commands =
{[testenv]commands}

[testenv:py311]
; GPy cannot be installed on Python 3.11. Install everything except GPy
extras = xgboost-sampler
commands =
{[testenv]commands}

# test environment for notebooks
[testenv:py{38,39,310}-nb]
deps =
Expand All @@ -45,6 +51,15 @@ deps =
nbmake>=1.3.0,<1.4.0
commands = pytest examples/tests_on_toy_model.ipynb --nbmake --nbmake-timeout=300

[testenv:py311-nb]
; GPy cannot be installed on Python 3.11. Install everything except GPy
extras = xgboost-sampler
deps =
pytest>=7.1.2,<7.2.0
mesa>=0.9.0,<0.10.0
nbmake>=1.3.0,<1.4.0
commands = pytest examples/tests_on_toy_model.ipynb --nbmake --nbmake-timeout=300

[testenv:flake8]
skip_install = True
deps =
Expand Down

0 comments on commit 8614923

Please sign in to comment.