Skip to content

Commit 10b7eb8

Browse files
authored
Add support for Python 3.9 and 3.10 and 3.11 (#542)
1 parent 3ecbda6 commit 10b7eb8

File tree

7 files changed

+20
-9
lines changed

7 files changed

+20
-9
lines changed

.appveyor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# To activate, change the Appveyor settings to use `.appveyor.yml`.
1+
image: Visual Studio 2019
22
environment:
33
global:
44
PATH: "C:\\Python27\\Scripts\\;%PATH%"
@@ -13,6 +13,10 @@ environment:
1313
- TOXENV: py37-optional
1414
- TOXENV: py38-base
1515
- TOXENV: py38-optional
16+
- TOXENV: py39-base
17+
- TOXENV: py39-optional
18+
- TOXENV: py310-base
19+
- TOXENV: py310-optional
1620

1721
install:
1822
- git submodule update --init --recursive

.github/workflows/python-tox.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ jobs:
66
if: github.event.push || github.event.pull_request.head.repo.full_name != github.repository
77
runs-on: ubuntu-latest
88
strategy:
9+
fail-fast: false
910
matrix:
10-
python: [2.7, 3.5, 3.6, 3.7, 3.8, pypy-2.7, pypy3]
11+
python: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "pypy-2.7", "pypy-3.8"]
1112
steps:
12-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1314
with:
1415
submodules: true
15-
- uses: actions/setup-python@v2
16+
- uses: actions/setup-python@v4
1617
with:
1718
python-version: ${{ matrix.python }}
19+
cache: pip
20+
cache-dependency-path: "requirements*.txt"
1821
- run: pip install tox
1922
- run: tox -e py
2023
- if: ${{ always() }}

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ language: python
22
python:
33
- "pypy3"
44
- "pypy"
5+
- "3.10"
6+
- "3.9"
57
- "3.8"
68
- "3.7"
79
- "3.6"
810
- "3.5"
911
- "2.7"
10-
- "3.9-dev"
1112

1213
cache: pip
1314

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Released on July 14, 2016
9595
tested, doesn't entirely work, and as far as I can tell is
9696
completely unused by anyone.**
9797

98-
* Move testsuite to ``py.test``.
98+
* Move testsuite to ``pytest``.
9999

100100
* **Fix #124: move to webencodings for decoding the input byte stream;
101101
this makes html5lib compliant with the Encoding Standard, and

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Tests
128128
-----
129129

130130
Unit tests require the ``pytest`` and ``mock`` libraries and can be
131-
run using the ``py.test`` command in the root directory.
131+
run using the ``pytest`` command in the root directory.
132132

133133
Test data are contained in a separate `html5lib-tests
134134
<https://github.com/html5lib/html5lib-tests>`_ repository and included

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ def default_environment():
7070
'Programming Language :: Python :: 3.6',
7171
'Programming Language :: Python :: 3.7',
7272
'Programming Language :: Python :: 3.8',
73+
'Programming Language :: Python :: 3.9',
74+
'Programming Language :: Python :: 3.10',
75+
'Programming Language :: Python :: 3.11',
7376
'Programming Language :: Python :: Implementation :: CPython',
7477
'Programming Language :: Python :: Implementation :: PyPy',
7578
'Topic :: Software Development :: Libraries :: Python Modules',

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{27,35,36,37,38,py,py3}-{base,six19,optional}
2+
envlist = py{27,35,36,37,38,39,310,311,py,py3}-{base,six19,optional}
33

44
[testenv]
55
deps =
@@ -12,7 +12,7 @@ passenv =
1212
COVERAGE_RUN_OPTIONS
1313
commands =
1414
six19: pip install six==1.9
15-
{env:PYTEST_COMMAND:{envbindir}/py.test} {posargs}
15+
{env:PYTEST_COMMAND:{envbindir}/pytest} {posargs}
1616
flake8 {toxinidir}
1717

1818
[testenv:doc]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy