Skip to content
Myr

Merge pull request #1584 from pallets/update-requirements

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

update requirements

authored by David Lord · committed by GitHub · parents c167ddf, 83f8efd · Browse files · 12 files+71 added−169 removed
This commit

State

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

Diff stats

12 files+71 added−169 removed

  • other:+71 added−169 removed

12 files+71 added−169 removed

modified:.github/workflows/tests.yaml+2 added-8 removed
modified:.github/dependabot.yml-10 removed
modified:requirements/dev.in+1 added-1 removed
1-r docs.in2-r tests.in3-r typing.in4pip-tools4pip-compile-multi5pre-commit6tox
modified:requirements/dev.txt+19 added-98 removed
1# SHA1:54b5b77ec8c7a0064ffa93b2fd16cb0130ba177c2#2# This file is autogenerated by pip-compile with python 3.103# This file is autogenerated by pip-compile-multi4# To update, run:5#5# pip-compile requirements/dev.in6# pip-compile-multi7#7alabaster==0.7.128 # via sphinx9attrs==21.4.010 # via pytest11babel==2.9.112 # via sphinx13certifi==2021.10.814 # via requests8-r docs.txt9-r tests.txt10-r typing.txt11cfgv==3.3.112 # via pre-commit17charset-normalizer==2.0.1018 # via requests13click==8.0.320 # via pip-tools14 # via15 # pip-compile-multi16 # pip-tools17distlib==0.3.418 # via virtualenv23docutils==0.17.124 # via sphinx25filelock==3.4.219filelock==3.6.020 # via21 # tox22 # virtualenv29identify==2.4.323identify==2.4.1024 # via pre-commit31idna==3.332 # via requests33imagesize==1.3.034 # via sphinx35iniconfig==1.1.136 # via pytest37jinja2==3.0.338 # via sphinx39markupsafe==2.0.140 # via jinja241mypy==0.93142 # via -r requirements/typing.in43mypy-extensions==0.4.344 # via mypy25nodeenv==1.6.026 # via pre-commit47packaging==21.348 # via49 # pallets-sphinx-themes50 # pytest51 # sphinx52 # tox53pallets-sphinx-themes==2.0.254 # via -r requirements/docs.in27pep517==0.12.028 # via pip-tools57pip-tools==6.4.029pip-compile-multi==2.4.330 # via -r requirements/dev.in31pip-tools==6.5.132 # via pip-compile-multi59platformdirs==2.4.133platformdirs==2.5.034 # via virtualenv61pluggy==1.0.062 # via63 # pytest64 # tox65pre-commit==2.16.035pre-commit==2.17.036 # via -r requirements/dev.in67py==1.11.068 # via69 # pytest70 # tox71pygments==2.11.272 # via sphinx73pyparsing==3.0.674 # via packaging75pytest==6.2.576 # via -r requirements/tests.in77pytz==2021.378 # via babel37pyyaml==6.038 # via pre-commit81requests==2.27.182 # via sphinx39six==1.16.040 # via41 # tox42 # virtualenv87snowballstemmer==2.2.088 # via sphinx89sphinx==4.3.290 # via91 # -r requirements/docs.in92 # pallets-sphinx-themes93 # sphinx-issues94 # sphinxcontrib-log-cabinet95sphinx-issues==3.0.196 # via -r requirements/docs.in97sphinxcontrib-applehelp==1.0.298 # via sphinx99sphinxcontrib-devhelp==1.0.2100 # via sphinx101sphinxcontrib-htmlhelp==2.0.0102 # via sphinx103sphinxcontrib-jsmath==1.0.1104 # via sphinx105sphinxcontrib-log-cabinet==1.0.1106 # via -r requirements/docs.in107sphinxcontrib-qthelp==1.0.3108 # via sphinx109sphinxcontrib-serializinghtml==1.1.5110 # via sphinx111toml==0.10.2112 # via113 # pre-commit114 # pytest115 # tox116tomli==2.0.0117 # via118 # mypy119 # pep51743toposort==1.744 # via pip-compile-multi45tox==3.24.546 # via -r requirements/dev.in122typing-extensions==4.0.1123 # via mypy124urllib3==1.26.8125 # via requests126virtualenv==20.13.047virtualenv==20.13.148 # via49 # pre-commit50 # tox51wheel==0.37.1
5 unmodified lines
modified:requirements/docs.txt+6 added-8 removed
1# SHA1:45c590f97fe95b8bdc755eef796e91adf5fbe4ea2#2# This file is autogenerated by pip-compile with python 3.103# This file is autogenerated by pip-compile-multi4# To update, run:5#5# pip-compile requirements/docs.in6# pip-compile-multi7#8alabaster==0.7.129 # via sphinx10babel==2.9.111 # via sphinx12certifi==2021.10.813 # via requests13charset-normalizer==2.0.1014charset-normalizer==2.0.1215 # via requests16docutils==0.17.117 # via sphinx18idna==3.3
11 unmodified lines
30pallets-sphinx-themes==2.0.231 # via -r requirements/docs.in32pygments==2.11.233 # via sphinx33pyparsing==3.0.634pyparsing==3.0.735 # via packaging36pytz==2021.337 # via babel38requests==2.27.139 # via sphinx40snowballstemmer==2.2.041 # via sphinx41sphinx==4.3.242sphinx==4.4.043 # via44 # -r requirements/docs.in45 # pallets-sphinx-themes46 # sphinx-issues
15 unmodified lines
62sphinxcontrib-serializinghtml==1.1.563 # via sphinx64urllib3==1.26.865 # via requests6566# The following packages are considered to be unsafe in a requirements file:67# setuptools
modified:requirements/tests.in+1 added-1 removed
1pytest1pytest<7
modified:requirements/tests.txt+4 added-3 removed
1# SHA1:43b07f68ee4dcf187dce9de79fc8dd462f1c99d62#2# This file is autogenerated by pip-compile with python 3.103# This file is autogenerated by pip-compile-multi4# To update, run:5#5# pip-compile requirements/tests.in6# pip-compile-multi7#8attrs==21.4.09 # via pytest10iniconfig==1.1.1
3 unmodified lines
14pluggy==1.0.015 # via pytest16py==1.11.017 # via pytest17pyparsing==3.0.618pyparsing==3.0.719 # via packaging20pytest==6.2.521 # via -r requirements/tests.in22toml==0.10.2
1 unmodified line
modified:requirements/typing.txt+5 added-4 removed
1# SHA1:7983aaa01d64547827c20395d77e248c41b2572f2#2# This file is autogenerated by pip-compile with python 3.103# This file is autogenerated by pip-compile-multi4# To update, run:5#5# pip-compile requirements/typing.in6# pip-compile-multi7#8mypy==0.9319 # via -r requirements/typing.in10mypy-extensions==0.4.311 # via mypy11tomli==2.0.012tomli==2.0.113 # via mypy13typing-extensions==4.0.114typing-extensions==4.1.115 # via mypy
modified:src/jinja2/filters.py+1 added-1 removed
1162 unmodified lines
1163 if method == "common":1164 return round(value, precision)11651166 func = getattr(math, method)1167 return t.cast(float, func(value * (10 ** precision)) / (10 ** precision))1167 return t.cast(float, func(value * (10**precision)) / (10**precision))116811691170class _GroupTuple(t.NamedTuple):1171 grouper: t.Any
653 unmodified lines
modified:src/jinja2/lexer.py+12 added-12 removed
513 unmodified lines
514 self.newline_sequence = environment.newline_sequence515 self.keep_trailing_newline = environment.keep_trailing_newline516517 root_raw_re = (518 fr"(?P<raw_begin>{block_start_re}(\-|\+|)\s*raw\s*"519 fr"(?:\-{block_end_re}\s*|{block_end_re}))"518 rf"(?P<raw_begin>{block_start_re}(\-|\+|)\s*raw\s*"519 rf"(?:\-{block_end_re}\s*|{block_end_re}))"520 )521 root_parts_re = "|".join(522 [root_raw_re] + [fr"(?P<{n}>{r}(\-|\+|))" for n, r in root_tag_rules]522 [root_raw_re] + [rf"(?P<{n}>{r}(\-|\+|))" for n, r in root_tag_rules]523 )524525 # global lexing rules526 self.rules: t.Dict[str, t.List[_Rule]] = {527 "root": [528 # directives529 _Rule(530 c(fr"(.*?)(?:{root_parts_re})"),530 c(rf"(.*?)(?:{root_parts_re})"),531 OptionalLStrip(TOKEN_DATA, "#bygroup"), # type: ignore532 "#bygroup",533 ),534 # data
2 unmodified lines
537 # comments538 TOKEN_COMMENT_BEGIN: [539 _Rule(540 c(541 fr"(.*?)((?:\+{comment_end_re}|\-{comment_end_re}\s*"542 fr"|{comment_end_re}{block_suffix_re}))"541 rf"(.*?)((?:\+{comment_end_re}|\-{comment_end_re}\s*"542 rf"|{comment_end_re}{block_suffix_re}))"543 ),544 (TOKEN_COMMENT, TOKEN_COMMENT_END),545 "#pop",546 ),
2 unmodified lines
549 # blocks550 TOKEN_BLOCK_BEGIN: [551 _Rule(552 c(553 fr"(?:\+{block_end_re}|\-{block_end_re}\s*"554 fr"|{block_end_re}{block_suffix_re})"553 rf"(?:\+{block_end_re}|\-{block_end_re}\s*"554 rf"|{block_end_re}{block_suffix_re})"555 ),556 TOKEN_BLOCK_END,557 "#pop",558 ),
1 unmodified line
560 + tag_rules,561 # variables562 TOKEN_VARIABLE_BEGIN: [563 _Rule(564 c(fr"\-{variable_end_re}\s*|{variable_end_re}"),564 c(rf"\-{variable_end_re}\s*|{variable_end_re}"),565 TOKEN_VARIABLE_END,566 "#pop",567 )568 ]
1 unmodified line
570 # raw block571 TOKEN_RAW_BEGIN: [572 _Rule(573 c(574 fr"(.*?)((?:{block_start_re}(\-|\+|))\s*endraw\s*"575 fr"(?:\+{block_end_re}|\-{block_end_re}\s*"576 fr"|{block_end_re}{block_suffix_re}))"574 rf"(.*?)((?:{block_start_re}(\-|\+|))\s*endraw\s*"575 rf"(?:\+{block_end_re}|\-{block_end_re}\s*"576 rf"|{block_end_re}{block_suffix_re}))"577 ),578 OptionalLStrip(TOKEN_DATA, TOKEN_RAW_END), # type: ignore579 "#pop",580 ),
289 unmodified lines
modified:src/jinja2/parser.py+13 added-21 removed
362 unmodified lines
363 self.stream.expect("name:import")364 node.names = []365366 def parse_context() -> bool:367 if (368 self.stream.current.value369 in {370 "with",371 "without",372 }367 if self.stream.current.value in {368 "with",369 "without",370 } and self.stream.look().test("name:context"):373 and self.stream.look().test("name:context")374 ):371 node.with_context = next(self.stream).value == "with"372 self.stream.skip()373 return True374 return False
577 unmodified lines
952 dyn_args = dyn_kwargs = None953 kwargs = []954 if self.stream.current.type == "lparen":955 args, kwargs, dyn_args, dyn_kwargs = self.parse_call_args()960 elif (961 self.stream.current.type962 in {963 "name",964 "string",965 "integer",966 "float",967 "lparen",968 "lbracket",969 "lbrace",970 }956 elif self.stream.current.type in {957 "name",958 "string",959 "integer",960 "float",961 "lparen",962 "lbracket",963 "lbrace",964 } and not self.stream.current.test_any("name:else", "name:or", "name:and"):971 and not self.stream.current.test_any("name:else", "name:or", "name:and")972 ):965 if self.stream.current.test("name:is"):966 self.fail("You cannot chain multiple tests with is")967 arg_node = self.parse_primary()968 arg_node = self.parse_postfix(arg_node)
64 unmodified lines
modified:.pre-commit-config.yaml+7 added-2 removed
6 unmodified lines
7 hooks:8 - id: pyupgrade9 args: ["--py36-plus"]10 - repo: https://github.com/asottile/reorder_python_imports11 rev: v2.6.011 rev: v2.7.112 hooks:13 - id: reorder-python-imports14 args: ["--application-directories", "src"]15 additional_dependencies: ["setuptools>60.9"]16 - repo: https://github.com/psf/black16 rev: 21.12b017 rev: 22.1.018 hooks:19 - id: black20 - repo: https://github.com/PyCQA/flake821 rev: 4.0.122 hooks:23 - id: flake824 additional_dependencies: [flake8-bugbear]25 - repo: https://github.com/peterdemin/pip-compile-multi26 rev: v2.4.327 hooks:28 - id: pip-compile-multi-verify29 - repo: https://github.com/pre-commit/pre-commit-hooks30 rev: v4.1.031 hooks:32 - id: fix-byte-order-marker
2 unmodified lines