From f13ad8020767202df101c2f193db77136c281558 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Thu, 7 Oct 2021 02:34:44 +0900 Subject: [PATCH] Support Python 3.10 --- .github/workflows/main.yml | 9 ++++++--- CHANGES | 2 ++ setup.py | 1 + tox.ini | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 62a3d1139..20479e9fd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - name: [py36, py37, py38, py39] + name: [py36, py37, py38, py39, py310] include: - name: py36 python: 3.6 @@ -23,8 +23,11 @@ jobs: python: 3.9 docutils: du17 coverage: "--cov ./ --cov-append --cov-config setup.cfg" - - name: py310-dev - python: 3.10-dev + - name: py310 + python: "3.10" + docutils: du17 + - name: py311-dev + python: 3.11-dev docutils: du17 env: PYTEST_ADDOPTS: ${{ matrix.coverage }} diff --git a/CHANGES b/CHANGES index ddaee44ac..d2d8b0985 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,8 @@ Release 4.3.0 (in development) Dependencies ------------ +* Support Python 3.10 + Incompatible changes -------------------- diff --git a/setup.py b/setup.py index 2b4504101..3dbc8746b 100644 --- a/setup.py +++ b/setup.py @@ -207,6 +207,7 @@ setup( 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Framework :: Setuptools Plugin', diff --git a/tox.ini b/tox.ini index b6a67fd85..fe9d5f183 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.4.0 -envlist = docs,flake8,mypy,twine,coverage,py{36,37,38,39},du{14,15,16,17} +envlist = docs,flake8,mypy,twine,coverage,py{36,37,38,39,310},du{14,15,16,17} [testenv] usedevelop = True @@ -15,7 +15,7 @@ passenv = EPUBCHECK_PATH TERM description = - py{36,37,38,39}: Run unit tests against {envname}. + py{36,37,38,39,310}: Run unit tests against {envname}. du{12,13,14}: Run unit tests with the given version of docutils. deps = du14: docutils==0.14.*