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
Provenance
- Commit
a8ee081- Tree
3ff2f3e- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
c167ddf- Parent 2
83f8efd
12 files changed+71 added−169 removed
modified:.github/workflows/tests.yaml+2 added-8 removed
37 unmodified lines38394041424344454647484748495051525354495051524 unmodified lines37 unmodified lines - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: python-version: ${{ matrix.python }} cache: 'pip' cache-dependency-path: 'requirements/*.txt' - name: update pip run: | pip install -U wheel pip install -U setuptools python -m pip install -U pip - name: get pip cache dir id: pip-cache run: echo "::set-output name=dir::$(pip cache dir)" - name: cache pip uses: actions/cache@v2 with: path: ${{ steps.pip-cache.outputs.dir }} key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }} - name: cache mypy uses: actions/cache@v2 with: path: ./.mypy_cache4 unmodified linesmodified:.github/dependabot.yml-10 removed
12345678910111234563 unmodified linesversion: 2updates:- package-ecosystem: "pip" directory: "/requirements" target-branch: "3.0.x" versioning-strategy: "lockfile-only" schedule: interval: "monthly" day: "monday" time: "16:00" timezone: "UTC" open-pull-requests-limit: 99- package-ecosystem: "github-actions" directory: "/" schedule: interval: "monthly"3 unmodified linesmodified:requirements/dev.in+1 added-1 removed
1 -r docs.in2 -r tests.in3 -r typing.in4-pip-tools4+pip-compile-multi5 pre-commit6 toxmodified: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 #7-alabaster==0.7.128- # via sphinx9-attrs==21.4.010- # via pytest11-babel==2.9.112- # via sphinx13-certifi==2021.10.814- # via requests8+-r docs.txt9+-r tests.txt10+-r typing.txt11 cfgv==3.3.112 # via pre-commit17-charset-normalizer==2.0.1018- # via requests13 click==8.0.320- # via pip-tools14+ # via15+ # pip-compile-multi16+ # pip-tools17 distlib==0.3.418 # via virtualenv23-docutils==0.17.124- # via sphinx25-filelock==3.4.219+filelock==3.6.020 # via21 # tox22 # virtualenv29-identify==2.4.323+identify==2.4.1024 # via pre-commit31-idna==3.332- # via requests33-imagesize==1.3.034- # via sphinx35-iniconfig==1.1.136- # via pytest37-jinja2==3.0.338- # via sphinx39-markupsafe==2.0.140- # via jinja241-mypy==0.93142- # via -r requirements/typing.in43-mypy-extensions==0.4.344- # via mypy25 nodeenv==1.6.026 # via pre-commit47-packaging==21.348- # via49- # pallets-sphinx-themes50- # pytest51- # sphinx52- # tox53-pallets-sphinx-themes==2.0.254- # via -r requirements/docs.in27 pep517==0.12.028 # via pip-tools57-pip-tools==6.4.029+pip-compile-multi==2.4.330 # via -r requirements/dev.in31+pip-tools==6.5.132+ # via pip-compile-multi59-platformdirs==2.4.133+platformdirs==2.5.034 # via virtualenv61-pluggy==1.0.062- # via63- # pytest64- # tox65-pre-commit==2.16.035+pre-commit==2.17.036 # via -r requirements/dev.in67-py==1.11.068- # via69- # pytest70- # tox71-pygments==2.11.272- # via sphinx73-pyparsing==3.0.674- # via packaging75-pytest==6.2.576- # via -r requirements/tests.in77-pytz==2021.378- # via babel37 pyyaml==6.038 # via pre-commit81-requests==2.27.182- # via sphinx39 six==1.16.040 # via41 # tox42 # virtualenv87-snowballstemmer==2.2.088- # via sphinx89-sphinx==4.3.290- # via91- # -r requirements/docs.in92- # pallets-sphinx-themes93- # sphinx-issues94- # sphinxcontrib-log-cabinet95-sphinx-issues==3.0.196- # via -r requirements/docs.in97-sphinxcontrib-applehelp==1.0.298- # via sphinx99-sphinxcontrib-devhelp==1.0.2100- # via sphinx101-sphinxcontrib-htmlhelp==2.0.0102- # via sphinx103-sphinxcontrib-jsmath==1.0.1104- # via sphinx105-sphinxcontrib-log-cabinet==1.0.1106- # via -r requirements/docs.in107-sphinxcontrib-qthelp==1.0.3108- # via sphinx109-sphinxcontrib-serializinghtml==1.1.5110- # via sphinx111-toml==0.10.2112- # via113- # pre-commit114- # pytest115- # tox116-tomli==2.0.0117- # via118- # mypy119- # pep51743+toposort==1.744+ # via pip-compile-multi45 tox==3.24.546 # via -r requirements/dev.in122-typing-extensions==4.0.1123- # via mypy124-urllib3==1.26.8125- # via requests126-virtualenv==20.13.047+virtualenv==20.13.148 # via49 # pre-commit50 # tox51 wheel==0.37.15 unmodified linesmodified: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 #8 alabaster==0.7.129 # via sphinx10 babel==2.9.111 # via sphinx12 certifi==2021.10.813 # via requests13-charset-normalizer==2.0.1014+charset-normalizer==2.0.1215 # via requests16 docutils==0.17.117 # via sphinx18 idna==3.311 unmodified lines30 pallets-sphinx-themes==2.0.231 # via -r requirements/docs.in32 pygments==2.11.233 # via sphinx33-pyparsing==3.0.634+pyparsing==3.0.735 # via packaging36 pytz==2021.337 # via babel38 requests==2.27.139 # via sphinx40 snowballstemmer==2.2.041 # via sphinx41-sphinx==4.3.242+sphinx==4.4.043 # via44 # -r requirements/docs.in45 # pallets-sphinx-themes46 # sphinx-issues15 unmodified lines62 sphinxcontrib-serializinghtml==1.1.563 # via sphinx64 urllib3==1.26.865 # via requests65-66-# The following packages are considered to be unsafe in a requirements file:67-# setuptoolsmodified:requirements/tests.in+1 added-1 removed
1-pytest1+pytest<7modified: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 #8 attrs==21.4.09 # via pytest10 iniconfig==1.1.13 unmodified lines14 pluggy==1.0.015 # via pytest16 py==1.11.017 # via pytest17-pyparsing==3.0.618+pyparsing==3.0.719 # via packaging20 pytest==6.2.521 # via -r requirements/tests.in22 toml==0.10.21 unmodified linemodified: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 #8 mypy==0.9319 # via -r requirements/typing.in10 mypy-extensions==0.4.311 # via mypy11-tomli==2.0.012+tomli==2.0.113 # via mypy13-typing-extensions==4.0.114+typing-extensions==4.1.115 # via mypymodified:src/jinja2/filters.py+1 added-1 removed
1162 unmodified lines1163 if method == "common":1164 return round(value, precision)1165 1166 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))1168 1169 1170 class _GroupTuple(t.NamedTuple):1171 grouper: t.Any653 unmodified linesmodified:src/jinja2/lexer.py+12 added-12 removed
513 unmodified lines514 self.newline_sequence = environment.newline_sequence515 self.keep_trailing_newline = environment.keep_trailing_newline516 517 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 )524 525 # 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 # data2 unmodified lines537 # 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 lines549 # 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 line560 + 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 line570 # 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 linesmodified:src/jinja2/parser.py+13 added-21 removed
362 unmodified lines363 self.stream.expect("name:import")364 node.names = []365 366 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 False577 unmodified lines952 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 linesmodified:.pre-commit-config.yaml+7 added-2 removed
6 unmodified lines7 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-marker2 unmodified lines