Skip to content

Commit

Permalink
use python 3.12 as base_python
Browse files Browse the repository at this point in the history
  • Loading branch information
blancadesal committed Feb 11, 2024
1 parent 9034dd8 commit d1f3503
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
python_version: "3.9.17"
python_version: "3.12"
poetry_install_options: "--without dev"
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build:
os: ubuntu-20.04
tools:
# Keep version in sync with tox.ini (docs and gh-actions).
python: "3.9"
python: "3.12"

python:
install:
Expand Down
16 changes: 9 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
skipdist = True
skip_missing_interpreters = True
isolated_build = True
envlist = py39, py310, py311, py312, docs, pre-commit
envlist = py{39,310,311,312}, docs, pre-commit

# Keep python version for docs in sync with docs testenv:docs and .readthedocs.yml
[gh-actions]
Expand All @@ -22,8 +22,8 @@ python =
[testenv:.package]
install_command =


[testenv]
description = run unit tests
skip_install = true
allowlist_externals = poetry
commands_pre = poetry install
Expand All @@ -33,24 +33,26 @@ commands =
[testenv:docs]
# Keep basepython in sync with gh-actions and .readthedocs.yml.
description = invoke sphinx-build to build the HTML docs
basepython = python3.9
basepython = python3.12
commands =
poetry run sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
python -c 'import pathlib; print("documentation available under file:https://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'

[testenv:serve-docs]
# Keep basepython in sync with gh-actions and .readthedocs.yml.
description = live serve docs with sphinx-autobuild
basepython = python3.9
description = live-serve docs with sphinx-autobuild
basepython = python3.12
commands =
poetry run sphinx-autobuild --port=0 --open-browser docs docs/_build/html

[testenv:pre-commit]
basepython = python3.9
description = run linters and formatters
basepython = python3.12
commands =
poetry run pre-commit run --all-files

[testenv:typing]
basepython = python3.9
description = run type checks
basepython = python3.12
commands =
poetry run mypy ./src

0 comments on commit d1f3503

Please sign in to comment.