update requirements, test Python 3.9
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 c580dd0 · Browse files · 11 files·+172 added−77 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
11 files+172 added−77 removed
- other:+172 added−77 removed
Provenance
- Commit
33ff819- Tree
b917857- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
c580dd0
11 files changed+172 added−77 removed
modified:.github/workflows/tests.yaml+7 added-13 removed
14 unmodified lines15161718191920212223232425262724252627282930316 unmodified lines383940414242434445464748495051464714 unmodified lines strategy: fail-fast: false matrix: include: - {name: Linux, python: '3.8', os: ubuntu-latest, tox: py38} - {name: Linux, python: '3.9', os: ubuntu-latest, tox: py39} - {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38} - {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37} - {name: '3.6', python: '3.6', os: ubuntu-latest, tox: py36} - {name: 'PyPy', python: pypy3, os: ubuntu-latest, tox: pypy3} - {name: Style, python: '3.8', os: ubuntu-latest, tox: style} - {name: Docs, python: '3.8', os: ubuntu-latest, tox: docs} - {name: Typing, python: '3.8', os: ubuntu-latest, tox: mypy} - {name: Windows, python: '3.8', os: windows-latest, tox: py38} - {name: Mac, python: '3.8', os: macos-latest, tox: py38} - {name: Docs, python: '3.9', os: ubuntu-latest, tox: docs} - {name: Typing, python: '3.9', os: ubuntu-latest, tox: typing} - {name: Windows, python: '3.9', os: windows-latest, tox: py39} - {name: Mac, python: '3.9', os: macos-latest, tox: py39} steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with:6 unmodified lines - name: get pip cache dir id: pip-cache run: echo "::set-output name=dir::$(pip cache dir)" - name: cache pip uses: actions/cache@v1 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 pre-commit uses: actions/cache@v1 with: path: ~/.cache/pre-commit key: pre-commit|${{ matrix.python }}|${{ hashFiles('.pre-commit-config.yaml') }} if: matrix.tox == 'style' - run: pip install tox - run: tox -e ${{ matrix.tox }}modified:requirements/dev.in+2 added-1 removed
1-# -r docs.in # can't include due to Sphinx/Jinja mutual dependency1+-r docs.in2 -r tests.in3+-r typing.in4 pip-tools5 pre-commit6 toxmodified:requirements/dev.txt+77 added-15 removed
2 unmodified lines3 # To update, run:4 #5 # pip-compile requirements/dev.in6 #7+alabaster==0.7.128+ # via sphinx9 appdirs==1.4.410 # via virtualenv9-attrs==19.3.011+attrs==20.3.012 # via pytest13+babel==2.9.014+ # via sphinx15+certifi==2020.12.516+ # via requests11-cfgv==3.1.017+cfgv==3.2.018 # via pre-commit19+chardet==4.0.020+ # via requests21 click==7.1.222 # via pip-tools15-distlib==0.3.023+distlib==0.3.124 # via virtualenv25+docutils==0.1626+ # via sphinx27 filelock==3.0.1228 # via29 # tox30 # virtualenv21-identify==1.4.1531+identify==1.5.1332 # via pre-commit33+idna==2.1034+ # via requests35+imagesize==1.2.036+ # via sphinx23-iniconfig==1.0.037+iniconfig==1.1.138 # via pytest39+jinja2==2.11.340+ # via sphinx41+markupsafe==1.1.142+ # via jinja243+mypy-extensions==0.4.344+ # via mypy45+mypy==0.80046+ # via -r requirements/typing.in25-nodeenv==1.3.547+nodeenv==1.5.048 # via pre-commit27-packaging==20.349+packaging==20.950 # via51+ # pallets-sphinx-themes52 # pytest53+ # sphinx54 # tox55+pallets-sphinx-themes==1.2.356+ # via -r requirements/docs.in57 pip-tools==5.5.058 # via -r requirements/dev.in59 pluggy==0.13.160 # via61 # pytest62 # tox37-pre-commit==2.10.063+pre-commit==2.10.164 # via -r requirements/dev.in39-py==1.9.065+py==1.10.066 # via67 # pytest68 # tox69+pygments==2.7.470+ # via sphinx71 pyparsing==2.4.772 # via packaging73 pytest==6.2.274 # via -r requirements/tests.in75+pytz==2021.176+ # via babel47-pyyaml==5.3.177+pyyaml==5.4.178 # via pre-commit79+requests==2.25.180+ # via sphinx49-six==1.14.081+six==1.15.082 # via51- # packaging83 # tox84 # virtualenv54-toml==0.10.185+snowballstemmer==2.1.086+ # via sphinx87+sphinx-issues==1.2.088+ # via -r requirements/docs.in89+sphinx==2.4.490 # via91+ # -r requirements/docs.in92+ # pallets-sphinx-themes93+ # sphinx-issues94+ # sphinxcontrib-log-cabinet95+sphinxcontrib-applehelp==1.0.296+ # via sphinx97+sphinxcontrib-devhelp==1.0.298+ # via sphinx99+sphinxcontrib-htmlhelp==1.0.3100+ # via sphinx101+sphinxcontrib-jsmath==1.0.1102+ # via sphinx103+sphinxcontrib-log-cabinet==1.0.1104+ # via -r requirements/docs.in105+sphinxcontrib-qthelp==1.0.3106+ # via sphinx107+sphinxcontrib-serializinghtml==1.1.4108+ # via sphinx109+toml==0.10.2110+ # via111 # pre-commit112 # pytest113 # tox59-tox==3.21.3114+tox==3.21.4115 # via -r requirements/dev.in116+typed-ast==1.4.2117+ # via mypy118+typing-extensions==3.7.4.3119+ # via mypy120+urllib3==1.26.3121+ # via requests61-virtualenv==20.0.20122+virtualenv==20.4.2123 # via124 # pre-commit125 # tox126 127 # The following packages are considered to be unsafe in a requirements file:128 # pip129+# setuptoolsmodified:requirements/docs.txt+58 added-27 removed
2 unmodified lines3 # To update, run:4 #5 # pip-compile requirements/docs.in6 #7-alabaster==0.7.12 # via sphinx8-babel==2.9.0 # via sphinx9-certifi==2020.4.5.1 # via requests10-chardet==3.0.4 # via requests11-docutils==0.16 # via sphinx12-idna==2.9 # via requests13-imagesize==1.2.0 # via sphinx14-jinja2==2.11.2 # via sphinx15-markupsafe==1.1.1 # via jinja216-packaging==20.3 # via pallets-sphinx-themes, sphinx17-pallets-sphinx-themes==1.2.3 # via -r requirements/docs.in18-pygments==2.6.1 # via sphinx19-pyparsing==2.4.7 # via packaging20-pytz==2020.1 # via babel21-requests==2.23.0 # via sphinx22-six==1.14.0 # via packaging23-snowballstemmer==2.0.0 # via sphinx24-sphinx-issues==1.2.0 # via -r requirements/docs.in25-sphinx==2.4.4 # via -r requirements/docs.in, pallets-sphinx-themes, sphinx-issues, sphinxcontrib-log-cabinet26-sphinxcontrib-applehelp==1.0.2 # via sphinx27-sphinxcontrib-devhelp==1.0.2 # via sphinx28-sphinxcontrib-htmlhelp==1.0.3 # via sphinx29-sphinxcontrib-jsmath==1.0.1 # via sphinx30-sphinxcontrib-log-cabinet==1.0.1 # via -r requirements/docs.in31-sphinxcontrib-qthelp==1.0.3 # via sphinx32-sphinxcontrib-serializinghtml==1.1.4 # via sphinx33-urllib3==1.25.9 # via requests7+alabaster==0.7.128+ # via sphinx9+babel==2.9.010+ # via sphinx11+certifi==2020.12.512+ # via requests13+chardet==4.0.014+ # via requests15+docutils==0.1616+ # via sphinx17+idna==2.1018+ # via requests19+imagesize==1.2.020+ # via sphinx21+jinja2==2.11.322+ # via sphinx23+markupsafe==1.1.124+ # via jinja225+packaging==20.926+ # via27+ # pallets-sphinx-themes28+ # sphinx29+pallets-sphinx-themes==1.2.330+ # via -r requirements/docs.in31+pygments==2.7.432+ # via sphinx33+pyparsing==2.4.734+ # via packaging35+pytz==2021.136+ # via babel37+requests==2.25.138+ # via sphinx39+snowballstemmer==2.1.040+ # via sphinx41+sphinx-issues==1.2.042+ # via -r requirements/docs.in43+sphinx==2.4.444+ # via45+ # -r requirements/docs.in46+ # pallets-sphinx-themes47+ # sphinx-issues48+ # sphinxcontrib-log-cabinet49+sphinxcontrib-applehelp==1.0.250+ # via sphinx51+sphinxcontrib-devhelp==1.0.252+ # via sphinx53+sphinxcontrib-htmlhelp==1.0.354+ # via sphinx55+sphinxcontrib-jsmath==1.0.156+ # via sphinx57+sphinxcontrib-log-cabinet==1.0.158+ # via -r requirements/docs.in59+sphinxcontrib-qthelp==1.0.360+ # via sphinx61+sphinxcontrib-serializinghtml==1.1.462+ # via sphinx63+urllib3==1.26.364+ # via requests65 66 # The following packages are considered to be unsafe in a requirements file:67 # setuptoolsmodified:requirements/tests.txt+5 added-7 removed
2 unmodified lines3 # To update, run:4 #5 # pip-compile requirements/tests.in6 #7-attrs==19.3.07+attrs==20.3.08 # via pytest9-iniconfig==1.0.09+iniconfig==1.1.110 # via pytest11-packaging==20.311+packaging==20.912 # via pytest13 pluggy==0.13.114 # via pytest15-py==1.9.015+py==1.10.016 # via pytest17 pyparsing==2.4.718 # via packaging19 pytest==6.2.220 # via -r requirements/tests.in21-six==1.14.022- # via packaging23-toml==0.10.121+toml==0.10.222 # via pytestadded:requirements/typing.in+1 added
1+mypyadded:requirements/typing.txt+14 added
1+#2+# This file is autogenerated by pip-compile3+# To update, run:4+#5+# pip-compile requirements/typing.in6+#7+mypy-extensions==0.4.38+ # via mypy9+mypy==0.80010+ # via -r requirements/typing.in11+typed-ast==1.4.212+ # via mypy13+typing-extensions==3.7.4.314+ # via mypymodified:.pre-commit-config.yaml+1 added-1 removed
3 unmodified lines456788910111214 unmodified lines3 unmodified lines hooks: - id: pyupgrade args: ["--py36-plus"] - repo: https://github.com/asottile/reorder_python_imports rev: v2.3.6 rev: v2.4.0 hooks: - id: reorder-python-imports args: ["--application-directories", "src"] - repo: https://github.com/psf/black14 unmodified linesmodified:CONTRIBUTING.rst-6 removed
205 unmodified lines206 207 Building the docs208 ~~~~~~~~~~~~~~~~~209 210-Install the documentation dependencies if you have not already done so.211-212-.. code-block:: text213-214- $ pip install -r requirements/docs.txt215-210 Build the docs in the ``docs`` directory using Sphinx.211 212 .. code-block:: text213 6 unmodified linesmodified:setup.cfg+1 added
77 unmodified lines78 # __init__ module exports names79 src/jinja2/__init__.py: F40180 81 [mypy]82+files = src/jinja283 allow_redefinition = True84 disallow_subclassing_any = True85 # disallow_untyped_defs = True86 strict_equality = True13 unmodified linesmodified:tox.ini+6 added-7 removed
1 [tox]2 envlist =3- py{38,37,36,py3}3+ py{39,38,37,36,py3}4 style5 docs6- mypy6+ typing7 skip_missing_interpreters = true8 9 [testenv]10 deps = -r requirements/tests.txt11-commands = pytest --tb=short --basetemp={envtmpdir} {posargs}11+commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs}12 13 [testenv:style]14 deps = pre-commit15 skip_install = true2 unmodified lines18 [testenv:docs]19 deps = -r requirements/docs.txt20 commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html21 22-[testenv:mypy]23-deps = mypy24-commands =25- mypy src/jinja2 tests22+[testenv:typing]23+deps = -r requirements/typing.txt24+commands = mypy