Skip to content
Myr

update dependencies

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

authored by David Lord · committed by David Lord · parent 5b13cea · Browse files · 10 files+46 added−42 removed
This commit

State

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

Diff stats

10 files+46 added−42 removed

  • tests:+4 added−2 removed
  • other:+42 added−40 removed

10 files+46 added−42 removed

modified:requirements/dev.txt+21 added-15 removed
6 unmodified lines
7#8-r docs.txt9-r tests.txt10-r typing.txt11build==0.8.011build==0.9.012 # via pip-tools13cachetools==5.2.014 # via tox15cfgv==3.3.116 # via pre-commit17chardet==5.1.018 # via tox19click==8.1.320 # via21 # pip-compile-multi22 # pip-tools23colorama==0.4.624 # via tox25distlib==0.3.626 # via virtualenv21filelock==3.8.027filelock==3.9.028 # via29 # tox30 # virtualenv25identify==2.5.631identify==2.5.1132 # via pre-commit33nodeenv==1.7.034 # via pre-commit35pep517==0.13.036 # via build31pip-compile-multi==2.4.637pip-compile-multi==2.6.138 # via -r requirements/dev.in33pip-tools==6.9.039pip-tools==6.12.140 # via pip-compile-multi35platformdirs==2.5.236 # via virtualenv37pre-commit==2.20.041platformdirs==2.6.242 # via43 # tox44 # virtualenv45pre-commit==2.21.046 # via -r requirements/dev.in47pyproject-api==1.2.148 # via tox49pyyaml==6.050 # via pre-commit41six==1.16.042 # via tox43toml==0.10.244 # via pre-commit51toposort==1.752 # via pip-compile-multi47tox==3.26.053tox==4.1.054 # via -r requirements/dev.in49virtualenv==20.16.555virtualenv==20.17.156 # via57 # pre-commit58 # tox53wheel==0.37.159wheel==0.38.460 # via pip-tools6162# The following packages are considered to be unsafe in a requirements file:63# pip
1 unmodified line
modified:requirements/docs.txt+7 added-9 removed
5 unmodified lines
6# pip-compile-multi7#8alabaster==0.7.129 # via sphinx10babel==2.10.310babel==2.11.011 # via sphinx12certifi==2022.9.2412certifi==2022.12.713 # via requests14charset-normalizer==2.1.115 # via requests16docutils==0.19
5 unmodified lines
22jinja2==3.1.223 # via sphinx24markupsafe==2.1.125 # via jinja226packaging==21.326packaging==22.027 # via28 # pallets-sphinx-themes29 # sphinx30pallets-sphinx-themes==2.0.230pallets-sphinx-themes==2.0.331 # via -r requirements/docs.in32pygments==2.13.033 # via sphinx34pyparsing==3.0.935 # via packaging36pytz==2022.434pytz==2022.735 # via babel36requests==2.28.137 # via sphinx38snowballstemmer==2.2.039 # via sphinx42sphinx==5.2.340sphinx==6.0.041 # via42 # -r requirements/docs.in43 # pallets-sphinx-themes44 # sphinx-issues
13 unmodified lines
58sphinxcontrib-qthelp==1.0.359 # via sphinx60sphinxcontrib-serializinghtml==1.1.561 # via sphinx64urllib3==1.26.1262urllib3==1.26.1363 # via requests
modified:requirements/tests.txt+5 added-7 removed
3 unmodified lines
4# To update, run:5#6# pip-compile-multi7#8attrs==22.1.08attrs==22.2.09 # via pytest10exceptiongroup==1.1.011 # via pytest12iniconfig==1.1.113 # via pytest12packaging==21.314packaging==22.015 # via pytest16pluggy==1.0.017 # via pytest16py==1.11.017 # via pytest18pyparsing==3.0.919 # via packaging20pytest==7.1.318pytest==7.2.019 # via -r requirements/tests.in20tomli==2.0.121 # via pytest
modified:requirements/typing.txt+1 added-1 removed
3 unmodified lines
4# To update, run:5#6# pip-compile-multi7#8mypy==0.9828mypy==0.9919 # via -r requirements/typing.in10mypy-extensions==0.4.311 # via mypy12tomli==2.0.1
3 unmodified lines
modified:src/jinja2/async_utils.py+1 added-1 removed
72 unmodified lines
73 if hasattr(iterable, "__aiter__"):74 async for item in t.cast("t.AsyncIterable[V]", iterable):75 yield item76 else:77 for item in t.cast("t.Iterable[V]", iterable):77 for item in iterable:78 yield item798081async def auto_to_list(
3 unmodified lines
modified:src/jinja2/ext.py+2 added-2 removed
289 unmodified lines
290 translations = gettext.NullTranslations()291292 if hasattr(translations, "pgettext"):293 # Python < 3.8294 pgettext = translations.pgettext # type: ignore294 pgettext = translations.pgettext295 else:296297 def pgettext(c: str, s: str) -> str:298 return s299300 if hasattr(translations, "npgettext"):301 npgettext = translations.npgettext # type: ignore301 npgettext = translations.npgettext302 else:303304 def npgettext(c: str, s: str, p: str, n: int) -> str:305 return s if n == 1 else p
554 unmodified lines
modified:src/jinja2/loaders.py+1 added-1 removed
390 unmodified lines
391 + os.path.sep392 )393 offset = len(prefix)394395 for name in self._loader._files.keys(): # type: ignore395 for name in self._loader._files.keys():396 # Find names under the templates directory that aren't directories.397 if name.startswith(prefix) and name[-1] != os.path.sep:398 results.append(name[offset:].replace(os.path.sep, "/"))399
262 unmodified lines
modified:src/jinja2/runtime.py+2 added-2 removed
270 unmodified lines
271272 # Allow callable classes to take a context273 if (274 hasattr(__obj, "__call__") # noqa: B004275 and _PassArg.from_obj(__obj.__call__) is not None # type: ignore275 and _PassArg.from_obj(__obj.__call__) is not None276 ):277 __obj = __obj.__call__ # type: ignore277 __obj = __obj.__call__278279 pass_arg = _PassArg.from_obj(__obj)280281 if pass_arg is _PassArg.context:
772 unmodified lines
modified:tests/test_loader.py+4 added-2 removed
181 unmodified lines
182183184class TestModuleLoader:185 archive = None186 mod_env = None187188 def compile_down(self, prefix_loader, zip="deflated"):189 log = []190 self.reg_env = Environment(loader=prefix_loader)
5 unmodified lines
196 self.reg_env.compile_templates(self.archive, zip=zip, log_function=log.append)197 self.mod_env = Environment(loader=loaders.ModuleLoader(self.archive))198 return "".join(log)199199 def teardown(self):200 if hasattr(self, "mod_env"):200 def teardown_method(self):201 if self.archive is not None:202 if os.path.isfile(self.archive):203 os.remove(self.archive)204 else:205 shutil.rmtree(self.archive)206 self.archive = None207 self.mod_env = None208209 def test_log(self, prefix_loader):210 log = self.compile_down(prefix_loader)211 assert (
203 unmodified lines
modified:.pre-commit-config.yaml+2 added-2 removed
1 unmodified line
2 autoupdate_branch: "3.1.x"3 autoupdate_schedule: monthly4repos:5 - repo: https://github.com/asottile/pyupgrade6 rev: v3.3.06 rev: v3.3.17 hooks:8 - id: pyupgrade9 args: ["--py37-plus"]10 - repo: https://github.com/asottile/reorder_python_imports
2 unmodified lines
13 - id: reorder-python-imports14 args: ["--application-directories", "src"]15 additional_dependencies: ["setuptools>60.9"]16 - repo: https://github.com/psf/black17 rev: 22.10.017 rev: 22.12.018 hooks:19 - id: black20 - repo: https://github.com/PyCQA/flake821 rev: 6.0.0
13 unmodified lines