Support Python 3.11 and 3.12

This commit is contained in:
Tal Einat 2024-06-25 00:21:41 +03:00
parent 58b8dee318
commit 46790ff685
No known key found for this signature in database
GPG Key ID: 613A98AF4C800CDA
3 changed files with 10 additions and 8 deletions

View File

@ -3,11 +3,11 @@
History
-------
?.?.? (????-??-??)
0.8.0 (????-??-??)
++++++++++++++++++
* Dropped support for Python 2.7, 3.5, 3.6 and 3.7.
* Added support for Python 3.9 and 3.10.
* Added support for Python 3.9, 3.10, 3.11 and 3.12.
0.7.3 (2020-06-27)
++++++++++++++++++

View File

@ -129,6 +129,8 @@ def run_setup(with_binary=True):
'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',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',

12
tox.ini
View File

@ -1,5 +1,5 @@
[tox]
envlist = {py38,py39,py310,pypy39,pypy310}-{with,without}_coverage
envlist = {py38,py39,py310,py311,py312,pypy39,pypy310}-{with,without}_coverage
[testenv]
install_command =
@ -13,7 +13,7 @@ install_command =
deps =
; use specific versions of testing tools with which this is known to work
with_coverage: coverage>=5,<6
{py38,py39,py310,py311,pypy39,pypy310}: biopython
{py38,py39,py310,py311,py312,pypy39,pypy310}: biopython
allowlist_externals =
mv
commands =
@ -22,11 +22,11 @@ commands =
; * if running with coverage, merge the coverage run results from both runs
; * for Python 2.6 use the unit2 script since -m unittest2 doesn't work
; (but when running with coverage, coverage run -m unittest2 works)
{py38,py39,py310,pypy39,pypy310}-without_coverage: {envpython} -m unittest discover -v tests
{py38,py39,py310,pypy39,pypy310}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest discover tests
{py38,py39,py310,py311,py312,pypy39,pypy310}-without_coverage: {envpython} -m unittest discover -v tests
{py38,py39,py310,py311,py312,pypy39,pypy310}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest discover tests
with_coverage: mv .coverage .coverage.with_extensions
{envpython} -c 'import os; [os.remove(os.path.join(d, fn)) for (d, dns, fns) in os.walk(os.path.join(r"{envsitepackagesdir}", "fuzzysearch")) for fn in fns if fn.endswith((".so", ".pyd"))]'
{py38,py39,py310,pypy39,pypy310}-without_coverage: {envpython} -m unittest discover -v tests
{py38,py39,py310,pypy39,pypy310}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest discover tests
{py38,py39,py310,py311,py312,pypy39,pypy310}-without_coverage: {envpython} -m unittest discover -v tests
{py38,py39,py310,py311,py312,pypy39,pypy310}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest discover tests
with_coverage: mv .coverage .coverage.no_extensions
with_coverage: {envbindir}/coverage combine