Skip to content

Commit

Permalink
Add support for python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-mizsak committed Apr 13, 2024
1 parent eebcf6f commit 41b66fa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on:

jobs:
tox:
uses: daniel-mizsak/workflows/.github/workflows/tox.yml@main
uses: daniel-mizsak/workflows/.github/workflows/tox.yml@feature/python-versions
with:
python-version: "3.12"
python-versions: "['3.11', '3.12']"

codecov:
needs: tox
Expand Down
2 changes: 1 addition & 1 deletion hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependencies = ["pytest", "pytest-cov"]
[envs.default.scripts]
run = "pytest"
[[envs.default.matrix]]
python = ["3.12"]
python = ["3.11", "3.12"]

[envs.ruff]
dependencies = ["ruff"]
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ name = "python-package-template-pypi" # Name has to be unique on pypi.
version = "0.0.3"
description = "A github template with my python package configurations."
readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.11"
license = { file = "LICENSE" }
authors = [{ name = "Daniel Mizsak", email = "[email protected]" }]
keywords = []
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = []
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[tox]
envlist =
py311
py312
ruff
mypy
Expand All @@ -8,6 +9,7 @@ skip_missing_interpreters = true

[gh]
python =
3.11 = py311
3.12 = py312, ruff, mypy, docs

[testenv]
Expand Down

0 comments on commit 41b66fa

Please sign in to comment.