Skip to content

Commit

Permalink
Add Python 3.12 support (#286)
Browse files Browse the repository at this point in the history
Add py3.12 to classifiers, change to setuptools, add setuptools to requirements
  • Loading branch information
davidszotten committed Oct 11, 2023
1 parent 97ace27 commit 1223712
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.9"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
name: "${{ matrix.os }} Python: ${{ matrix.python-version }}"
Expand Down
4 changes: 2 additions & 2 deletions bin/runbench.py
Expand Up @@ -18,8 +18,8 @@


def build_lib_dirname():
from distutils.dist import Distribution
from distutils.command.build import build
from setuptools import Distribution
from setuptools.command import build
build_cmd = build(Distribution({"ext_modules": True}))
build_cmd.finalize_options()
return build_cmd.build_lib
Expand Down
1 change: 1 addition & 0 deletions requirements_test.txt
@@ -1 +1,2 @@
pytest
setuptools
3 changes: 2 additions & 1 deletion setup.py
@@ -1,6 +1,6 @@
import os
import sys
from distutils.core import setup, Extension
from setuptools import setup, Extension

## Command-line argument parsing

Expand Down Expand Up @@ -121,6 +121,7 @@ def append_env(L, e):
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3 :: Only',
],
)
3 changes: 2 additions & 1 deletion tox.ini
@@ -1,7 +1,8 @@
[tox]
envlist = py{37,38,39,310,311}
envlist = py{37,38,39,310,311,312}

[testenv]
allowlist_externals = {toxinidir}/bin/runtests.py
commands = {toxinidir}/bin/runtests.py
deps =
pytest

0 comments on commit 1223712

Please sign in to comment.