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 83f8dc0 commit 7c8a748
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 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
18 changes: 16 additions & 2 deletions 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,9 +37,23 @@ 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]
basepython = python3.8
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: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
Expand Down

0 comments on commit 7c8a748

Please sign in to comment.