Skip to content
Myr

test on python 3.13

Before adoption: this commit came in with the history the project adopted, so no landing records it.

update dev dependencies refactor update tox envs 3.7 requires an old version of trio xfail zip loader template test

authored by David Lord · committed by David Lord · parent 1655128 · 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

13 files+236 added−106 removed

modified:.github/workflows/tests.yaml+1 added
modified: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#8build==0.10.09 # via -r requirements/build.in10packaging==23.17build==1.2.18 # via -r build.in9packaging==24.010 # via build12pyproject-hooks==1.0.011pyproject-hooks==1.1.012 # via build14tomli==2.0.115 # via build
modified: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.txt11build==0.10.07alabaster==0.7.168 # via sphinx9attrs==23.2.010 # via11 # outcome12 # trio13babel==2.15.014 # via sphinx15build==1.2.116 # via pip-tools13cachetools==5.3.117cachetools==5.3.318 # via tox19certifi==2024.2.220 # via requests15cfgv==3.3.121cfgv==3.4.022 # via pre-commit17chardet==5.1.023chardet==5.2.024 # via tox25charset-normalizer==3.3.226 # via requests19click==8.1.327click==8.1.728 # via29 # pip-compile-multi30 # pip-tools31colorama==0.4.632 # via tox25distlib==0.3.633distlib==0.3.834 # via virtualenv35docutils==0.21.236 # via sphinx27filelock==3.12.237filelock==3.14.038 # via39 # tox40 # virtualenv31identify==2.5.2441identify==2.5.3642 # via pre-commit43idna==3.744 # via45 # requests46 # trio47imagesize==1.4.148 # via sphinx49iniconfig==2.0.050 # via pytest51jinja2==3.1.452 # via sphinx53markupsafe==2.1.554 # via jinja255mypy==1.10.056 # via -r typing.in57mypy-extensions==1.0.058 # via mypy59nodeenv==1.8.060 # via pre-commit61outcome==1.3.0.post062 # via trio63packaging==24.064 # via65 # build66 # pallets-sphinx-themes67 # pyproject-api68 # pytest69 # sphinx70 # tox71pallets-sphinx-themes==2.1.372 # via -r docs.in73pip-compile-multi==2.6.336 # via -r requirements/dev.in37pip-tools==6.13.074 # via -r dev.in75pip-tools==7.4.176 # via pip-compile-multi39platformdirs==3.8.077platformdirs==4.2.178 # via79 # tox80 # virtualenv43pre-commit==3.3.344 # via -r requirements/dev.in45pyproject-api==1.5.281pluggy==1.5.082 # via83 # pytest84 # tox85pre-commit==3.7.186 # via -r dev.in87pygments==2.18.088 # via sphinx89pyproject-api==1.6.190 # via tox47pyproject-hooks==1.0.048 # via build91pyproject-hooks==1.1.092 # via93 # build94 # pip-tools95pytest==8.2.096 # via -r tests.in97pyyaml==6.0.198 # via pre-commit99requests==2.31.0100 # via sphinx101sniffio==1.3.1102 # via trio103snowballstemmer==2.2.0104 # via sphinx105sortedcontainers==2.4.0106 # via trio107sphinx==7.3.7108 # via109 # -r docs.in110 # pallets-sphinx-themes111 # sphinx-issues112 # sphinxcontrib-log-cabinet113sphinx-issues==4.1.0114 # via -r docs.in115sphinxcontrib-applehelp==1.0.8116 # via sphinx117sphinxcontrib-devhelp==1.0.6118 # via sphinx119sphinxcontrib-htmlhelp==2.0.5120 # via sphinx121sphinxcontrib-jsmath==1.0.1122 # via sphinx123sphinxcontrib-log-cabinet==1.0.1124 # via -r docs.in125sphinxcontrib-qthelp==1.0.7126 # via sphinx127sphinxcontrib-serializinghtml==1.1.10128 # via sphinx129toposort==1.10130 # via pip-compile-multi53tox==4.6.354 # via -r requirements/dev.in55virtualenv==20.23.1131tox==4.15.0132 # via -r dev.in133trio==0.25.0134 # via -r tests.in135typing-extensions==4.11.0136 # via mypy137urllib3==2.2.1138 # via requests139virtualenv==20.26.1140 # via141 # pre-commit142 # tox59wheel==0.40.0143wheel==0.43.0144 # via pip-tools145146# The following packages are considered to be unsafe in a requirements file:147# pip
1 unmodified line
modified: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#8alabaster==0.7.137alabaster==0.7.168 # via sphinx10babel==2.12.19babel==2.15.010 # via sphinx12certifi==2023.5.711certifi==2024.2.212 # via requests14charset-normalizer==3.1.013charset-normalizer==3.3.214 # via requests16docutils==0.20.115docutils==0.21.216 # via sphinx18idna==3.617idna==3.718 # via requests19imagesize==1.4.120 # via sphinx22jinja2==3.1.221jinja2==3.1.422 # via sphinx24markupsafe==2.1.323markupsafe==2.1.524 # via jinja226packaging==23.125packaging==24.026 # via27 # pallets-sphinx-themes28 # sphinx30pallets-sphinx-themes==2.1.131 # via -r requirements/docs.in32pygments==2.15.129pallets-sphinx-themes==2.1.330 # via -r docs.in31pygments==2.18.032 # via sphinx33requests==2.31.034 # via sphinx35snowballstemmer==2.2.036 # via sphinx38sphinx==7.0.137sphinx==7.3.738 # via40 # -r requirements/docs.in39 # -r docs.in40 # pallets-sphinx-themes41 # sphinx-issues42 # sphinxcontrib-log-cabinet44sphinx-issues==3.0.145 # via -r requirements/docs.in46sphinxcontrib-applehelp==1.0.443sphinx-issues==4.1.044 # via -r docs.in45sphinxcontrib-applehelp==1.0.846 # via sphinx48sphinxcontrib-devhelp==1.0.247sphinxcontrib-devhelp==1.0.648 # via sphinx50sphinxcontrib-htmlhelp==2.0.149sphinxcontrib-htmlhelp==2.0.550 # via sphinx51sphinxcontrib-jsmath==1.0.152 # via sphinx53sphinxcontrib-log-cabinet==1.0.155 # via -r requirements/docs.in56sphinxcontrib-qthelp==1.0.354 # via -r docs.in55sphinxcontrib-qthelp==1.0.756 # via sphinx58sphinxcontrib-serializinghtml==1.1.557sphinxcontrib-serializinghtml==1.1.1058 # via sphinx60urllib3==2.0.359urllib3==2.2.160 # via requests
modified:requirements/tests.in+1 added-1 removed
1pytest2trio<=0.22.2 # for Python3.7 support2trio
modified: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#7attrs==23.2.08 # via9 # outcome10 # trio12exceptiongroup==1.1.113 # via14 # pytest15 # trio16idna==3.611idna==3.712 # via trio13iniconfig==2.0.014 # via pytest15outcome==1.3.0.post016 # via trio22packaging==23.117packaging==24.018 # via pytest24pluggy==1.2.019pluggy==1.5.020 # via pytest26pytest==7.4.027 # via -r requirements/tests.in21pytest==8.2.022 # via -r tests.in23sniffio==1.3.124 # via trio25sortedcontainers==2.4.026 # via trio32tomli==2.0.133 # via pytest34trio==0.22.235 # via -r requirements/tests.in27trio==0.25.028 # via -r tests.in
added:requirements/tests37.in+2 added
1pytest2trio==0.22.2
added: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#7attrs==23.2.08 # via9 # outcome10 # trio11exceptiongroup==1.2.112 # via13 # pytest14 # trio15idna==3.716 # via trio17importlib-metadata==6.7.018 # via19 # attrs20 # pluggy21 # pytest22iniconfig==2.0.023 # via pytest24outcome==1.3.0.post025 # via trio26packaging==24.027 # via pytest28pluggy==1.2.029 # via pytest30pytest==7.4.431 # via -r tests37.in32sniffio==1.3.133 # via trio34sortedcontainers==2.4.035 # via trio36tomli==2.0.137 # via pytest38trio==0.22.239 # via -r tests37.in40typing-extensions==4.7.141 # via importlib-metadata42zipp==3.15.043 # via importlib-metadata
modified: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#8mypy==1.4.19 # via -r requirements/typing.in7mypy==1.10.08 # via -r typing.in9mypy-extensions==1.0.010 # via mypy12tomli==2.0.111typing-extensions==4.11.012 # via mypy14typing-extensions==4.6.315 # via mypy
modified:src/jinja2/compiler.py+1 added-1 removed
53 unmodified lines
54 return self.visit(new_node, frame)5556 return f(self, node, frame, **kwargs)5758 return update_wrapper(t.cast(F, new_func), f)58 return update_wrapper(new_func, f) # type: ignore[return-value]596061def _make_binop(op: str) -> t.Callable[["CodeGenerator", nodes.BinExpr, "Frame"], None]:62 @optimizeconst
1914 unmodified lines
modified:tests/test_loader.py+2 added-3 removed
1import importlib.abc2import importlib.machinery3import importlib.util4import os5import platform5import shutil6import sys7import tempfile8import time
353 unmodified lines
362 assert up_to_date is None363364365@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)370def test_package_zip_list(package_zip_loader):371 assert package_zip_loader.list_templates() == ["foo/test.html", "test.html"]
42 unmodified lines
modified:.pre-commit-config.yaml+1 added-1 removed
1ci:2 autoupdate_schedule: monthly3repos: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-hooks
7 unmodified lines
modified:tox.ini+25 added-10 removed
1[tox]2envlist =3 py3{12,11,10,9,8,7}3 py3{13,12,11,10,9,8,7}4 pypy3105 style6 typing7 docs
6 unmodified lines
14use_frozen_constraints = true15deps = -r requirements/tests.txt16commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs}1718[testenv:py37,py3.7]19deps = -r requirements/tests37.txt2021[testenv:style]22deps = pre-commit23skip_install = true24commands = pre-commit run --all-files
5 unmodified lines
30[testenv:docs]31deps = -r requirements/docs.txt32commands = sphinx-build -E -W -b dirhtml docs docs/_build/dirhtml3334[testenv:update-pre_commit]35labels = update36deps = pre-commit37skip_install = true38commands = pre-commit autoupdate -j43940[testenv:update-requirements]32deps =33 pip-tools34 pre-commit41labels = update42deps = pip-tools43skip_install = true44change_dir = requirements45commands =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}5152[testenv:update-requirements37]53base_python = 3.754labels = update55deps = pip-tools56skip_install = true57change_dir = requirements58commands = pip-compile tests37.in -q {posargs:-U}