Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tox and py312 support #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
poetry-version: ["1.1.12"]
os: [ubuntu-latest, macOS-latest, windows-latest]

Expand Down
37 changes: 36 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
Expand All @@ -26,7 +28,7 @@ click = "^8.1.0"
pydantic = "^1.9.0"
python = "^3.8"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
black = "^22.6.0"
coverage = "^6.1.2"
flake8 = "^4.0.1"
Expand All @@ -38,6 +40,7 @@ mypy = "^0.910"
pytest = "^6.2.5"
pytest-cov = "^3.0.0"
pytest-xdist = "^2.5.0"
tox = "^4.14.2"

[tool.poetry-dynamic-versioning]
enable = true
Expand Down Expand Up @@ -66,3 +69,35 @@ testpaths = ["tests"]
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]

[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
skipsdist = true
envlist =
py38
py39
py310
py311
py312
doc
coverage

[testenv]
allowlist_externals = poetry
commands =
poetry install
poetry run pytest {posargs}

[testenv:doc]
commands =
poetry install
poetry run mkdocs build

[testenv:coverage]
commands =
poetry install
poetry run pytest --cov --cov-report term:skip-covered {posargs:-n auto}
poetry run coverage html
"""