Skip to content

Commit

Permalink
Added test support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
heuer committed Oct 26, 2023
1 parent 80118fe commit f615b41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import shutil
import nox

_PY_VERSIONS = ('3.7', '3.8', '3.9', '3.10', '3.11', 'pypy3')
_PY_VERSIONS = ('3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3')
_PY_DEFAULT_VERSION = '3.11'

nox.options.sessions = ['test-{}'.format(_PY_DEFAULT_VERSION), 'test-pypy3']
Expand All @@ -27,6 +27,9 @@ def test(session):
"""\
Run test suite.
"""
import platform
if platform.python_version()[:4] == '3.12':
session.install('setuptools') #TODO: Remove this, see issue <https://github.com/heuer/segno/issues/129>
session.install('-Ur', 'tests/requirements.txt')
session.install('.')
session.run('py.test')
Expand Down

0 comments on commit f615b41

Please sign in to comment.