Skip to content
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

Add support for python 3.12 (#710) #714

Merged
merged 2 commits into from
Oct 3, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
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]

steps:
Expand Down
15 changes: 8 additions & 7 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
-e .

black==22.12.0; implementation_name == 'cpython'
build==0.10.0
mypy==0.991; implementation_name =='cpython'
pytest==7.2.1
tox==4.3.5
tox-gh-actions==3.0.0
black==23.9.1; implementation_name == 'cpython'
build==1.0.3
mypy==1.5.1; implementation_name =='cpython'
pytest==7.4.2
setuptools==68.2.2
tox==4.11.3
tox-gh-actions==3.1.3
twine==4.0.2
wheel==0.38.4
wheel==0.41.2

# NOTE(willkg): Held back until we drop support for Python 3.7
Sphinx==5.3.0
1 change: 0 additions & 1 deletion tests/test_parse_shim.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ class ParseResult:
],
)
def test_urlparse(uri, expected):

if inspect.isclass(expected) and issubclass(expected, BaseException):
with pytest.raises(expected):
urlparse(uri)
Expand Down
1 change: 0 additions & 1 deletion tests_website/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@


class BleachCleanHandler(http.server.SimpleHTTPRequestHandler):

# Prevent 'cannot bind to address' errors on restart
allow_reuse_address = True

Expand Down
19 changes: 16 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

[tox]
envlist =
py{38,39,310,311,py3}
py{38,39,310,311,py3}-tinycss2
py{38,39,310,311}-build-no-lang
py{38,39,310,311,312,py3}
py{38,39,310,311,312,py3}-tinycss2
py{38,39,310,311,312}-build-no-lang
py39-docs
py39-format-check
py39-lint
Expand All @@ -16,6 +16,7 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
pypy-3.8: pypy3

[testenv]
Expand Down Expand Up @@ -48,6 +49,12 @@ extras = css
commands =
pytest {posargs:-v}

[testenv:py312-tinycss2]
deps = -rrequirements-dev.txt
extras = css
commands =
pytest {posargs:-v}

[testenv:pypy3-tinycss2]
deps = -rrequirements-dev.txt
extras = css
Expand Down Expand Up @@ -78,6 +85,12 @@ setenv =
commands =
python setup.py build

[testenv:py312-build-no-lang]
setenv =
LANG=
commands =
python setup.py build

[testenv:py39-lint]
changedir = {toxinidir}
deps = -rrequirements-flake8.txt
Expand Down
Loading