@@ -18,6 +18,7 @@ classifiers = [
1818 " Programming Language :: Python :: 3.9" ,
1919 " Programming Language :: Python :: 3.10" ,
2020 " Programming Language :: Python :: 3.11" ,
21+ " Programming Language :: Python :: 3.12" ,
2122]
2223authors = [{name = " Daniel Holth" , email = " dholth@fastmail.fm" }]
2324maintainers = [{name = " Alex Grönholm" , email = " alex.gronholm@nextday.fi" }]
@@ -39,7 +40,7 @@ bdist_wheel = "wheel.bdist_wheel:bdist_wheel"
3940[project .optional-dependencies ]
4041test = [
4142 " pytest >= 6.0.0" ,
42- " setuptools >= 65"
43+ " setuptools >= 65" ,
4344]
4445
4546[tool .flit .sdist ]
@@ -97,25 +98,27 @@ select = [
9798 " I" , # isort
9899 " PGH" , # pygrep-hooks
99100 " UP" , # pyupgrade
100- " B0 " , # flake8-bugbear
101+ " B " , # flake8-bugbear
101102]
102103src = [" src" ]
103104
105+ # Tox (https://tox.wiki/) is a tool for running tests in multiple virtualenvs.
106+ # This configuration file will run the test suite on all supported python
107+ # versions. To use it, "pipx install tox" and then run "tox" from this
108+ # directory.
109+
104110[tool .tox ]
105111legacy_tox_ini = '''
106- # Tox (https://tox.wiki/) is a tool for running tests
107- # in multiple virtualenvs. This configuration file will run the
108- # test suite on all supported python versions. To use it, "pip install tox"
109- # and then run "tox" from this directory.
110-
111112[tox]
112- envlist = py37, py38, py39, py310, py311, pypy3, lint, pkg
113+ envlist = py37, py38, py39, py310, py311, py312, pypy3, lint, pkg
113114minversion = 4.0.0
114115skip_missing_interpreters = true
115116
116117[testenv]
118+ package = wheel
119+ wheel_build_env = .pkg
117120depends = lint
118- commands = {envpython } -b -m pytest {posargs}
121+ commands = {env_python } -b -m pytest {posargs}
119122extras = test
120123set_env =
121124 PYTHONWARNDEFAULTENCODING = 1
0 commit comments