Skip to content
Myr

Merge branch '8.1.x'

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

authored by Sagi Buchbinder Shadur · committed by Sagi Buchbinder Shadur · parents cd7b51c, 6e05e1f · Browse files · 7 files+58 added−56 removed
This commit

State

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

Diff stats

7 files+58 added−56 removed

  • tests:+5 added−1 removed
  • other:+53 added−55 removed

7 files+58 added−56 removed

modified:requirements/build.txt+7 added-7 removed
3 unmodified lines
4# To update, run:5#6# pip-compile-multi7#8build==0.9.09 # via -r requirements/build.in10packaging==23.08build==0.10.09 # via -r requirements\build.in10colorama==0.4.611 # via build12pep517==0.13.012packaging==23.113 # via build14pyproject-hooks==1.0.015 # via build16tomli==2.0.115 # via16 # build17 # pep51717 # via build
modified:requirements/dev.txt+18 added-20 removed
6 unmodified lines
7#8-r docs.txt9-r tests.txt10-r typing.txt11build==0.9.011build==0.10.012 # via pip-tools13cachetools==5.2.013cachetools==5.3.014 # via tox15cfgv==3.3.116 # via pre-commit17chardet==5.1.0
1 unmodified line
19click==8.1.320 # via21 # pip-compile-multi22 # pip-tools23colorama==0.4.624 # via tox23distlib==0.3.624 # via virtualenv27filelock==3.9.025filelock==3.12.026 # via27 # tox28 # virtualenv31identify==2.5.1129identify==2.5.2330 # via pre-commit31nodeenv==1.7.032 # via pre-commit35pep517==0.13.036 # via build37pip-compile-multi==2.6.138 # via -r requirements/dev.in39pip-tools==6.12.133pip-compile-multi==2.6.234 # via -r requirements\dev.in35pip-tools==6.13.036 # via pip-compile-multi41platformdirs==2.6.237platformdirs==3.5.038 # via39 # tox40 # virtualenv45pre-commit==2.21.046 # via -r requirements/dev.in47pyproject-api==1.2.141pre-commit==3.3.142 # via -r requirements\dev.in43pyproject-api==1.5.144 # via tox45pyproject-hooks==1.0.046 # via build47pyyaml==6.048 # via pre-commit51toposort==1.749toposort==1.1050 # via pip-compile-multi53tox==4.1.054 # via -r requirements/dev.in55virtualenv==20.17.151tox==4.5.152 # via -r requirements\dev.in53virtualenv==20.23.054 # via55 # pre-commit56 # tox59wheel==0.38.457wheel==0.40.058 # via pip-tools5960# The following packages are considered to be unsafe in a requirements file:61# pip
1 unmodified line
modified:requirements/docs.txt+19 added-19 removed
3 unmodified lines
4# To update, run:5#6# pip-compile-multi7#8alabaster==0.7.128alabaster==0.7.139 # via sphinx10babel==2.11.010babel==2.12.111 # via sphinx12certifi==2022.12.713 # via requests14charset-normalizer==2.1.114charset-normalizer==3.1.015 # via requests16colorama==0.4.617 # via sphinx18docutils==0.18.119 # via20 # sphinx21 # sphinx-tabs
2 unmodified lines
24imagesize==1.4.125 # via sphinx26jinja2==3.1.227 # via sphinx26markupsafe==2.1.128markupsafe==2.1.229 # via jinja228packaging==22.030packaging==23.131 # via32 # pallets-sphinx-themes33 # sphinx32pallets-sphinx-themes==2.0.333 # via -r requirements/docs.in34pygments==2.13.034pallets-sphinx-themes==2.1.035 # via -r requirements\docs.in36pygments==2.15.137 # via38 # sphinx39 # sphinx-tabs38pytz==2022.739 # via babel40requests==2.28.140requests==2.29.041 # via sphinx42snowballstemmer==2.2.043 # via sphinx44sphinx==6.0.044sphinx==7.0.045 # via46 # -r requirements/docs.in46 # -r requirements\docs.in47 # pallets-sphinx-themes48 # sphinx-issues49 # sphinx-tabs50 # sphinxcontrib-log-cabinet51sphinx-issues==3.0.152 # via -r requirements/docs.in52 # via -r requirements\docs.in53sphinx-tabs==3.4.154 # via -r requirements/docs.in55sphinxcontrib-applehelp==1.0.254 # via -r requirements\docs.in55sphinxcontrib-applehelp==1.0.456 # via sphinx57sphinxcontrib-devhelp==1.0.258 # via sphinx59sphinxcontrib-htmlhelp==2.0.059sphinxcontrib-htmlhelp==2.0.160 # via sphinx61sphinxcontrib-jsmath==1.0.162 # via sphinx63sphinxcontrib-log-cabinet==1.0.164 # via -r requirements/docs.in64 # via -r requirements\docs.in65sphinxcontrib-qthelp==1.0.366 # via sphinx67sphinxcontrib-serializinghtml==1.1.568 # via sphinx69urllib3==1.26.1369urllib3==1.26.1570 # via requests
modified:requirements/tests.txt+6 added-6 removed
3 unmodified lines
4# To update, run:5#6# pip-compile-multi7#8attrs==22.2.08colorama==0.4.69 # via pytest10exceptiongroup==1.1.010exceptiongroup==1.1.111 # via pytest12iniconfig==1.1.112iniconfig==2.0.013 # via pytest14packaging==22.014packaging==23.115 # via pytest16pluggy==1.0.017 # via pytest18pytest==7.2.019 # via -r requirements/tests.in18pytest==7.3.119 # via -r requirements\tests.in20tomli==2.0.121 # via pytest
modified:src/click/core.py+1 added-1 removed
2001 unmodified lines
2002 :param param_decls: the parameter declarations for this option or2003 argument. This is a list of flags or argument2004 names.2005 :param type: the type that should be used. Either a :class:`ParamType`2006 or a Python type. The later is converted into the former2006 or a Python type. The latter is converted into the former2007 automatically if supported.2008 :param required: controls if this is optional or not.2009 :param default: the default value if omitted. This can also be a callable,2010 in which case it's invoked when the default is needed
1006 unmodified lines
modified:tests/test_arguments.py+5 added-1 removed
1import sys2from unittest import mock34import pytest56import click
79 unmodified lines
86 arg, str87 ), "UTF-8 encoded argument should be implicitly converted to Unicode"8889 # Simulate empty locale environment variables89 monkeypatch.setattr(sys.stdin, "encoding", "utf-8")90 monkeypatch.setattr(sys, "getfilesystemencoding", lambda: "utf-8")91 monkeypatch.setattr(sys, "getdefaultencoding", lambda: "utf-8")92 # sys.stdin.encoding is readonly, needs some extra effort to patch.93 stdin = mock.Mock(wraps=sys.stdin)94 stdin.encoding = "utf-8"95 monkeypatch.setattr(sys, "stdin", stdin)9697 runner.invoke(98 from_bytes,99 ["Something outside of ASCII range: 林".encode()],
284 unmodified lines
modified:.pre-commit-config.yaml+2 added-2 removed