test with python 3.13 (#1977)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by GitHub · parents 1655128, 004476c · Browse files · 13 files·+236 added−106 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
13 files+236 added−106 removed
- tests:+2 added−3 removed
- other:+234 added−103 removed
Provenance
- Commit
e82013c- Tree
2158554- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
1655128- Parent 2
004476c
13 files changed+236 added−106 removed
modified:.github/workflows/tests.yaml+1 added
19 unmodified lines20212223242526272831 unmodified lines19 unmodified lines strategy: fail-fast: false matrix: include: - {python: '3.13'} - {python: '3.12'} - {name: Windows, python: '3.12', os: windows-latest} - {name: Mac, python: '3.12', os: macos-latest} - {python: '3.11'}31 unmodified linesmodified:requirements/build.txt+7 added-10 removed
1-# SHA1:80754af91bfb6d1073585b046fe0a474ce8685091 #3-# This file is autogenerated by pip-compile-multi4-# To update, run:2+# This file is autogenerated by pip-compile with Python 3.123+# by the following command:4 #6-# pip-compile-multi5+# pip-compile build.in6 #8-build==0.10.09- # via -r requirements/build.in10-packaging==23.17+build==1.2.18+ # via -r build.in9+packaging==24.010 # via build12-pyproject-hooks==1.0.011+pyproject-hooks==1.1.012 # via build14-tomli==2.0.115- # via buildmodified:requirements/dev.txt+111 added-27 removed
1-# SHA1:54b5b77ec8c7a0064ffa93b2fd16cb0130ba177c1 #3-# This file is autogenerated by pip-compile-multi4-# To update, run:2+# This file is autogenerated by pip-compile with Python 3.123+# by the following command:4 #6-# pip-compile-multi5+# pip-compile dev.in6 #8--r docs.txt9--r tests.txt10--r typing.txt11-build==0.10.07+alabaster==0.7.168+ # via sphinx9+attrs==23.2.010+ # via11+ # outcome12+ # trio13+babel==2.15.014+ # via sphinx15+build==1.2.116 # via pip-tools13-cachetools==5.3.117+cachetools==5.3.318 # via tox19+certifi==2024.2.220+ # via requests15-cfgv==3.3.121+cfgv==3.4.022 # via pre-commit17-chardet==5.1.023+chardet==5.2.024 # via tox25+charset-normalizer==3.3.226+ # via requests19-click==8.1.327+click==8.1.728 # via29 # pip-compile-multi30 # pip-tools31 colorama==0.4.632 # via tox25-distlib==0.3.633+distlib==0.3.834 # via virtualenv35+docutils==0.21.236+ # via sphinx27-filelock==3.12.237+filelock==3.14.038 # via39 # tox40 # virtualenv31-identify==2.5.2441+identify==2.5.3642 # via pre-commit43+idna==3.744+ # via45+ # requests46+ # trio47+imagesize==1.4.148+ # via sphinx49+iniconfig==2.0.050+ # via pytest51+jinja2==3.1.452+ # via sphinx53+markupsafe==2.1.554+ # via jinja255+mypy==1.10.056+ # via -r typing.in57+mypy-extensions==1.0.058+ # via mypy59 nodeenv==1.8.060 # via pre-commit61+outcome==1.3.0.post062+ # via trio63+packaging==24.064+ # via65+ # build66+ # pallets-sphinx-themes67+ # pyproject-api68+ # pytest69+ # sphinx70+ # tox71+pallets-sphinx-themes==2.1.372+ # via -r docs.in73 pip-compile-multi==2.6.336- # via -r requirements/dev.in37-pip-tools==6.13.074+ # via -r dev.in75+pip-tools==7.4.176 # via pip-compile-multi39-platformdirs==3.8.077+platformdirs==4.2.178 # via79 # tox80 # virtualenv43-pre-commit==3.3.344- # via -r requirements/dev.in45-pyproject-api==1.5.281+pluggy==1.5.082+ # via83+ # pytest84+ # tox85+pre-commit==3.7.186+ # via -r dev.in87+pygments==2.18.088+ # via sphinx89+pyproject-api==1.6.190 # via tox47-pyproject-hooks==1.0.048- # via build91+pyproject-hooks==1.1.092+ # via93+ # build94+ # pip-tools95+pytest==8.2.096+ # via -r tests.in97 pyyaml==6.0.198 # via pre-commit99+requests==2.31.0100+ # via sphinx101+sniffio==1.3.1102+ # via trio103+snowballstemmer==2.2.0104+ # via sphinx105+sortedcontainers==2.4.0106+ # via trio107+sphinx==7.3.7108+ # via109+ # -r docs.in110+ # pallets-sphinx-themes111+ # sphinx-issues112+ # sphinxcontrib-log-cabinet113+sphinx-issues==4.1.0114+ # via -r docs.in115+sphinxcontrib-applehelp==1.0.8116+ # via sphinx117+sphinxcontrib-devhelp==1.0.6118+ # via sphinx119+sphinxcontrib-htmlhelp==2.0.5120+ # via sphinx121+sphinxcontrib-jsmath==1.0.1122+ # via sphinx123+sphinxcontrib-log-cabinet==1.0.1124+ # via -r docs.in125+sphinxcontrib-qthelp==1.0.7126+ # via sphinx127+sphinxcontrib-serializinghtml==1.1.10128+ # via sphinx129 toposort==1.10130 # via pip-compile-multi53-tox==4.6.354- # via -r requirements/dev.in55-virtualenv==20.23.1131+tox==4.15.0132+ # via -r dev.in133+trio==0.25.0134+ # via -r tests.in135+typing-extensions==4.11.0136+ # via mypy137+urllib3==2.2.1138+ # via requests139+virtualenv==20.26.1140 # via141 # pre-commit142 # tox59-wheel==0.40.0143+wheel==0.43.0144 # via pip-tools145 146 # The following packages are considered to be unsafe in a requirements file:147 # pip1 unmodified linemodified:requirements/docs.txt+26 added-27 removed
1-# SHA1:45c590f97fe95b8bdc755eef796e91adf5fbe4ea1 #3-# This file is autogenerated by pip-compile-multi4-# To update, run:2+# This file is autogenerated by pip-compile with Python 3.123+# by the following command:4 #6-# pip-compile-multi5+# pip-compile docs.in6 #8-alabaster==0.7.137+alabaster==0.7.168 # via sphinx10-babel==2.12.19+babel==2.15.010 # via sphinx12-certifi==2023.5.711+certifi==2024.2.212 # via requests14-charset-normalizer==3.1.013+charset-normalizer==3.3.214 # via requests16-docutils==0.20.115+docutils==0.21.216 # via sphinx18-idna==3.617+idna==3.718 # via requests19 imagesize==1.4.120 # via sphinx22-jinja2==3.1.221+jinja2==3.1.422 # via sphinx24-markupsafe==2.1.323+markupsafe==2.1.524 # via jinja226-packaging==23.125+packaging==24.026 # via27 # pallets-sphinx-themes28 # sphinx30-pallets-sphinx-themes==2.1.131- # via -r requirements/docs.in32-pygments==2.15.129+pallets-sphinx-themes==2.1.330+ # via -r docs.in31+pygments==2.18.032 # via sphinx33 requests==2.31.034 # via sphinx35 snowballstemmer==2.2.036 # via sphinx38-sphinx==7.0.137+sphinx==7.3.738 # via40- # -r requirements/docs.in39+ # -r docs.in40 # pallets-sphinx-themes41 # sphinx-issues42 # sphinxcontrib-log-cabinet44-sphinx-issues==3.0.145- # via -r requirements/docs.in46-sphinxcontrib-applehelp==1.0.443+sphinx-issues==4.1.044+ # via -r docs.in45+sphinxcontrib-applehelp==1.0.846 # via sphinx48-sphinxcontrib-devhelp==1.0.247+sphinxcontrib-devhelp==1.0.648 # via sphinx50-sphinxcontrib-htmlhelp==2.0.149+sphinxcontrib-htmlhelp==2.0.550 # via sphinx51 sphinxcontrib-jsmath==1.0.152 # via sphinx53 sphinxcontrib-log-cabinet==1.0.155- # via -r requirements/docs.in56-sphinxcontrib-qthelp==1.0.354+ # via -r docs.in55+sphinxcontrib-qthelp==1.0.756 # via sphinx58-sphinxcontrib-serializinghtml==1.1.557+sphinxcontrib-serializinghtml==1.1.1058 # via sphinx60-urllib3==2.0.359+urllib3==2.2.160 # via requestsmodified:requirements/tests.in+1 added-1 removed
1 pytest2-trio<=0.22.2 # for Python3.7 support2+triomodified:requirements/tests.txt+10 added-17 removed
1-# SHA1:b8d151f902b43c4435188a9d3494fb8d4af071681 #3-# This file is autogenerated by pip-compile-multi4-# To update, run:2+# This file is autogenerated by pip-compile with Python 3.123+# by the following command:4 #6-# pip-compile-multi5+# pip-compile tests.in6 #7 attrs==23.2.08 # via9 # outcome10 # trio12-exceptiongroup==1.1.113- # via14- # pytest15- # trio16-idna==3.611+idna==3.712 # via trio13 iniconfig==2.0.014 # via pytest15 outcome==1.3.0.post016 # via trio22-packaging==23.117+packaging==24.018 # via pytest24-pluggy==1.2.019+pluggy==1.5.020 # via pytest26-pytest==7.4.027- # via -r requirements/tests.in21+pytest==8.2.022+ # via -r tests.in23 sniffio==1.3.124 # via trio25 sortedcontainers==2.4.026 # via trio32-tomli==2.0.133- # via pytest34-trio==0.22.235- # via -r requirements/tests.in27+trio==0.25.028+ # via -r tests.inadded:requirements/tests37.in+2 added
1+pytest2+trio==0.22.2added:requirements/tests37.txt+43 added
1+#2+# This file is autogenerated by pip-compile with Python 3.73+# by the following command:4+#5+# pip-compile tests37.in6+#7+attrs==23.2.08+ # via9+ # outcome10+ # trio11+exceptiongroup==1.2.112+ # via13+ # pytest14+ # trio15+idna==3.716+ # via trio17+importlib-metadata==6.7.018+ # via19+ # attrs20+ # pluggy21+ # pytest22+iniconfig==2.0.023+ # via pytest24+outcome==1.3.0.post025+ # via trio26+packaging==24.027+ # via pytest28+pluggy==1.2.029+ # via pytest30+pytest==7.4.431+ # via -r tests37.in32+sniffio==1.3.133+ # via trio34+sortedcontainers==2.4.035+ # via trio36+tomli==2.0.137+ # via pytest38+trio==0.22.239+ # via -r tests37.in40+typing-extensions==4.7.141+ # via importlib-metadata42+zipp==3.15.043+ # via importlib-metadatamodified:requirements/typing.txt+6 added-9 removed
1-# SHA1:7983aaa01d64547827c20395d77e248c41b2572f1 #3-# This file is autogenerated by pip-compile-multi4-# To update, run:2+# This file is autogenerated by pip-compile with Python 3.123+# by the following command:4 #6-# pip-compile-multi5+# pip-compile typing.in6 #8-mypy==1.4.19- # via -r requirements/typing.in7+mypy==1.10.08+ # via -r typing.in9 mypy-extensions==1.0.010 # via mypy12-tomli==2.0.111+typing-extensions==4.11.012 # via mypy14-typing-extensions==4.6.315- # via mypymodified:src/jinja2/compiler.py+1 added-1 removed
53 unmodified lines54 return self.visit(new_node, frame)55 56 return f(self, node, frame, **kwargs)57 58- return update_wrapper(t.cast(F, new_func), f)58+ return update_wrapper(new_func, f) # type: ignore[return-value]59 60 61 def _make_binop(op: str) -> t.Callable[["CodeGenerator", nodes.BinExpr, "Frame"], None]:62 @optimizeconst1914 unmodified linesmodified:tests/test_loader.py+2 added-3 removed
1 import importlib.abc2 import importlib.machinery3 import importlib.util4 import os5-import platform5 import shutil6 import sys7 import tempfile8 import time353 unmodified lines362 assert up_to_date is None363 364 365 @pytest.mark.xfail(367- platform.python_implementation() == "PyPy",368- reason="PyPy's zipimporter doesn't have a '_files' attribute.",366+ sys.implementation.name == "pypy" or sys.version_info > (3, 13),367+ reason="zipimporter doesn't have a '_files' attribute",368 raises=TypeError,369 )370 def test_package_zip_list(package_zip_loader):371 assert package_zip_loader.list_templates() == ["foo/test.html", "test.html"]42 unmodified linesmodified:.pre-commit-config.yaml+1 added-1 removed
1 ci:2 autoupdate_schedule: monthly3 repos:4 - repo: https://github.com/astral-sh/ruff-pre-commit5- rev: v0.4.15+ rev: v0.4.46 hooks:7 - id: ruff8 - id: ruff-format9 - repo: https://github.com/pre-commit/pre-commit-hooks7 unmodified linesmodified:tox.ini+25 added-10 removed
1 [tox]2 envlist =3- py3{12,11,10,9,8,7}3+ py3{13,12,11,10,9,8,7}4 pypy3105 style6 typing7 docs6 unmodified lines14 use_frozen_constraints = true15 deps = -r requirements/tests.txt16 commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs}17 18+[testenv:py37,py3.7]19+deps = -r requirements/tests37.txt20+21 [testenv:style]22 deps = pre-commit23 skip_install = true24 commands = pre-commit run --all-files5 unmodified lines30 [testenv:docs]31 deps = -r requirements/docs.txt32 commands = sphinx-build -E -W -b dirhtml docs docs/_build/dirhtml33 34+[testenv:update-pre_commit]35+labels = update36+deps = pre-commit37+skip_install = true38+commands = pre-commit autoupdate -j439+40 [testenv:update-requirements]32-deps =33- pip-tools34- pre-commit41+labels = update42+deps = pip-tools43 skip_install = true44 change_dir = requirements45 commands =38- pre-commit autoupdate -j439- pip-compile -U build.in40- pip-compile -U docs.in41- pip-compile -U tests.in42- pip-compile -U typing.in43- pip-compile -U dev.in46+ pip-compile build.in -q {posargs:-U}47+ pip-compile docs.in -q {posargs:-U}48+ pip-compile tests.in -q {posargs:-U}49+ pip-compile typing.in -q {posargs:-U}50+ pip-compile dev.in -q {posargs:-U}51+52+[testenv:update-requirements37]53+base_python = 3.754+labels = update55+deps = pip-tools56+skip_install = true57+change_dir = requirements58+commands = pip-compile tests37.in -q {posargs:-U}