Skip to content

Add support for Python 3.9 and 3.10 and 3.11 #542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# To activate, change the Appveyor settings to use `.appveyor.yml`.
image: Visual Studio 2019
environment:
global:
PATH: "C:\\Python27\\Scripts\\;%PATH%"
@@ -13,6 +13,10 @@ environment:
- TOXENV: py37-optional
- TOXENV: py38-base
- TOXENV: py38-optional
- TOXENV: py39-base
- TOXENV: py39-optional
- TOXENV: py310-base
- TOXENV: py310-optional

install:
- git submodule update --init --recursive
9 changes: 6 additions & 3 deletions .github/workflows/python-tox.yml
Original file line number Diff line number Diff line change
@@ -6,15 +6,18 @@ jobs:
if: github.event.push || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: [2.7, 3.5, 3.6, 3.7, 3.8, pypy-2.7, pypy3]
python: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "pypy-2.7", "pypy-3.8"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: "requirements*.txt"
- run: pip install tox
- run: tox -e py
- if: ${{ always() }}
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -2,12 +2,13 @@ language: python
python:
- "pypy3"
- "pypy"
- "3.10"
- "3.9"
- "3.8"
- "3.7"
- "3.6"
- "3.5"
- "2.7"
- "3.9-dev"

cache: pip

2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ Released on July 14, 2016
tested, doesn't entirely work, and as far as I can tell is
completely unused by anyone.**

* Move testsuite to ``py.test``.
* Move testsuite to ``pytest``.

* **Fix #124: move to webencodings for decoding the input byte stream;
this makes html5lib compliant with the Encoding Standard, and
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -128,7 +128,7 @@ Tests
-----

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

Test data are contained in a separate `html5lib-tests
<https://github.com/html5lib/html5lib-tests>`_ repository and included
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -70,6 +70,9 @@ def default_environment():
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{27,35,36,37,38,py,py3}-{base,six19,optional}
envlist = py{27,35,36,37,38,39,310,311,py,py3}-{base,six19,optional}

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

[testenv:doc]