Skip to content
Merged
Show file tree
Hide file tree
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%"
Expand All @@ -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
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/python-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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() }}
Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
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 =
Expand All @@ -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]
Expand Down