зеркало из https://github.com/mozilla/bleach.git
Add support for python 3.12 (#710)
This adds support for Python 3.12 mostly by adding it to test matrices. This updates dev requirements to pick up versions that fixed Python 3.12 issues.
This commit is contained in:
Родитель
39451b48a4
Коммит
460eca530b
|
@ -9,7 +9,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.8"]
|
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8"]
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
-e .
|
-e .
|
||||||
|
|
||||||
black==22.12.0; implementation_name == 'cpython'
|
black==23.9.1; implementation_name == 'cpython'
|
||||||
build==0.10.0
|
build==1.0.3
|
||||||
mypy==0.991; implementation_name =='cpython'
|
mypy==1.5.1; implementation_name =='cpython'
|
||||||
pytest==7.2.1
|
pytest==7.4.2
|
||||||
tox==4.3.5
|
setuptools==68.2.2
|
||||||
tox-gh-actions==3.0.0
|
tox==4.11.3
|
||||||
|
tox-gh-actions==3.1.3
|
||||||
twine==4.0.2
|
twine==4.0.2
|
||||||
wheel==0.38.4
|
wheel==0.41.2
|
||||||
|
|
||||||
# NOTE(willkg): Held back until we drop support for Python 3.7
|
# NOTE(willkg): Held back until we drop support for Python 3.7
|
||||||
Sphinx==5.3.0
|
Sphinx==5.3.0
|
||||||
|
|
19
tox.ini
19
tox.ini
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist =
|
envlist =
|
||||||
py{38,39,310,311,py3}
|
py{38,39,310,311,312,py3}
|
||||||
py{38,39,310,311,py3}-tinycss2
|
py{38,39,310,311,312,py3}-tinycss2
|
||||||
py{38,39,310,311}-build-no-lang
|
py{38,39,310,311,312}-build-no-lang
|
||||||
py39-docs
|
py39-docs
|
||||||
py39-format-check
|
py39-format-check
|
||||||
py39-lint
|
py39-lint
|
||||||
|
@ -16,6 +16,7 @@ python =
|
||||||
3.9: py39
|
3.9: py39
|
||||||
3.10: py310
|
3.10: py310
|
||||||
3.11: py311
|
3.11: py311
|
||||||
|
3.12: py312
|
||||||
pypy-3.8: pypy3
|
pypy-3.8: pypy3
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
@ -48,6 +49,12 @@ extras = css
|
||||||
commands =
|
commands =
|
||||||
pytest {posargs:-v}
|
pytest {posargs:-v}
|
||||||
|
|
||||||
|
[testenv:py312-tinycss2]
|
||||||
|
deps = -rrequirements-dev.txt
|
||||||
|
extras = css
|
||||||
|
commands =
|
||||||
|
pytest {posargs:-v}
|
||||||
|
|
||||||
[testenv:pypy3-tinycss2]
|
[testenv:pypy3-tinycss2]
|
||||||
deps = -rrequirements-dev.txt
|
deps = -rrequirements-dev.txt
|
||||||
extras = css
|
extras = css
|
||||||
|
@ -78,6 +85,12 @@ setenv =
|
||||||
commands =
|
commands =
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
|
[testenv:py312-build-no-lang]
|
||||||
|
setenv =
|
||||||
|
LANG=
|
||||||
|
commands =
|
||||||
|
python setup.py build
|
||||||
|
|
||||||
[testenv:py39-lint]
|
[testenv:py39-lint]
|
||||||
changedir = {toxinidir}
|
changedir = {toxinidir}
|
||||||
deps = -rrequirements-flake8.txt
|
deps = -rrequirements-flake8.txt
|
||||||
|
|
Загрузка…
Ссылка в новой задаче