Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Build script for chalice on UBI #1019

Merged

Conversation

asellappen
Copy link
Contributor

No description provided.

@asellappen
Copy link
Contributor Author

asellappen commented Sep 8, 2021

Test 1:-

sh chalice_ubi_8.3.sh 1.22.4

Cloning into 'chalice'...
remote: Enumerating objects: 14004, done.
remote: Counting objects: 100% (947/947), done.
remote: Compressing objects: 100% (450/450), done.
remote: Total 14004 (delta 580), reused 817 (delta 486), pack-reused 13057
Receiving objects: 100% (14004/14004), 8.43 MiB | 17.63 MiB/s, done.
Resolving deltas: 100% (9934/9934), done.
Note: switching to '1.22.4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 1ee44df Bumping version to 1.22.4
found to checkout
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Ignoring pylint: markers 'python_version <= "2.7"' don't match your environment
Ignoring astroid: markers 'python_version <= "2.7"' don't match your environment
Ignoring pytest: markers 'python_version <= "2.7"' don't match your environment
Collecting coverage==4.5.4 (from -r requirements-dev.txt (line 2))
Downloading https://files.pythonhosted.org/packages/85/d5/818d0e603685c4a613d56f065a721013e942088047ff1027a632948bdae6/coverage-4.5.4.tar.gz (385kB)
100% |████████████████████████████████| 389kB 3.0MB/s
Collecting flake8==3.7.9 (from -r requirements-dev.txt (line 3))
Downloading https://files.pythonhosted.org/packages/f8/1f/7ea40d1e4146ea55dbab41cda1376db092a75794914169aabd7e8d7a7def/flake8-3.7.9-py2.py3-none-any.whl (69kB)
100% |████████████████████████████████| 71kB 9.7MB/s
Collecting tox==3.0.0 (from -r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/e6/41/4dcfd713282bf3213b0384320fa8841e4db032ddcb80bc08a540159d42a8/tox-3.0.0-py2.py3-none-any.whl (60kB)
100% |████████████████████████████████| 61kB 9.3MB/s
Collecting wheel==0.26.0 (from -r requirements-dev.txt (line 5))
Downloading https://files.pythonhosted.org/packages/d9/6f/cfb45d489703e4843b30c28e01ab39c87b0648bfa11a6c4a959f426fe217/wheel-0.26.0-py2.py3-none-any.whl (63kB)
100% |████████████████████████████████| 71kB 10.6MB/s
Collecting doc8==0.8.1 (from -r requirements-dev.txt (line 6))
Downloading https://files.pythonhosted.org/packages/e8/ec/1ec961cbe5f626c2f990b7491b4c2b06d7e6318e8e2daa37f4f51bcb6bdc/doc8-0.8.1-py2.py3-none-any.whl
Collecting pylint==2.4.4 (from -r requirements-dev.txt (line 8))
Downloading https://files.pythonhosted.org/packages/e9/59/43fc36c5ee316bb9aeb7cf5329cdbdca89e5749c34d5602753827c0aa2dc/pylint-2.4.4-py3-none-any.whl (302kB)
100% |████████████████████████████████| 307kB 3.9MB/s
Collecting pytest-cov==2.8.1 (from -r requirements-dev.txt (line 13))
Downloading https://files.pythonhosted.org/packages/b9/54/3673ee8be482f81527678ac894276223b9814bb7262e4f730469bb7bf70e/pytest_cov-2.8.1-py2.py3-none-any.whl
Collecting pydocstyle==2.0.0 (from -r requirements-dev.txt (line 14))
Downloading https://files.pythonhosted.org/packages/5c/ca/0849f5a833575eb43c57dc5a40ca825615b234d161cc69bc9ce5867d7169/pydocstyle-2.0.0-py2.py3-none-any.whl
Collecting pytest==5.3.1 (from -r requirements-dev.txt (line 17))
Downloading https://files.pythonhosted.org/packages/da/ed/d22d7f06eb1107271694ed2171b9d52e8eea38d9757124e75ba13324ac77/pytest-5.3.1-py3-none-any.whl (233kB)
100% |████████████████████████████████| 235kB 4.9MB/s
Collecting py==1.10.0 (from -r requirements-dev.txt (line 19))
Downloading https://files.pythonhosted.org/packages/67/32/6fe01cfc3d1a27c92fdbcdfc3f67856da8cbadf0dd9f2e18055202b2dc62/py-1.10.0-py2.py3-none-any.whl (97kB)
100% |████████████████████████████████| 102kB 10.3MB/s
Collecting pygments==2.7.4 (from -r requirements-dev.txt (line 20))
Downloading https://files.pythonhosted.org/packages/17/e3/c7ea888bd6e9849c60b1f378637850265177ed01297137f544a7ecf7d7ba/Pygments-2.7.4-py3-none-any.whl (950kB)
100% |████████████████████████████████| 952kB 1.3MB/s
Collecting mock==2.0.0 (from -r requirements-dev.txt (line 21))
Downloading https://files.pythonhosted.org/packages/e6/35/f187bdf23be87092bd0f1200d43d23076cee4d0dec109f195173fd3ebc79/mock-2.0.0-py2.py3-none-any.whl (56kB)
100% |████████████████████████████████| 61kB 10.1MB/s
Requirement already satisfied: requests==2.20.0 in /usr/lib/python3.6/site-packages (from -r requirements-dev.txt (line 22))
Collecting boto3==1.15.16 (from -r requirements-dev.txt (line 23))
Downloading https://files.pythonhosted.org/packages/3f/87/31810f044f2dd2101f2ecd85c5539bbddef4cff47df39eb0be895cc23af4/boto3-1.15.16-py2.py3-none-any.whl (129kB)
100% |████████████████████████████████| 133kB 8.8MB/s
Collecting websocket-client==0.54.0 (from -r requirements-dev.txt (line 24))
Downloading https://files.pythonhosted.org/packages/26/2d/f749a5c82f6192d77ed061a38e02001afcba55fe8477336d26a950ab17ce/websocket_client-0.54.0-py2.py3-none-any.whl (200kB)
100% |████████████████████████████████| 204kB 5.7MB/s
Collecting hypothesis==4.43.1 (from -r requirements-dev.txt (line 25))
Downloading https://files.pythonhosted.org/packages/e7/76/7df700b8e3e5c48c01a161ddfea3211d18c7e5bbc5eac18f7b7f2d99d003/hypothesis-4.43.1-py3-none-any.whl (278kB)
100% |████████████████████████████████| 286kB 4.2MB/s
Collecting pluggy==0.12 (from -r requirements-dev.txt (line 28))
Downloading https://files.pythonhosted.org/packages/06/ee/de89e0582276e3551df3110088bf20844de2b0e7df2748406876cc78e021/pluggy-0.12.0-py2.py3-none-any.whl
Collecting mypy==0.812 (from -r requirements-dev.txt (line 30))
Downloading https://files.pythonhosted.org/packages/ac/eb/4cf7af6a92cb37cd681f0b0b96160db96aacd533f5598e40deeb81b48e89/mypy-0.812-py3-none-any.whl (2.5MB)
100% |████████████████████████████████| 2.5MB 508kB/s
Collecting mypy-extensions==0.4.3 (from -r requirements-dev.txt (line 31))
Downloading https://files.pythonhosted.org/packages/5c/eb/975c7c080f3223a5cdaff09612f3a5221e4ba534f7039db34c35d95fa6a5/mypy_extensions-0.4.3-py2.py3-none-any.whl
Collecting Sphinx==1.7.9 (from -r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/90/f9/a0babe32c78480994e4f1b93315558f5ed756104054a7029c672a8d77b72/Sphinx-1.7.9-py2.py3-none-any.whl (1.9MB)
100% |████████████████████████████████| 1.9MB 640kB/s
Collecting guzzle_sphinx_theme<0.8,>=0.7.10 (from -r requirements-docs.txt (line 2))
Downloading https://files.pythonhosted.org/packages/f4/7d/aed8cd5e4ca52bb8550d2c33fcbb8d6dbd5c2cf5e1694202d2135b374eba/guzzle_sphinx_theme-0.7.11.tar.gz (2.5MB)
100% |████████████████████████████████| 2.5MB 481kB/s
Collecting mccabe<0.7.0,>=0.6.0 (from flake8==3.7.9->-r requirements-dev.txt (line 3))
Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting entrypoints<0.4.0,>=0.3.0 (from flake8==3.7.9->-r requirements-dev.txt (line 3))
Downloading https://files.pythonhosted.org/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl
Collecting pyflakes<2.2.0,>=2.1.0 (from flake8==3.7.9->-r requirements-dev.txt (line 3))
Downloading https://files.pythonhosted.org/packages/84/f2/ed0ffb887f8138a8fe5a621b8c0bb9598bfb3989e029f6c6a85ee66628ee/pyflakes-2.1.1-py2.py3-none-any.whl (59kB)
100% |████████████████████████████████| 61kB 10.0MB/s
Collecting pycodestyle<2.6.0,>=2.5.0 (from flake8==3.7.9->-r requirements-dev.txt (line 3))
Downloading https://files.pythonhosted.org/packages/0e/0c/04a353e104d2f324f8ee5f4b32012618c1c86dd79e52a433b64fceed511b/pycodestyle-2.5.0-py2.py3-none-any.whl (51kB)
100% |████████████████████████████████| 51kB 9.5MB/s
Requirement already satisfied: six in /usr/lib/python3.6/site-packages (from tox==3.0.0->-r requirements-dev.txt (line 4))
Collecting virtualenv>=1.11.2 (from tox==3.0.0->-r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/ab/9f/a0d49dcde93f27125f011f8ce60f86840bc69c95695ed8ed2d77adb2cb8c/virtualenv-20.7.2-py2.py3-none-any.whl (5.3MB)
100% |████████████████████████████████| 5.3MB 230kB/s
Collecting restructuredtext-lint>=0.7 (from doc8==0.8.1->-r requirements-dev.txt (line 6))
Downloading https://files.pythonhosted.org/packages/45/69/5e43d0e8c2ca903aaa2def7f755b97a3aedc5793630abbd004f2afc3b295/restructuredtext_lint-1.3.2.tar.gz
Requirement already satisfied: chardet in /usr/lib/python3.6/site-packages (from doc8==0.8.1->-r requirements-dev.txt (line 6))
Collecting docutils (from doc8==0.8.1->-r requirements-dev.txt (line 6))
Downloading https://files.pythonhosted.org/packages/4c/5e/6003a0d1f37725ec2ebd4046b657abb9372202655f96e76795dca8c0063c/docutils-0.17.1-py2.py3-none-any.whl (575kB)
100% |████████████████████████████████| 583kB 2.1MB/s
Collecting stevedore (from doc8==0.8.1->-r requirements-dev.txt (line 6))
Downloading https://files.pythonhosted.org/packages/b2/c5/036a9a6e220ea7406a36130e80cca33a3e6b98b5328cfdba4b46b2ed0786/stevedore-3.4.0-py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 10.0MB/s
Collecting astroid<2.4,>=2.3.0 (from pylint==2.4.4->-r requirements-dev.txt (line 8))
Downloading https://files.pythonhosted.org/packages/ad/ae/86734823047962e7b8c8529186a1ac4a7ca19aaf1aa0c7713c022ef593fd/astroid-2.3.3-py3-none-any.whl (205kB)
100% |████████████████████████████████| 215kB 5.7MB/s
Collecting isort<5,>=4.2.5 (from pylint==2.4.4->-r requirements-dev.txt (line 8))
Downloading https://files.pythonhosted.org/packages/e5/b0/c121fd1fa3419ea9bfd55c7f9c4fedfec5143208d8c7ad3ce3db6c623c21/isort-4.3.21-py2.py3-none-any.whl (42kB)
100% |████████████████████████████████| 51kB 11.6MB/s
Collecting snowballstemmer (from pydocstyle==2.0.0->-r requirements-dev.txt (line 14))
Downloading https://files.pythonhosted.org/packages/f6/6e/7e07970c90a57c21da92013c5ba47f8e9598c17e88cc35b008ca61225ed3/snowballstemmer-2.1.0-py2.py3-none-any.whl (93kB)
100% |████████████████████████████████| 102kB 11.1MB/s
Collecting attrs>=17.4.0 (from pytest==5.3.1->-r requirements-dev.txt (line 17))
Downloading https://files.pythonhosted.org/packages/20/a9/ba6f1cd1a1517ff022b35acd6a7e4246371dfab08b8e42b829b6d07913cc/attrs-21.2.0-py2.py3-none-any.whl (53kB)
100% |████████████████████████████████| 61kB 10.8MB/s
Collecting more-itertools>=4.0.0 (from pytest==5.3.1->-r requirements-dev.txt (line 17))
Downloading https://files.pythonhosted.org/packages/5d/64/8a2bce13c6a98d3625406ff6b7af9c4891fe3bd9b4bbab8299b387c96276/more_itertools-8.9.0-py3-none-any.whl (51kB)
100% |████████████████████████████████| 61kB 11.2MB/s
Collecting importlib-metadata>=0.12; python_version < "3.8" (from pytest==5.3.1->-r requirements-dev.txt (line 17))
Downloading https://files.pythonhosted.org/packages/71/c2/cb1855f0b2a0ae9ccc9b69f150a7aebd4a8d815bd951e74621c4154c52a8/importlib_metadata-4.8.1-py3-none-any.whl
Collecting packaging (from pytest==5.3.1->-r requirements-dev.txt (line 17))
Downloading https://files.pythonhosted.org/packages/3c/77/e2362b676dc5008d81be423070dd9577fa03be5da2ba1105811900fda546/packaging-21.0-py3-none-any.whl (40kB)
100% |████████████████████████████████| 40kB 9.7MB/s
Collecting wcwidth (from pytest==5.3.1->-r requirements-dev.txt (line 17))
Downloading https://files.pythonhosted.org/packages/59/7c/e39aca596badaf1b78e8f547c807b04dae603a433d3e7a7e04d67f2ef3e5/wcwidth-0.2.5-py2.py3-none-any.whl
Collecting pbr>=0.11 (from mock==2.0.0->-r requirements-dev.txt (line 21))
Downloading https://files.pythonhosted.org/packages/18/e0/1d4702dd81121d04a477c272d47ee5b6bc970d1a0990b11befa275c55cf2/pbr-5.6.0-py2.py3-none-any.whl (111kB)
100% |████████████████████████████████| 112kB 9.6MB/s
Requirement already satisfied: idna<2.8,>=2.5 in /usr/lib/python3.6/site-packages (from requests==2.20.0->-r requirements-dev.txt (line 22))
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/lib/python3.6/site-packages (from requests==2.20.0->-r requirements-dev.txt (line 22))
Collecting s3transfer<0.4.0,>=0.3.0 (from boto3==1.15.16->-r requirements-dev.txt (line 23))
Downloading https://files.pythonhosted.org/packages/00/89/0cb4e92c239e6425b9b0035227b8cdf9d3d098a5c9e95632c3815df63a09/s3transfer-0.3.7-py2.py3-none-any.whl (73kB)
100% |████████████████████████████████| 81kB 10.9MB/s
Collecting botocore<1.19.0,>=1.18.16 (from boto3==1.15.16->-r requirements-dev.txt (line 23))
Downloading https://files.pythonhosted.org/packages/2d/72/984ac8f33b5c8df5ff63f323a8724f65b4d0f8956968b942b77d35d3a1ef/botocore-1.18.18-py2.py3-none-any.whl (6.7MB)
100% |████████████████████████████████| 6.7MB 187kB/s
Collecting jmespath<1.0.0,>=0.7.1 (from boto3==1.15.16->-r requirements-dev.txt (line 23))
Downloading https://files.pythonhosted.org/packages/07/cb/5f001272b6faeb23c1c9e0acc04d48eaaf5c862c17709d20e3469c6e0139/jmespath-0.10.0-py2.py3-none-any.whl
Collecting typed-ast<1.5.0,>=1.4.0 (from mypy==0.812->-r requirements-dev.txt (line 30))
Downloading https://files.pythonhosted.org/packages/6e/08/c04a49ee26a94c1ec211e7b1e5f2971d692e04818ea67ef70f1e879cf525/typed_ast-1.4.3.tar.gz (210kB)
100% |████████████████████████████████| 215kB 5.4MB/s
Collecting typing-extensions>=3.7.4 (from mypy==0.812->-r requirements-dev.txt (line 30))
Downloading https://files.pythonhosted.org/packages/74/60/18783336cc7fcdd95dae91d73477830aa53f5d3181ae4fe20491d7fc3199/typing_extensions-3.10.0.2-py3-none-any.whl
Collecting babel!=2.0,>=1.3 (from Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/aa/96/4ba93c5f40459dc850d25f9ba93f869a623e77aaecc7a9344e19c01942cf/Babel-2.9.1-py2.py3-none-any.whl (8.8MB)
100% |████████████████████████████████| 8.8MB 141kB/s
Collecting alabaster<0.8,>=0.7 (from Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/10/ad/00b090d23a222943eb0eda509720a404f531a439e803f6538f35136cae9e/alabaster-0.7.12-py2.py3-none-any.whl
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Collecting sphinxcontrib-websupport (from Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/e9/e5/2a547830845e6e6e5d97b3246fc1e3ec74cba879c9adc5a8e27f1291bca3/sphinxcontrib_websupport-1.2.4-py2.py3-none-any.whl
Collecting Jinja2>=2.3 (from Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/80/21/ae597efc7ed8caaa43fb35062288baaf99a7d43ff0cf66452ddf47604ee6/Jinja2-3.0.1-py3-none-any.whl (133kB)
100% |████████████████████████████████| 143kB 8.0MB/s
Collecting imagesize (from Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/31/b2/b5522a0c8d11e4aff83f8342f3f0dea68c2fb25aa44403e420587f0ce204/imagesize-1.2.0-py2.py3-none-any.whl
Collecting backports.entry-points-selectable>=1.0.4 (from virtualenv>=1.11.2->tox==3.0.0->-r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/0c/cd/1e156227cad9f599524eb10af62a2362f872910a49402dbd2bea2dedc91c/backports.entry_points_selectable-1.1.0-py2.py3-none-any.whl
Collecting filelock<4,>=3.0.0 (from virtualenv>=1.11.2->tox==3.0.0->-r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/93/83/71a2ee6158bb9f39a90c0dea1637f81d5eef866e188e1971a1b1ab01a35a/filelock-3.0.12-py3-none-any.whl
Collecting importlib-resources>=1.0; python_version < "3.7" (from virtualenv>=1.11.2->tox==3.0.0->-r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/f2/6c/2f3b930513bb971172ffceb63cf4e910944e57451724e69b1dec97cfefa6/importlib_resources-5.2.2-py3-none-any.whl
Collecting distlib<1,>=0.3.1 (from virtualenv>=1.11.2->tox==3.0.0->-r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/87/26/f6a23dd3e578132cf924e0dd5d4e055af0cd4ab43e2a9f10b7568bfb39d9/distlib-0.3.2-py2.py3-none-any.whl (338kB)
100% |████████████████████████████████| 348kB 3.4MB/s
Collecting platformdirs<3,>=2 (from virtualenv>=1.11.2->tox==3.0.0->-r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/15/4d/23989bdcb80a095a4b92a54a1f568e95bfc9793c70707be623dc75c11257/platformdirs-2.3.0-py3-none-any.whl
Collecting wrapt==1.11.* (from astroid<2.4,>=2.3.0->pylint==2.4.4->-r requirements-dev.txt (line 8))
Downloading https://files.pythonhosted.org/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz
Collecting lazy-object-proxy==1.4.* (from astroid<2.4,>=2.3.0->pylint==2.4.4->-r requirements-dev.txt (line 8))
Downloading https://files.pythonhosted.org/packages/07/3f/a3d687f83c7d44970f70ff0400677746c8860b11f0c08f6b4e07205f0cdc/lazy-object-proxy-1.4.3.tar.gz
Collecting zipp>=0.5 (from importlib-metadata>=0.12; python_version < "3.8"->pytest==5.3.1->-r requirements-dev.txt (line 17))
Downloading https://files.pythonhosted.org/packages/92/d9/89f433969fb8dc5b9cbdd4b4deb587720ec1aeb59a020cf15002b9593eef/zipp-3.5.0-py3-none-any.whl
Collecting pyparsing>=2.0.2 (from packaging->pytest==5.3.1->-r requirements-dev.txt (line 17))
Downloading https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67kB)
100% |████████████████████████████████| 71kB 10.3MB/s
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/lib/python3.6/site-packages (from botocore<1.19.0,>=1.18.16->boto3==1.15.16->-r requirements-dev.txt (line 23))
Collecting pytz>=2015.7 (from babel!=2.0,>=1.3->Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90ca6/pytz-2021.1-py2.py3-none-any.whl (510kB)
100% |████████████████████████████████| 512kB 2.6MB/s
Collecting sphinxcontrib-serializinghtml (from sphinxcontrib-websupport->Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/c6/77/5464ec50dd0f1c1037e3c93249b040c8fc8078fdda97530eeb02424b6eea/sphinxcontrib_serializinghtml-1.1.5-py2.py3-none-any.whl (94kB)
100% |████████████████████████████████| 102kB 12.4MB/s
Collecting MarkupSafe>=2.0 (from Jinja2>=2.3->Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/bf/10/ff66fea6d1788c458663a84d88787bae15d45daa16f6b3ef33322a51fc7e/MarkupSafe-2.0.1.tar.gz
Installing collected packages: coverage, mccabe, entrypoints, pyflakes, pycodestyle, flake8, py, zipp, typing-extensions, importlib-metadata, backports.entry-points-selectable, filelock, importlib-resources, distlib, platformdirs, virtualenv, pluggy, tox, wheel, docutils, restructuredtext-lint, pygments, pbr, stevedore, doc8, typed-ast, wrapt, lazy-object-proxy, astroid, isort, pylint, attrs, more-itertools, pyparsing, packaging, wcwidth, pytest, pytest-cov, snowballstemmer, pydocstyle, mock, jmespath, botocore, s3transfer, boto3, websocket-client, hypothesis, mypy-extensions, mypy, pytz, babel, alabaster, sphinxcontrib-serializinghtml, sphinxcontrib-websupport, MarkupSafe, Jinja2, imagesize, Sphinx, guzzle-sphinx-theme
Running setup.py install for coverage ... done
Running setup.py install for restructuredtext-lint ... done
Running setup.py install for typed-ast ... done
Running setup.py install for wrapt ... done
Running setup.py install for lazy-object-proxy ... done
Running setup.py install for MarkupSafe ... done
Running setup.py install for guzzle-sphinx-theme ... done
Successfully installed Jinja2-3.0.1 MarkupSafe-2.0.1 Sphinx-1.7.9 alabaster-0.7.12 astroid-2.3.3 attrs-21.2.0 babel-2.9.1 backports.entry-points-selectable-1.1.0 boto3-1.15.16 botocore-1.18.18 coverage-4.5.4 distlib-0.3.2 doc8-0.8.1 docutils-0.17.1 entrypoints-0.3 filelock-3.0.12 flake8-3.7.9 guzzle-sphinx-theme-0.7.11 hypothesis-4.43.1 imagesize-1.2.0 importlib-metadata-4.8.1 importlib-resources-5.2.2 isort-4.3.21 jmespath-0.10.0 lazy-object-proxy-1.4.3 mccabe-0.6.1 mock-2.0.0 more-itertools-8.9.0 mypy-0.812 mypy-extensions-0.4.3 packaging-21.0 pbr-5.6.0 platformdirs-2.3.0 pluggy-0.12.0 py-1.10.0 pycodestyle-2.5.0 pydocstyle-2.0.0 pyflakes-2.1.1 pygments-2.7.4 pylint-2.4.4 pyparsing-2.4.7 pytest-5.3.1 pytest-cov-2.8.1 pytz-2021.1 restructuredtext-lint-1.3.2 s3transfer-0.3.7 snowballstemmer-2.1.0 sphinxcontrib-serializinghtml-1.1.5 sphinxcontrib-websupport-1.2.4 stevedore-3.4.0 tox-3.0.0 typed-ast-1.4.3 typing-extensions-3.10.0.2 virtualenv-20.7.2 wcwidth-0.2.5 websocket-client-0.54.0 wheel-0.26.0 wrapt-1.11.2 zipp-3.5.0
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Obtaining file:///root/chalice
Collecting click<8.0,>=7 (from chalice==1.22.4)
Downloading https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl (82kB)
100% |████████████████████████████████| 92kB 5.1MB/s
Requirement already satisfied: botocore<2.0.0,>=1.12.86 in /usr/local/lib/python3.6/site-packages (from chalice==1.22.4)
Requirement already satisfied: mypy-extensions==0.4.3 in /usr/local/lib/python3.6/site-packages (from chalice==1.22.4)
Requirement already satisfied: six<2.0.0,>=1.10.0 in /usr/lib/python3.6/site-packages (from chalice==1.22.4)
Requirement already satisfied: pip<21.2,>=9 in /usr/lib/python3.6/site-packages (from chalice==1.22.4)
Collecting attrs<20.4.0,>=19.3.0 (from chalice==1.22.4)
Downloading https://files.pythonhosted.org/packages/c3/aa/cb45262569fcc047bf070b5de61813724d6726db83259222cd7b4c79821a/attrs-20.3.0-py2.py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 7.3MB/s
Requirement already satisfied: jmespath<1.0.0,>=0.9.3 in /usr/local/lib/python3.6/site-packages (from chalice==1.22.4)
Collecting pyyaml<6.0.0,>=5.3.1 (from chalice==1.22.4)
Downloading https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz (175kB)
100% |████████████████████████████████| 184kB 4.8MB/s
Collecting inquirer<3.0.0,>=2.7.0 (from chalice==1.22.4)
Downloading https://files.pythonhosted.org/packages/60/10/450a7edfaea3d09a4a7062bd567178bfb66233bae3ee0042934910e180de/inquirer-2.7.0-py2.py3-none-any.whl
Requirement already satisfied: wheel in /usr/local/lib/python3.6/site-packages (from chalice==1.22.4)
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from chalice==1.22.4)
Collecting typing==3.6.4 (from chalice==1.22.4)
Downloading https://files.pythonhosted.org/packages/05/2b/2b05bf1d5a9dd450447c9a5df3e118a465e5d3cb12b73b7220a5064a403f/typing-3.6.4-py3-none-any.whl
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/lib/python3.6/site-packages (from botocore<2.0.0,>=1.12.86->chalice==1.22.4)
Requirement already satisfied: urllib3<1.26,>=1.20; python_version != "3.4" in /usr/lib/python3.6/site-packages (from botocore<2.0.0,>=1.12.86->chalice==1.22.4)
Collecting python-editor==1.0.4 (from inquirer<3.0.0,>=2.7.0->chalice==1.22.4)
Downloading https://files.pythonhosted.org/packages/c6/d3/201fc3abe391bbae6606e6f1d598c15d367033332bd54352b12f35513717/python_editor-1.0.4-py3-none-any.whl
Collecting readchar==2.0.1 (from inquirer<3.0.0,>=2.7.0->chalice==1.22.4)
Downloading https://files.pythonhosted.org/packages/ef/f3/50cc9199733bf91f3c140150752a6430d8b785f9d22a31dcae721edb0b9a/readchar-2.0.1-py3-none-any.whl
Collecting blessed==1.17.6 (from inquirer<3.0.0,>=2.7.0->chalice==1.22.4)
Downloading https://files.pythonhosted.org/packages/19/de/930a8ab1ccb9779d34305c8ae2a496ed35769b6bc8a1639975ed6f415992/blessed-1.17.6-py2.py3-none-any.whl (76kB)
100% |████████████████████████████████| 81kB 9.8MB/s
Requirement already satisfied: wcwidth>=0.1.4 in /usr/local/lib/python3.6/site-packages (from blessed==1.17.6->inquirer<3.0.0,>=2.7.0->chalice==1.22.4)
Building wheels for collected packages: pyyaml
Running setup.py bdist_wheel for pyyaml ... done
Stored in directory: /root/.cache/pip/wheels/2a/d4/92/cf299bdf4162957ca8126b46e913e29f76a4f17ca762c45028
Successfully built pyyaml
Installing collected packages: click, attrs, pyyaml, python-editor, readchar, blessed, inquirer, typing, chalice
Found existing installation: attrs 21.2.0
Uninstalling attrs-21.2.0:
Successfully uninstalled attrs-21.2.0
Running setup.py develop for chalice
Successfully installed attrs-20.3.0 blessed-1.17.6 chalice click-7.1.2 inquirer-2.7.0 python-editor-1.0.4 pyyaml-5.4.1 readchar-2.0.1 typing-3.6.4

FLAKE8

No unused imports, no undefined vars,

flake8 --ignore=E731,W503,W504 --exclude chalice/init.py,chalice/compat.py,chalice/vendored/botocore/regions.py --max-complexity 10 chalice/
flake8 --ignore=E731,W503,W504,F401 --max-complexity 10 chalice/compat.py
flake8 tests/unit/ tests/functional/ tests/integration tests/aws

Proper docstring conventions according to pep257

pydocstyle --add-ignore=D100,D101,D102,D103,D104,D105,D204,D301 --match='(?!(test_|regions)).*.py' chalice/

PYLINT

pylint --rcfile .pylintrc chalice --load-plugins tests.codelinter


Your code has been rated at 10.00/10

Run our custom linter on test code.

pylint --load-plugins tests.testlinter --disable=I,E,W,R,C,F --enable C9999,C9998 tests/


Your code has been rated at 10.00/10

py.test --cov chalice --cov-report term-missing tests/unit tests/functional tests/integration
========================================================================= test session starts ==========================================================================
platform linux -- Python 3.6.8, pytest-5.3.1, py-1.10.0, pluggy-0.12.0
rootdir: /root/chalice
plugins: cov-2.8.1, hypothesis-4.43.1
collected 1364 items

tests/unit/test_analyzer.py ................................................................. [ 4%]
tests/unit/test_app.py ......................................................................................................................................... [ 14%]
.................................................................................. [ 20%]
tests/unit/test_awsclient.py ...................... [ 22%]
tests/unit/test_config.py .................................................. [ 26%]
tests/unit/test_invoke.py ......... [ 26%]
tests/unit/test_local.py ............................................................................................. [ 33%]
tests/unit/test_logs.py ............... [ 34%]
tests/unit/test_package.py ............................................................................................. [ 41%]
tests/unit/test_pipeline.py ...................... [ 43%]
tests/unit/test_policy.py ........... [ 43%]
tests/unit/test_test.py ...................... [ 45%]
tests/unit/test_utils.py .................................... [ 48%]
tests/unit/cli/test_cli.py .. [ 48%]
tests/unit/cli/test_newproj.py .............. [ 49%]
tests/unit/cli/filewatch/test_eventbased.py sssssss [ 49%]
tests/unit/cli/filewatch/test_stat.py . [ 49%]
tests/unit/deploy/test_appgraph.py ........................... [ 51%]
tests/unit/deploy/test_deployer.py ......................................................... [ 56%]
tests/unit/deploy/test_executor.py ................................. [ 58%]
tests/unit/deploy/test_models.py ....... [ 59%]
tests/unit/deploy/test_packager.py .......................... [ 60%]
tests/unit/deploy/test_planner.py ..................................................................................................... [ 68%]
tests/unit/deploy/test_swagger.py ................................ [ 70%]
tests/unit/deploy/test_validate.py ........................... [ 72%]
tests/unit/vendored/botocore/test_regions.py ................... [ 74%]
tests/functional/test_awsclient.py ............................................................................................................................. [ 83%]
........................................................... [ 87%]
tests/functional/test_deployer.py .................... [ 89%]
tests/functional/test_local.py ........ [ 89%]
tests/functional/test_package.py ................................................ [ 93%]
tests/functional/test_utils.py ........ [ 93%]
tests/functional/api/test_package.py .... [ 93%]
tests/functional/cdk/test_construct.py sss [ 94%]
tests/functional/cli/test_cli.py ...................................... [ 96%]
tests/functional/cli/test_factory.py .............................. [ 99%]
tests/functional/cli/test_reloader.py s.s.s.s.s. [ 99%]
tests/integration/test_cli.py . [100%]

=========================================================================== warnings summary ===========================================================================
tests/unit/test_local.py::TestLocalBuiltinAuthorizers::test_can_understand_cognito_token
/root/chalice/chalice/local.py:355: UserWarning: CognitoUserPoolAuthorizer is not a supported in local mode. All requests made against a route will be authorized to allow local testing.
% authorizer.class.name

tests/unit/test_package.py::test_can_create_app_packager
/usr/lib/python3.6/site-packages/pip/pep425tags.py:260: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp

-- Docs: https://docs.pytest.org/en/latest/warnings.html

----------- coverage: platform linux, python 3.6.8-final-0 -----------
Name Stmts Miss Branch BrPart Cover Missing

chalice/init.py 3 0 0 0 100%
chalice/analyzer.py 344 15 118 14 93% 90, 136, 155, 179, 184, 280, 471, 554, 627-632, 657, 178->179, 277->280, 390->389, 418->417, 430->exit, 433->exit, 452->exit, 457->exit, 470->471, 589->exit, 602->608, 621->627, 653->657, 707->704
chalice/api/init.py 11 0 2 0 100%
chalice/app.py 1048 27 234 20 96% 35-52, 181, 201, 227, 276, 602, 632, 1033, 1364, 1517, 1532, 1538, 1582, 1771, 1900, 1905, 1918, 1935, 1944, 2028, 180->181, 272->276, 416->418, 435->440, 601->602, 628->632, 630->632, 958->960, 1032->1033, 1140->1139, 1531->1532, 1581->1582, 1640->1651, 1740->1739, 1899->1900, 1903->1905, 1917->1918, 1934->1935, 1943->1944, 2027->2028
chalice/awsclient.py 774 24 222 10 96% 246, 396, 940, 1021-1022, 1167-1187, 1596, 1598, 241->246, 326->329, 395->396, 482->484, 488->490, 672->678, 939->940, 1594->1596, 1597->1598, 1610->1609
chalice/cdk/init.py 6 6 0 0 0% 1-10
chalice/cdk/construct.py 59 59 10 0 0% 1-161
chalice/cli/init.py 321 25 44 6 91% 155, 330-335, 399-400, 456-470, 611, 638-642, 644-645, 44->46, 396->398, 398->399, 608->611, 637->638, 643->644
chalice/cli/factory.py 171 10 38 2 92% 99-108, 132, 171, 190, 214-216, 170->171, 287->289
chalice/cli/filewatch/init.py 18 0 2 0 100%
chalice/cli/filewatch/eventbased.py 24 21 2 0 12% 5-47
chalice/cli/filewatch/stat.py 68 0 22 1 99% 50->exit
chalice/cli/newproj.py 79 7 24 1 90% 86, 93, 162-170, 92->93
chalice/cli/reloader.py 54 21 6 2 58% 45-46, 55-56, 75-76, 83-93, 111-114, 61->63, 101->111
chalice/compat.py 44 24 12 3 41% 24-33, 47-111, 133-142, 22->24, 37->47, 126->133
chalice/config.py 182 5 56 4 95% 159, 164-166, 406, 158->159, 162->164, 230->228, 405->406
chalice/constants.py 26 0 0 0 100%
chalice/deploy/init.py 0 0 0 0 100%
chalice/deploy/appgraph.py 267 2 93 3 99% 308, 672, 123->86, 306->308, 671->672
chalice/deploy/deployer.py 312 3 62 6 98% 590, 593, 679, 440->exit, 472->478, 542->exit, 554->exit, 589->590, 592->593
chalice/deploy/executor.py 177 2 42 0 99% 22, 308
chalice/deploy/models.py 244 0 86 0 100%
chalice/deploy/packager.py 519 15 172 11 96% 144, 146-150, 161, 166, 240-241, 319-320, 364-366, 453, 141->144, 145->146, 160->161, 165->166, 238->240, 318->319, 363->364, 452->453, 488->486, 901->903, 903->905
chalice/deploy/planner.py 390 6 98 5 98% 122, 1216, 1305, 1353, 1368, 1386, 203->198, 310->313, 1215->1216, 1302->1305, 1384->1386
chalice/deploy/swagger.py 123 0 42 1 99% 96->99
chalice/deploy/sweeper.py 155 12 60 1 90% 89-96, 100-107, 332, 343, 43->exit
chalice/deploy/validate.py 128 2 85 3 98% 243, 259, 242->243, 244->241, 253->259
chalice/invoke.py 63 0 12 0 100%
chalice/local.py 355 0 78 4 99% 321->347, 385->384, 445->447, 505->507
chalice/logs.py 102 1 28 1 98% 148, 176->exit
chalice/package.py 532 4 130 2 99% 1225, 1229, 1395, 1399, 753->755, 1310->1314
chalice/pipeline.py 171 1 30 3 98% 154, 99->101, 151->154, 485->487
chalice/policy.py 101 3 30 5 94% 98, 159-161, 97->98, 108->117, 117->119, 119->121, 158->159
chalice/test.py 138 0 20 0 100%
chalice/utils.py 216 2 38 1 99% 220, 333, 219->220
chalice/vendored/init.py 0 0 0 0 100%
chalice/vendored/botocore/init.py 0 0 0 0 100%
chalice/vendored/botocore/regions.py 87 13 46 2 83% 99-102, 120-129, 173, 119->120, 171->173

TOTAL 7312 310 1944 111 95%

======================================================= 1349 passed, 15 skipped, 2 warnings in 106.80s (0:01:46) =======================================================

DOC8

Correct rst formatting for documentation

TODO: Remove doc8

doc8 docs/source --ignore-path docs/source/topics/multifile.rst
Scanning...
Validating...

Total files scanned = 40
Total files ignored = 1
Total accumulated errors = 0
Detailed error counts:
- doc8.checks.CheckCarriageReturn = 0
- doc8.checks.CheckIndentationNoTab = 0
- doc8.checks.CheckMaxLineLength = 0
- doc8.checks.CheckNewlineEndOfFile = 0
- doc8.checks.CheckTrailingWhitespace = 0
- doc8.checks.CheckValidity = 0

Verify we have no broken external links

as well as no undefined internal references.

make -C docs linkcheck
make[1]: Entering directory '/root/chalice/docs'
sphinx-build -b linkcheck -d build/doctrees -W source build/linkcheck
Running Sphinx v1.7.9
making output directory...
loading pickled environment... not yet created
building [mo]: targets for 0 po files that are out of date
building [linkcheck]: targets for 38 source files that are out of date
updating environment: 38 added, 0 changed, 0 removed
/usr/local/lib/python3.6/site-packages/sphinx/util/nodes.py:57: FutureWarning:
The iterable returned by Node.traverse()
will become an iterator instead of a list in Docutils > 0.16.
for classifier in reversed(node.parent.traverse(nodes.classifier)):
reading sources... [100%] upgrading
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [ 2%] api
(line 293) ok https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
(line 32) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 189) redirect https://docs.aws.amazon.com/AmazonCloudWatchEvents/latest/APIReference/API_PutRule.html#API_PutRule_RequestSyntax - with Found to https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutRule.html#API_PutRule_RequestSyntax
(line 639) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 257) redirect https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#supported-notification-event-types - with Found to https://docs.aws.amazon.com/AmazonS3/latest/userguide/NotificationHowTo.html#supported-notification-event-types
(line 1202) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1256) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1298) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1335) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1364) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1397) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1438) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1473) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1544) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1565) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 203) redirect https://amzn.to/2OlqZso - permanently to https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html
(line 343) ok https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
(line 1105) ok https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
(line 388) ok https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
writing output... [ 5%] faq
writing output... [ 7%] index
writing output... [ 10%] main
writing output... [ 13%] quickstart
(line 3) ok https://www.python.org/downloads/
(line 48) redirect http://boto3.readthedocs.io/en/latest/guide/configuration.html - with Found to https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html
writing output... [ 15%] samples/index
(line 4) ok https://github.com/aws/chalice/tree/master/docs/source/samples
writing output... [ 18%] samples/media-query/index
(line 118) ok https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
(line 152) ok https://chalice-workshop.readthedocs.io/en/latest/media-query/index.html
(line 50) ok https://chalice-workshop.readthedocs.io/en/latest/media-query/index.html
(line 152) ok https://github.com/aws-samples/chalice-workshop/tree/master/code/media-query/final/assets
(line 36) ok https://github.com/aws/chalice/tree/master/docs/source/samples/media-query/code/
writing output... [ 21%] samples/todo-app/index
(line 344) ok https://docs.python.org/3/library/hashlib.html#hashlib.pbkdf2_hmac
(line 306) ok https://boto3.amazonaws.com/v1/documentation/api/latest/reference/customizations/dynamodb.html#dynamodb-conditions
(line 24) ok https://chalice-workshop.readthedocs.io/en/latest/todo-app/index.html
(line 11) ok https://github.com/aws/chalice/tree/master/docs/source/samples/todo-app/code/
(line 334) ok https://jwt.io/
writing output... [ 23%] topics/authorizers
(line 25) ok https://docs.aws.amazon.com/IAM/latest/UserGuide/access_controlling.html
(line 114) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html
(line 49) ok https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html
(line 42) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/permissions.html
(line 70) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html
(line 222) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html
(line 235) ok https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html
(line 235) ok https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html
writing output... [ 26%] topics/blueprints
(line 14) redirect https://flask.palletsprojects.com/blueprints/ - with Found to https://flask.palletsprojects.com/en/2.0.x/blueprints/
writing output... [ 28%] topics/cd
(line 79) ok https://aws.amazon.com/codepipeline/
(line 76) ok https://aws.amazon.com/codecommit/
(line 40) ok https://aws.amazon.com/secrets-manager/
(line 82) ok https://aws.amazon.com/codebuild/
(line 35) ok https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html
(line 42) ok https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.phases.install.runtime-versions
(line 108) ok https://docs.aws.amazon.com/codebuild/latest/userguide/setting-up.html
(line 207) ok https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_create-basic-secret.html
(line 207) redirect https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token - permanently to https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token
writing output... [ 31%] topics/cfn
(line 4) redirect http://boto3.readthedocs.io/en/docs/ - with Found to https://boto3.amazonaws.com/v1/documentation/api/latest/index.html
(line 9) redirect https://github.com/awslabs/serverless-application-model - permanently to https://github.com/aws/serverless-application-model
writing output... [ 34%] topics/configfile
(line 206) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html
(line 261) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-gzip-compression-decompression.html
(line 242) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html
(line 157) ok https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
(line 47) redirect https://amzn.to/2LofApt - permanently to https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-endpoint-types.html
(line 457) ok https://docs.aws.amazon.com/apigatewayv2/latest/api-reference/domainnames-domainname-apimappings.html
(line 271) redirect https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html
(line 282) redirect https://docs.aws.amazon.com/lambda/latest/dg/vpc.html#vpc-configuring - with Found to https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html#vpc-configuring
writing output... [ 36%] topics/domainname
(line 9) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains-prerequisites.html
writing output... [ 39%] topics/events
(line 97) redirect https://amzn.to/2OlqZso - permanently to https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html
(line 262) ok https://docs.aws.amazon.com/cli/latest/reference/sqs/get-queue-attributes.html
(line 108) redirect https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html - with Found to https://docs.aws.amazon.com/AmazonS3/latest/userguide/NotificationHowTo.html
(line 326) redirect https://docs.aws.amazon.com/lambda/latest/dg/scaling.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html
(line 78) redirect https://amzn.to/2SCgWA6 - permanently to https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html
writing output... [ 42%] topics/experimental
(line 94) ok aws/chalice#1017
(line 98) ok aws/chalice#1019
(line 87) ok aws/chalice#651
(line 87) ok aws/chalice#1023
(line 94) ok aws/chalice#1041
writing output... [ 44%] topics/index
writing output... [ 47%] topics/logging
(line 4) ok https://docs.aws.amazon.com/lambda/latest/dg/python-logging.html
writing output... [ 50%] topics/middleware
(line 343) ok https://aws.amazon.com/blogs/developer/following-serverless-best-practices-with-aws-chalice-and-lambda-powertools/
(line 278) ok https://awslabs.github.io/aws-lambda-powertools-python/latest/core/tracer/
(line 273) ok https://awslabs.github.io/aws-lambda-powertools-python/latest/
(line 278) ok https://awslabs.github.io/aws-lambda-powertools-python/latest/core/logger/
writing output... [ 52%] topics/multifile
writing output... [ 55%] topics/packaging
(line 308) ok https://pypi.org/project/cryptography/1.9/
writing output... [ 57%] topics/purelambda
(line 20) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-programming-model-handler-types.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-handler.html
writing output... [ 60%] topics/pyversion
(line 4) ok https://docs.aws.amazon.com/lambda/latest/dg/lambda-python.html
writing output... [ 63%] topics/routing
(line 4) ok https://palletsprojects.com/p/flask/
(line 4) ok http://bottlepy.org/docs/dev/index.html
writing output... [ 65%] topics/sdks
(line 13) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-generate-sdk.html
writing output... [ 68%] topics/stages
writing output... [ 71%] topics/testing
(line 343) ok https://docs.pytest.org/en/stable/fixture.html
(line 248) ok https://botocore.amazonaws.com/v1/documentation/api/latest/reference/stubber.html
(line 34) ok https://docs.pytest.org/en/stable/
writing output... [ 73%] topics/tf
(line 4) redirect http://boto3.readthedocs.io/en/docs/ - with Found to https://boto3.amazonaws.com/v1/documentation/api/latest/index.html
(line 10) ok https://www.terraform.io
writing output... [ 76%] topics/views
writing output... [ 78%] topics/websockets
writing output... [ 81%] tutorials/basicrestapi
writing output... [ 84%] tutorials/cdk
(line 4) ok https://aws.amazon.com/cdk/
(line 201) ok https://httpie.io/
(line 22) ok https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html#getting_started_prerequisites
writing output... [ 86%] tutorials/customdomain
(line 224) ok https://aws.github.io/chalice/topics/configfile.html#api-gateway-custom-domain
(line 156) redirect https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html - permanently to https://docs.aws.amazon.com/acm/latest/userguide/email-validation.html
(line 156) redirect https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html - permanently to https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html
writing output... [ 89%] tutorials/events
(line 35) ok https://aws.amazon.com/sns/
writing output... [ 92%] tutorials/index
writing output... [ 94%] tutorials/wschat
writing output... [ 97%] tutorials/wsecho
writing output... [100%] upgrading
(line 4) ok https://github.com/aws/chalice/blob/master/CHANGELOG.rst
(line 209) ok aws/chalice#348
(line 15) ok aws/chalice#604
(line 15) ok aws/chalice#604

build succeeded.

Look for any errors in the above output or in build/linkcheck/output.txt

Link check complete; look for any errors in the above output or in build/linkcheck/output.txt.
make[1]: Leaving directory '/root/chalice/docs'

Verify we can build the docs. The

treat warnings as errors flag is enabled

so any sphinx-build warnings will fail the build.

make -C docs html
make[1]: Entering directory '/root/chalice/docs'
sphinx-build -b html -d build/doctrees -W source build/html
Running Sphinx v1.7.9
making output directory...
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 38 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
writing output... [100%] upgrading
generating indices... genindex
writing additional pages... search
copying images... [100%] topics/../img/auto-layer.png
copying static files... done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded.

The HTML pages are in build/html.

Build finished. The HTML pages are in build/html.
make[1]: Leaving directory '/root/chalice/docs'
mypy --py2 --ignore-missing-imports --follow-imports=skip -p chalice --disallow-untyped-defs --strict-optional --warn-no-return
Success: no issues found in 38 source files
make Success for python 3.6 environment
/usr/local/bin/cdk -> /usr/local/lib/node_modules/aws-cdk/bin/cdk

[email protected] postinstall /usr/local/lib/node_modules/aws-cdk/node_modules/cdk-assets/node_modules/aws-sdk
node scripts/check-node-version.js

[email protected] postinstall /usr/local/lib/node_modules/aws-cdk/node_modules/aws-sdk
node scripts/check-node-version.js

tests/functional/cdk/test_construct.py ..X [100%]

=========================================================================== warnings summary ===========================================================================
tests/functional/cdk/test_construct.py::test_cdk_construct_api
/usr/lib/python3.6/site-packages/pip/pep425tags.py:260: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=============================================================== 2 passed, 1 xpassed, 1 warning in 31.63s ===============================================================
cdktests Test Success

Test 3

sh chalice_ubi_8.3.sh 1.21.8

Cloning into 'chalice'...
remote: Enumerating objects: 14042, done.
remote: Counting objects: 100% (985/985), done.
remote: Compressing objects: 100% (478/478), done.
remote: Total 14042 (delta 601), reused 839 (delta 496), pack-reused 13057
Receiving objects: 100% (14042/14042), 8.46 MiB | 17.54 MiB/s, done.
Resolving deltas: 100% (9955/9955), done.
Note: switching to '1.21.8'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at cfe8a27 Bumping version to 1.21.8
found to checkout
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Collecting pytest
Downloading https://files.pythonhosted.org/packages/40/76/86f886e750b81a4357b6ed606b2bcf0ce6d6c27ad3c09ebf63ed674fc86e/pytest-6.2.5-py3-none-any.whl (280kB)
100% |████████████████████████████████| 286kB 3.7MB/s
Collecting py>=1.8.2 (from pytest)
Downloading https://files.pythonhosted.org/packages/67/32/6fe01cfc3d1a27c92fdbcdfc3f67856da8cbadf0dd9f2e18055202b2dc62/py-1.10.0-py2.py3-none-any.whl (97kB)
100% |████████████████████████████████| 102kB 10.3MB/s
Collecting iniconfig (from pytest)
Downloading https://files.pythonhosted.org/packages/9b/dd/b3c12c6d707058fa947864b67f0c4e0c39ef8610988d7baea9578f3c48f3/iniconfig-1.1.1-py2.py3-none-any.whl
Collecting importlib-metadata>=0.12; python_version < "3.8" (from pytest)
Downloading https://files.pythonhosted.org/packages/71/c2/cb1855f0b2a0ae9ccc9b69f150a7aebd4a8d815bd951e74621c4154c52a8/importlib_metadata-4.8.1-py3-none-any.whl
Collecting packaging (from pytest)
Downloading https://files.pythonhosted.org/packages/3c/77/e2362b676dc5008d81be423070dd9577fa03be5da2ba1105811900fda546/packaging-21.0-py3-none-any.whl (40kB)
100% |████████████████████████████████| 40kB 9.5MB/s
Collecting toml (from pytest)
Downloading https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl
Collecting attrs>=19.2.0 (from pytest)
Downloading https://files.pythonhosted.org/packages/20/a9/ba6f1cd1a1517ff022b35acd6a7e4246371dfab08b8e42b829b6d07913cc/attrs-21.2.0-py2.py3-none-any.whl (53kB)
100% |████████████████████████████████| 61kB 10.8MB/s
Collecting pluggy<2.0,>=0.12 (from pytest)
Downloading https://files.pythonhosted.org/packages/9e/01/f38e2ff29715251cf25532b9082a1589ab7e4f571ced434f98d0139336dc/pluggy-1.0.0-py2.py3-none-any.whl
Collecting typing-extensions>=3.6.4; python_version < "3.8" (from importlib-metadata>=0.12; python_version < "3.8"->pytest)
Downloading https://files.pythonhosted.org/packages/74/60/18783336cc7fcdd95dae91d73477830aa53f5d3181ae4fe20491d7fc3199/typing_extensions-3.10.0.2-py3-none-any.whl
Collecting zipp>=0.5 (from importlib-metadata>=0.12; python_version < "3.8"->pytest)
Downloading https://files.pythonhosted.org/packages/92/d9/89f433969fb8dc5b9cbdd4b4deb587720ec1aeb59a020cf15002b9593eef/zipp-3.5.0-py3-none-any.whl
Collecting pyparsing>=2.0.2 (from packaging->pytest)
Downloading https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67kB)
100% |████████████████████████████████| 71kB 10.3MB/s
Installing collected packages: py, iniconfig, typing-extensions, zipp, importlib-metadata, pyparsing, packaging, toml, attrs, pluggy, pytest
Successfully installed attrs-21.2.0 importlib-metadata-4.8.1 iniconfig-1.1.1 packaging-21.0 pluggy-1.0.0 py-1.10.0 pyparsing-2.4.7 pytest-6.2.5 toml-0.10.2 typing-extensions-3.10.0.2 zipp-3.5.0
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Ignoring pylint: markers 'python_version <= "2.7"' don't match your environment
Ignoring astroid: markers 'python_version <= "2.7"' don't match your environment
Ignoring pytest: markers 'python_version <= "2.7"' don't match your environment
Collecting coverage==4.5.4 (from -r requirements-dev.txt (line 2))
Downloading https://files.pythonhosted.org/packages/85/d5/818d0e603685c4a613d56f065a721013e942088047ff1027a632948bdae6/coverage-4.5.4.tar.gz (385kB)
100% |████████████████████████████████| 389kB 3.0MB/s
Collecting flake8==3.7.9 (from -r requirements-dev.txt (line 3))
Downloading https://files.pythonhosted.org/packages/f8/1f/7ea40d1e4146ea55dbab41cda1376db092a75794914169aabd7e8d7a7def/flake8-3.7.9-py2.py3-none-any.whl (69kB)
100% |████████████████████████████████| 71kB 9.3MB/s
Collecting tox==3.0.0 (from -r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/e6/41/4dcfd713282bf3213b0384320fa8841e4db032ddcb80bc08a540159d42a8/tox-3.0.0-py2.py3-none-any.whl (60kB)
100% |████████████████████████████████| 61kB 9.0MB/s
Collecting wheel==0.26.0 (from -r requirements-dev.txt (line 5))
Downloading https://files.pythonhosted.org/packages/d9/6f/cfb45d489703e4843b30c28e01ab39c87b0648bfa11a6c4a959f426fe217/wheel-0.26.0-py2.py3-none-any.whl (63kB)
100% |████████████████████████████████| 71kB 10.2MB/s
Collecting doc8==0.8.1 (from -r requirements-dev.txt (line 6))
Downloading https://files.pythonhosted.org/packages/e8/ec/1ec961cbe5f626c2f990b7491b4c2b06d7e6318e8e2daa37f4f51bcb6bdc/doc8-0.8.1-py2.py3-none-any.whl
Collecting pylint==2.4.4 (from -r requirements-dev.txt (line 8))
Downloading https://files.pythonhosted.org/packages/e9/59/43fc36c5ee316bb9aeb7cf5329cdbdca89e5749c34d5602753827c0aa2dc/pylint-2.4.4-py3-none-any.whl (302kB)
100% |████████████████████████████████| 307kB 3.7MB/s
Collecting pytest-cov==2.8.1 (from -r requirements-dev.txt (line 13))
Downloading https://files.pythonhosted.org/packages/b9/54/3673ee8be482f81527678ac894276223b9814bb7262e4f730469bb7bf70e/pytest_cov-2.8.1-py2.py3-none-any.whl
Collecting pydocstyle==2.0.0 (from -r requirements-dev.txt (line 14))
Downloading https://files.pythonhosted.org/packages/5c/ca/0849f5a833575eb43c57dc5a40ca825615b234d161cc69bc9ce5867d7169/pydocstyle-2.0.0-py2.py3-none-any.whl
Collecting pytest==5.3.1 (from -r requirements-dev.txt (line 17))
Downloading https://files.pythonhosted.org/packages/da/ed/d22d7f06eb1107271694ed2171b9d52e8eea38d9757124e75ba13324ac77/pytest-5.3.1-py3-none-any.whl (233kB)
100% |████████████████████████████████| 235kB 4.8MB/s
Collecting py==1.5.3 (from -r requirements-dev.txt (line 19))
Downloading https://files.pythonhosted.org/packages/67/a5/f77982214dd4c8fd104b066f249adea2c49e25e8703d284382eb5e9ab35a/py-1.5.3-py2.py3-none-any.whl (84kB)
100% |████████████████████████████████| 92kB 10.7MB/s
Collecting pygments==2.1.3 (from -r requirements-dev.txt (line 20))
Downloading https://files.pythonhosted.org/packages/9e/d0/d692085518c6a2dc875fe421c866fb6a08e0d9796ca507803c1e545fa116/Pygments-2.1.3-py2.py3-none-any.whl (755kB)
100% |████████████████████████████████| 757kB 1.6MB/s
Collecting mock==2.0.0 (from -r requirements-dev.txt (line 21))
Downloading https://files.pythonhosted.org/packages/e6/35/f187bdf23be87092bd0f1200d43d23076cee4d0dec109f195173fd3ebc79/mock-2.0.0-py2.py3-none-any.whl (56kB)
100% |████████████████████████████████| 61kB 10.2MB/s
Requirement already satisfied: requests==2.20.0 in /usr/lib/python3.6/site-packages (from -r requirements-dev.txt (line 22))
Collecting boto3==1.15.16 (from -r requirements-dev.txt (line 23))
Downloading https://files.pythonhosted.org/packages/3f/87/31810f044f2dd2101f2ecd85c5539bbddef4cff47df39eb0be895cc23af4/boto3-1.15.16-py2.py3-none-any.whl (129kB)
100% |████████████████████████████████| 133kB 8.8MB/s
Collecting websocket-client==0.54.0 (from -r requirements-dev.txt (line 24))
Downloading https://files.pythonhosted.org/packages/26/2d/f749a5c82f6192d77ed061a38e02001afcba55fe8477336d26a950ab17ce/websocket_client-0.54.0-py2.py3-none-any.whl (200kB)
100% |████████████████████████████████| 204kB 5.7MB/s
Collecting hypothesis==4.43.1 (from -r requirements-dev.txt (line 25))
Downloading https://files.pythonhosted.org/packages/e7/76/7df700b8e3e5c48c01a161ddfea3211d18c7e5bbc5eac18f7b7f2d99d003/hypothesis-4.43.1-py3-none-any.whl (278kB)
100% |████████████████████████████████| 286kB 4.2MB/s
Collecting pluggy==0.12 (from -r requirements-dev.txt (line 28))
Downloading https://files.pythonhosted.org/packages/06/ee/de89e0582276e3551df3110088bf20844de2b0e7df2748406876cc78e021/pluggy-0.12.0-py2.py3-none-any.whl
Collecting mypy==0.740 (from -r requirements-dev.txt (line 30))
Downloading https://files.pythonhosted.org/packages/f8/11/9b81379e84b066ee6f1b906b00a35220f15e0fcd87307c50768382d9e831/mypy-0.740-py3-none-any.whl (1.7MB)
100% |████████████████████████████████| 1.7MB 744kB/s
Collecting mypy-extensions==0.4.3 (from -r requirements-dev.txt (line 31))
Downloading https://files.pythonhosted.org/packages/5c/eb/975c7c080f3223a5cdaff09612f3a5221e4ba534f7039db34c35d95fa6a5/mypy_extensions-0.4.3-py2.py3-none-any.whl
Collecting Sphinx==1.7.9 (from -r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/90/f9/a0babe32c78480994e4f1b93315558f5ed756104054a7029c672a8d77b72/Sphinx-1.7.9-py2.py3-none-any.whl (1.9MB)
100% |████████████████████████████████| 1.9MB 640kB/s
Collecting guzzle_sphinx_theme<0.8,>=0.7.10 (from -r requirements-docs.txt (line 2))
Downloading https://files.pythonhosted.org/packages/f4/7d/aed8cd5e4ca52bb8550d2c33fcbb8d6dbd5c2cf5e1694202d2135b374eba/guzzle_sphinx_theme-0.7.11.tar.gz (2.5MB)
100% |████████████████████████████████| 2.5MB 483kB/s
Collecting mccabe<0.7.0,>=0.6.0 (from flake8==3.7.9->-r requirements-dev.txt (line 3))
Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting pycodestyle<2.6.0,>=2.5.0 (from flake8==3.7.9->-r requirements-dev.txt (line 3))
Downloading https://files.pythonhosted.org/packages/0e/0c/04a353e104d2f324f8ee5f4b32012618c1c86dd79e52a433b64fceed511b/pycodestyle-2.5.0-py2.py3-none-any.whl (51kB)
100% |████████████████████████████████| 51kB 9.4MB/s
Collecting pyflakes<2.2.0,>=2.1.0 (from flake8==3.7.9->-r requirements-dev.txt (line 3))
Downloading https://files.pythonhosted.org/packages/84/f2/ed0ffb887f8138a8fe5a621b8c0bb9598bfb3989e029f6c6a85ee66628ee/pyflakes-2.1.1-py2.py3-none-any.whl (59kB)
100% |████████████████████████████████| 61kB 9.9MB/s
Collecting entrypoints<0.4.0,>=0.3.0 (from flake8==3.7.9->-r requirements-dev.txt (line 3))
Downloading https://files.pythonhosted.org/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl
Collecting virtualenv>=1.11.2 (from tox==3.0.0->-r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/ab/9f/a0d49dcde93f27125f011f8ce60f86840bc69c95695ed8ed2d77adb2cb8c/virtualenv-20.7.2-py2.py3-none-any.whl (5.3MB)
100% |████████████████████████████████| 5.3MB 235kB/s
Requirement already satisfied: six in /usr/lib/python3.6/site-packages (from tox==3.0.0->-r requirements-dev.txt (line 4))
Collecting docutils (from doc8==0.8.1->-r requirements-dev.txt (line 6))
Downloading https://files.pythonhosted.org/packages/4c/5e/6003a0d1f37725ec2ebd4046b657abb9372202655f96e76795dca8c0063c/docutils-0.17.1-py2.py3-none-any.whl (575kB)
100% |████████████████████████████████| 583kB 2.2MB/s
Collecting stevedore (from doc8==0.8.1->-r requirements-dev.txt (line 6))
Downloading https://files.pythonhosted.org/packages/b2/c5/036a9a6e220ea7406a36130e80cca33a3e6b98b5328cfdba4b46b2ed0786/stevedore-3.4.0-py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 10.2MB/s
Requirement already satisfied: chardet in /usr/lib/python3.6/site-packages (from doc8==0.8.1->-r requirements-dev.txt (line 6))
Collecting restructuredtext-lint>=0.7 (from doc8==0.8.1->-r requirements-dev.txt (line 6))
Downloading https://files.pythonhosted.org/packages/45/69/5e43d0e8c2ca903aaa2def7f755b97a3aedc5793630abbd004f2afc3b295/restructuredtext_lint-1.3.2.tar.gz
Collecting astroid<2.4,>=2.3.0 (from pylint==2.4.4->-r requirements-dev.txt (line 8))
Downloading https://files.pythonhosted.org/packages/ad/ae/86734823047962e7b8c8529186a1ac4a7ca19aaf1aa0c7713c022ef593fd/astroid-2.3.3-py3-none-any.whl (205kB)
100% |████████████████████████████████| 215kB 5.6MB/s
Collecting isort<5,>=4.2.5 (from pylint==2.4.4->-r requirements-dev.txt (line 8))
Downloading https://files.pythonhosted.org/packages/e5/b0/c121fd1fa3419ea9bfd55c7f9c4fedfec5143208d8c7ad3ce3db6c623c21/isort-4.3.21-py2.py3-none-any.whl (42kB)
100% |████████████████████████████████| 51kB 11.6MB/s
Collecting snowballstemmer (from pydocstyle==2.0.0->-r requirements-dev.txt (line 14))
Downloading https://files.pythonhosted.org/packages/f6/6e/7e07970c90a57c21da92013c5ba47f8e9598c17e88cc35b008ca61225ed3/snowballstemmer-2.1.0-py2.py3-none-any.whl (93kB)
100% |████████████████████████████████| 102kB 11.3MB/s
Requirement already satisfied: attrs>=17.4.0 in /usr/local/lib/python3.6/site-packages (from pytest==5.3.1->-r requirements-dev.txt (line 17))
Requirement already satisfied: packaging in /usr/local/lib/python3.6/site-packages (from pytest==5.3.1->-r requirements-dev.txt (line 17))
Requirement already satisfied: importlib-metadata>=0.12; python_version < "3.8" in /usr/local/lib/python3.6/site-packages (from pytest==5.3.1->-r requirements-dev.txt (line 17))
Collecting wcwidth (from pytest==5.3.1->-r requirements-dev.txt (line 17))
Downloading https://files.pythonhosted.org/packages/59/7c/e39aca596badaf1b78e8f547c807b04dae603a433d3e7a7e04d67f2ef3e5/wcwidth-0.2.5-py2.py3-none-any.whl
Collecting more-itertools>=4.0.0 (from pytest==5.3.1->-r requirements-dev.txt (line 17))
Downloading https://files.pythonhosted.org/packages/5d/64/8a2bce13c6a98d3625406ff6b7af9c4891fe3bd9b4bbab8299b387c96276/more_itertools-8.9.0-py3-none-any.whl (51kB)
100% |████████████████████████████████| 61kB 11.4MB/s
Collecting pbr>=0.11 (from mock==2.0.0->-r requirements-dev.txt (line 21))
Downloading https://files.pythonhosted.org/packages/18/e0/1d4702dd81121d04a477c272d47ee5b6bc970d1a0990b11befa275c55cf2/pbr-5.6.0-py2.py3-none-any.whl (111kB)
100% |████████████████████████████████| 112kB 8.5MB/s
Requirement already satisfied: idna<2.8,>=2.5 in /usr/lib/python3.6/site-packages (from requests==2.20.0->-r requirements-dev.txt (line 22))
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/lib/python3.6/site-packages (from requests==2.20.0->-r requirements-dev.txt (line 22))
Collecting jmespath<1.0.0,>=0.7.1 (from boto3==1.15.16->-r requirements-dev.txt (line 23))
Downloading https://files.pythonhosted.org/packages/07/cb/5f001272b6faeb23c1c9e0acc04d48eaaf5c862c17709d20e3469c6e0139/jmespath-0.10.0-py2.py3-none-any.whl
Collecting s3transfer<0.4.0,>=0.3.0 (from boto3==1.15.16->-r requirements-dev.txt (line 23))
Downloading https://files.pythonhosted.org/packages/00/89/0cb4e92c239e6425b9b0035227b8cdf9d3d098a5c9e95632c3815df63a09/s3transfer-0.3.7-py2.py3-none-any.whl (73kB)
100% |████████████████████████████████| 81kB 10.7MB/s
Collecting botocore<1.19.0,>=1.18.16 (from boto3==1.15.16->-r requirements-dev.txt (line 23))
Downloading https://files.pythonhosted.org/packages/2d/72/984ac8f33b5c8df5ff63f323a8724f65b4d0f8956968b942b77d35d3a1ef/botocore-1.18.18-py2.py3-none-any.whl (6.7MB)
100% |████████████████████████████████| 6.7MB 186kB/s
Requirement already satisfied: typing-extensions>=3.7.4 in /usr/local/lib/python3.6/site-packages (from mypy==0.740->-r requirements-dev.txt (line 30))
Collecting typed-ast<1.5.0,>=1.4.0 (from mypy==0.740->-r requirements-dev.txt (line 30))
Downloading https://files.pythonhosted.org/packages/6e/08/c04a49ee26a94c1ec211e7b1e5f2971d692e04818ea67ef70f1e879cf525/typed_ast-1.4.3.tar.gz (210kB)
100% |████████████████████████████████| 215kB 5.5MB/s
Collecting alabaster<0.8,>=0.7 (from Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/10/ad/00b090d23a222943eb0eda509720a404f531a439e803f6538f35136cae9e/alabaster-0.7.12-py2.py3-none-any.whl
Collecting Jinja2>=2.3 (from Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/80/21/ae597efc7ed8caaa43fb35062288baaf99a7d43ff0cf66452ddf47604ee6/Jinja2-3.0.1-py3-none-any.whl (133kB)
100% |████████████████████████████████| 143kB 8.1MB/s
Collecting imagesize (from Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/31/b2/b5522a0c8d11e4aff83f8342f3f0dea68c2fb25aa44403e420587f0ce204/imagesize-1.2.0-py2.py3-none-any.whl
Collecting babel!=2.0,>=1.3 (from Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/aa/96/4ba93c5f40459dc850d25f9ba93f869a623e77aaecc7a9344e19c01942cf/Babel-2.9.1-py2.py3-none-any.whl (8.8MB)
100% |████████████████████████████████| 8.8MB 141kB/s
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Collecting sphinxcontrib-websupport (from Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/e9/e5/2a547830845e6e6e5d97b3246fc1e3ec74cba879c9adc5a8e27f1291bca3/sphinxcontrib_websupport-1.2.4-py2.py3-none-any.whl
Collecting distlib<1,>=0.3.1 (from virtualenv>=1.11.2->tox==3.0.0->-r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/87/26/f6a23dd3e578132cf924e0dd5d4e055af0cd4ab43e2a9f10b7568bfb39d9/distlib-0.3.2-py2.py3-none-any.whl (338kB)
100% |████████████████████████████████| 348kB 3.5MB/s
Collecting importlib-resources>=1.0; python_version < "3.7" (from virtualenv>=1.11.2->tox==3.0.0->-r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/f2/6c/2f3b930513bb971172ffceb63cf4e910944e57451724e69b1dec97cfefa6/importlib_resources-5.2.2-py3-none-any.whl
Collecting backports.entry-points-selectable>=1.0.4 (from virtualenv>=1.11.2->tox==3.0.0->-r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/0c/cd/1e156227cad9f599524eb10af62a2362f872910a49402dbd2bea2dedc91c/backports.entry_points_selectable-1.1.0-py2.py3-none-any.whl
Collecting filelock<4,>=3.0.0 (from virtualenv>=1.11.2->tox==3.0.0->-r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/93/83/71a2ee6158bb9f39a90c0dea1637f81d5eef866e188e1971a1b1ab01a35a/filelock-3.0.12-py3-none-any.whl
Collecting platformdirs<3,>=2 (from virtualenv>=1.11.2->tox==3.0.0->-r requirements-dev.txt (line 4))
Downloading https://files.pythonhosted.org/packages/15/4d/23989bdcb80a095a4b92a54a1f568e95bfc9793c70707be623dc75c11257/platformdirs-2.3.0-py3-none-any.whl
Collecting lazy-object-proxy==1.4.* (from astroid<2.4,>=2.3.0->pylint==2.4.4->-r requirements-dev.txt (line 8))
Downloading https://files.pythonhosted.org/packages/07/3f/a3d687f83c7d44970f70ff0400677746c8860b11f0c08f6b4e07205f0cdc/lazy-object-proxy-1.4.3.tar.gz
Collecting wrapt==1.11.* (from astroid<2.4,>=2.3.0->pylint==2.4.4->-r requirements-dev.txt (line 8))
Downloading https://files.pythonhosted.org/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz
Requirement already satisfied: pyparsing>=2.0.2 in /usr/local/lib/python3.6/site-packages (from packaging->pytest==5.3.1->-r requirements-dev.txt (line 17))
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.6/site-packages (from importlib-metadata>=0.12; python_version < "3.8"->pytest==5.3.1->-r requirements-dev.txt (line 17))
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/lib/python3.6/site-packages (from botocore<1.19.0,>=1.18.16->boto3==1.15.16->-r requirements-dev.txt (line 23))
Collecting MarkupSafe>=2.0 (from Jinja2>=2.3->Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/bf/10/ff66fea6d1788c458663a84d88787bae15d45daa16f6b3ef33322a51fc7e/MarkupSafe-2.0.1.tar.gz
Collecting pytz>=2015.7 (from babel!=2.0,>=1.3->Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90ca6/pytz-2021.1-py2.py3-none-any.whl (510kB)
100% |████████████████████████████████| 512kB 2.4MB/s
Collecting sphinxcontrib-serializinghtml (from sphinxcontrib-websupport->Sphinx==1.7.9->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/c6/77/5464ec50dd0f1c1037e3c93249b040c8fc8078fdda97530eeb02424b6eea/sphinxcontrib_serializinghtml-1.1.5-py2.py3-none-any.whl (94kB)
100% |████████████████████████████████| 102kB 11.0MB/s
Installing collected packages: coverage, mccabe, pycodestyle, pyflakes, entrypoints, flake8, distlib, importlib-resources, backports.entry-points-selectable, filelock, platformdirs, virtualenv, pluggy, py, tox, wheel, docutils, pbr, stevedore, pygments, restructuredtext-lint, doc8, lazy-object-proxy, typed-ast, wrapt, astroid, isort, pylint, wcwidth, more-itertools, pytest, pytest-cov, snowballstemmer, pydocstyle, mock, jmespath, botocore, s3transfer, boto3, websocket-client, hypothesis, mypy-extensions, mypy, alabaster, MarkupSafe, Jinja2, imagesize, pytz, babel, sphinxcontrib-serializinghtml, sphinxcontrib-websupport, Sphinx, guzzle-sphinx-theme
Running setup.py install for coverage ... done
Found existing installation: pluggy 1.0.0
Uninstalling pluggy-1.0.0:
Successfully uninstalled pluggy-1.0.0
Found existing installation: py 1.10.0
Uninstalling py-1.10.0:
Successfully uninstalled py-1.10.0
Running setup.py install for restructuredtext-lint ... done
Running setup.py install for lazy-object-proxy ... done
Running setup.py install for typed-ast ... done
Running setup.py install for wrapt ... done
Found existing installation: pytest 6.2.5
Uninstalling pytest-6.2.5:
Successfully uninstalled pytest-6.2.5
Running setup.py install for MarkupSafe ... done
Running setup.py install for guzzle-sphinx-theme ... done
Successfully installed Jinja2-3.0.1 MarkupSafe-2.0.1 Sphinx-1.7.9 alabaster-0.7.12 astroid-2.3.3 babel-2.9.1 backports.entry-points-selectable-1.1.0 boto3-1.15.16 botocore-1.18.18 coverage-4.5.4 distlib-0.3.2 doc8-0.8.1 docutils-0.17.1 entrypoints-0.3 filelock-3.0.12 flake8-3.7.9 guzzle-sphinx-theme-0.7.11 hypothesis-4.43.1 imagesize-1.2.0 importlib-resources-5.2.2 isort-4.3.21 jmespath-0.10.0 lazy-object-proxy-1.4.3 mccabe-0.6.1 mock-2.0.0 more-itertools-8.9.0 mypy-0.740 mypy-extensions-0.4.3 pbr-5.6.0 platformdirs-2.3.0 pluggy-0.12.0 py-1.5.3 pycodestyle-2.5.0 pydocstyle-2.0.0 pyflakes-2.1.1 pygments-2.1.3 pylint-2.4.4 pytest-5.3.1 pytest-cov-2.8.1 pytz-2021.1 restructuredtext-lint-1.3.2 s3transfer-0.3.7 snowballstemmer-2.1.0 sphinxcontrib-serializinghtml-1.1.5 sphinxcontrib-websupport-1.2.4 stevedore-3.4.0 tox-3.0.0 typed-ast-1.4.3 virtualenv-20.7.2 wcwidth-0.2.5 websocket-client-0.54.0 wheel-0.26.0 wrapt-1.11.2
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Obtaining file:///root/chalice
Collecting click<8.0,>=7 (from chalice==1.21.8)
Downloading https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl (82kB)
100% |████████████████████████████████| 92kB 5.2MB/s
Requirement already satisfied: botocore<2.0.0,>=1.12.86 in /usr/local/lib/python3.6/site-packages (from chalice==1.21.8)
Requirement already satisfied: mypy-extensions==0.4.3 in /usr/local/lib/python3.6/site-packages (from chalice==1.21.8)
Requirement already satisfied: six<2.0.0,>=1.10.0 in /usr/lib/python3.6/site-packages (from chalice==1.21.8)
Requirement already satisfied: pip<20.4,>=9 in /usr/lib/python3.6/site-packages (from chalice==1.21.8)
Collecting attrs<20.3.0,>=19.3.0 (from chalice==1.21.8)
Downloading https://files.pythonhosted.org/packages/14/df/479736ae1ef59842f512548bacefad1abed705e400212acba43f9b0fa556/attrs-20.2.0-py2.py3-none-any.whl (48kB)
100% |████████████████████████████████| 51kB 8.3MB/s
Collecting enum-compat>=0.0.2 (from chalice==1.21.8)
Downloading https://files.pythonhosted.org/packages/55/ae/467bc4509246283bb59746e21a1a2f5a8aecbef56b1fa6eaca78cd438c8b/enum_compat-0.0.3-py3-none-any.whl
Requirement already satisfied: jmespath<1.0.0,>=0.9.3 in /usr/local/lib/python3.6/site-packages (from chalice==1.21.8)
Collecting pyyaml<6.0.0,>=5.3.1 (from chalice==1.21.8)
Downloading https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz (175kB)
100% |████████████████████████████████| 184kB 5.0MB/s
Requirement already satisfied: wheel in /usr/local/lib/python3.6/site-packages (from chalice==1.21.8)
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from chalice==1.21.8)
Collecting typing==3.6.4 (from chalice==1.21.8)
Downloading https://files.pythonhosted.org/packages/05/2b/2b05bf1d5a9dd450447c9a5df3e118a465e5d3cb12b73b7220a5064a403f/typing-3.6.4-py3-none-any.whl
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/lib/python3.6/site-packages (from botocore<2.0.0,>=1.12.86->chalice==1.21.8)
Requirement already satisfied: urllib3<1.26,>=1.20; python_version != "3.4" in /usr/lib/python3.6/site-packages (from botocore<2.0.0,>=1.12.86->chalice==1.21.8)
Building wheels for collected packages: pyyaml
Running setup.py bdist_wheel for pyyaml ... done
Stored in directory: /root/.cache/pip/wheels/2a/d4/92/cf299bdf4162957ca8126b46e913e29f76a4f17ca762c45028
Successfully built pyyaml
Installing collected packages: click, attrs, enum-compat, pyyaml, typing, chalice
Found existing installation: attrs 21.2.0
Uninstalling attrs-21.2.0:
Successfully uninstalled attrs-21.2.0
Running setup.py develop for chalice
Successfully installed attrs-20.2.0 chalice click-7.1.2 enum-compat-0.0.3 pyyaml-5.4.1 typing-3.6.4

FLAKE8

No unused imports, no undefined vars,

flake8 --ignore=E731,W503,W504 --exclude chalice/init.py,chalice/compat.py,chalice/vendored/botocore/regions.py --max-complexity 10 chalice/
flake8 --ignore=E731,W503,W504,F401 --max-complexity 10 chalice/compat.py
flake8 tests/unit/ tests/functional/ tests/integration tests/aws

Proper docstring conventions according to pep257

pydocstyle --add-ignore=D100,D101,D102,D103,D104,D105,D204,D301 --match='(?!(test_|regions)).*.py' chalice/

PYLINT

pylint --rcfile .pylintrc chalice --load-plugins tests.codelinter


Your code has been rated at 10.00/10

Run our custom linter on test code.

pylint --load-plugins tests.testlinter --disable=I,E,W,R,C,F --enable C9999,C9998 tests/


Your code has been rated at 10.00/10

py.test --cov chalice --cov-report term-missing tests/unit tests/functional tests/integration
========================================================================= test session starts ==========================================================================
platform linux -- Python 3.6.8, pytest-5.3.1, py-1.5.3, pluggy-0.12.0
rootdir: /root/chalice
plugins: cov-2.8.1, hypothesis-4.43.1
collected 1339 items

tests/unit/test_analyzer.py .............................................................. [ 4%]
tests/unit/test_app.py ......................................................................................................................................... [ 14%]
................................................................................. [ 20%]
tests/unit/test_awsclient.py ...................... [ 22%]
tests/unit/test_config.py .................................................. [ 26%]
tests/unit/test_invoke.py ......... [ 26%]
tests/unit/test_local.py ............................................................................................. [ 33%]
tests/unit/test_logs.py ............... [ 35%]
tests/unit/test_package.py ............................................................................................. [ 41%]
tests/unit/test_pipeline.py ...................... [ 43%]
tests/unit/test_policy.py ........... [ 44%]
tests/unit/test_test.py ...................... [ 46%]
tests/unit/test_utils.py .................................... [ 48%]
tests/unit/cli/test_cli.py .. [ 48%]
tests/unit/cli/filewatch/test_eventbased.py sssssss [ 49%]
tests/unit/cli/filewatch/test_stat.py . [ 49%]
tests/unit/deploy/test_appgraph.py ........................... [ 51%]
tests/unit/deploy/test_deployer.py ......................................................... [ 55%]
tests/unit/deploy/test_executor.py ................................. [ 58%]
tests/unit/deploy/test_models.py ....... [ 58%]
tests/unit/deploy/test_packager.py .......................... [ 60%]
tests/unit/deploy/test_planner.py ..................................................................................................... [ 68%]
tests/unit/deploy/test_swagger.py ................................ [ 70%]
tests/unit/deploy/test_validate.py ........................... [ 72%]
tests/unit/vendored/botocore/test_regions.py ................... [ 74%]
tests/functional/test_awsclient.py ............................................................................................................................. [ 83%]
........................................................... [ 87%]
tests/functional/test_deployer.py .................... [ 89%]
tests/functional/test_local.py ........ [ 89%]
tests/functional/test_package.py ................................................ [ 93%]
tests/functional/test_utils.py ........ [ 94%]
tests/functional/cli/test_cli.py ...................................... [ 96%]
tests/functional/cli/test_factory.py .............................. [ 99%]
tests/functional/cli/test_reloader.py s.s.s.s.s. [ 99%]
tests/integration/test_cli.py . [100%]

=========================================================================== warnings summary ===========================================================================
tests/unit/test_local.py::TestLocalBuiltinAuthorizers::test_can_understand_cognito_token
/root/chalice/chalice/local.py:355: UserWarning: CognitoUserPoolAuthorizer is not a supported in local mode. All requests made against a route will be authorized to allow local testing.
% authorizer.class.name

tests/unit/test_package.py::test_can_create_app_packager
/usr/lib/python3.6/site-packages/pip/pep425tags.py:260: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp

-- Docs: https://docs.pytest.org/en/latest/warnings.html

----------- coverage: platform linux, python 3.6.8-final-0 -----------
Name Stmts Miss Branch BrPart Cover Missing

chalice/init.py 3 0 0 0 100%
chalice/analyzer.py 339 15 118 14 93% 93, 139, 158, 182, 187, 283, 474, 557, 630-635, 660, 181->182, 280->283, 393->392, 421->420, 433->exit, 436->exit, 455->exit, 460->exit, 473->474, 592->exit, 605->611, 624->630, 656->660, 693->690
chalice/app.py 1044 26 232 19 96% 35-52, 181, 201, 227, 276, 602, 632, 1033, 1364, 1517, 1532, 1538, 1582, 1771, 1900, 1905, 1927, 1936, 2020, 180->181, 272->276, 416->418, 435->440, 601->602, 628->632, 630->632, 958->960, 1032->1033, 1140->1139, 1531->1532, 1581->1582, 1640->1651, 1740->1739, 1899->1900, 1903->1905, 1926->1927, 1935->1936, 2019->2020
chalice/awsclient.py 774 24 222 10 96% 246, 396, 940, 1021-1022, 1167-1187, 1596, 1598, 241->246, 326->329, 395->396, 482->484, 488->490, 672->678, 939->940, 1594->1596, 1597->1598, 1610->1609
chalice/cli/init.py 331 26 46 7 91% 71, 182, 357-362, 426-427, 476-490, 631, 658-662, 664-665, 45->47, 70->71, 423->425, 425->426, 628->631, 657->658, 663->664
chalice/cli/factory.py 170 10 36 2 92% 99-108, 132, 169, 188, 212-214, 168->169, 285->287
chalice/cli/filewatch/init.py 18 0 2 0 100%
chalice/cli/filewatch/eventbased.py 24 21 2 0 12% 5-47
chalice/cli/filewatch/stat.py 68 0 22 1 99% 50->exit
chalice/cli/reloader.py 54 21 6 2 58% 45-46, 55-56, 75-76, 83-93, 111-114, 61->63, 101->111
chalice/compat.py 44 24 12 3 41% 24-33, 47-111, 133-142, 22->24, 37->47, 126->133
chalice/config.py 182 5 56 4 95% 159, 164-166, 406, 158->159, 162->164, 230->228, 405->406
chalice/constants.py 26 0 0 0 100%
chalice/deploy/init.py 0 0 0 0 100%
chalice/deploy/appgraph.py 267 2 93 3 99% 308, 672, 123->86, 306->308, 671->672
chalice/deploy/deployer.py 312 3 62 6 98% 590, 593, 679, 440->exit, 472->478, 542->exit, 554->exit, 589->590, 592->593
chalice/deploy/executor.py 177 2 42 0 99% 22, 308
chalice/deploy/models.py 244 0 86 0 100%
chalice/deploy/packager.py 519 15 172 11 96% 144, 146-150, 161, 166, 240-241, 319-320, 364-366, 452, 141->144, 145->146, 160->161, 165->166, 238->240, 318->319, 363->364, 451->452, 487->485, 900->902, 902->904
chalice/deploy/planner.py 390 6 98 5 98% 122, 1216, 1305, 1353, 1368, 1386, 203->198, 310->313, 1215->1216, 1302->1305, 1384->1386
chalice/deploy/swagger.py 123 0 42 1 99% 96->99
chalice/deploy/sweeper.py 155 12 60 1 90% 89-96, 100-107, 332, 343, 43->exit
chalice/deploy/validate.py 128 2 85 3 98% 243, 259, 242->243, 244->241, 253->259
chalice/invoke.py 63 0 12 0 100%
chalice/local.py 355 0 78 4 99% 321->347, 385->384, 445->447, 505->507
chalice/logs.py 102 1 28 1 98% 148, 176->exit
chalice/package.py 532 4 130 2 99% 1225, 1229, 1395, 1399, 753->755, 1310->1314
chalice/pipeline.py 171 1 30 3 98% 154, 99->101, 151->154, 485->487
chalice/policy.py 101 3 30 5 94% 98, 159-161, 97->98, 108->117, 117->119, 119->121, 158->159
chalice/test.py 138 0 20 0 100%
chalice/utils.py 216 1 38 1 99% 220, 219->220
chalice/vendored/init.py 0 0 0 0 100%
chalice/vendored/botocore/init.py 0 0 0 0 100%
chalice/vendored/botocore/regions.py 87 13 46 2 83% 99-102, 120-129, 173, 119->120, 171->173

TOTAL 7157 237 1906 110 96%

======================================================= 1327 passed, 12 skipped, 2 warnings in 90.26s (0:01:30) ========================================================

DOC8

Correct rst formatting for documentation

TODO: Remove doc8

doc8 docs/source --ignore-path docs/source/topics/multifile.rst
Scanning...
Validating...

Total files scanned = 39
Total files ignored = 1
Total accumulated errors = 0
Detailed error counts:
- doc8.checks.CheckCarriageReturn = 0
- doc8.checks.CheckIndentationNoTab = 0
- doc8.checks.CheckMaxLineLength = 0
- doc8.checks.CheckNewlineEndOfFile = 0
- doc8.checks.CheckTrailingWhitespace = 0
- doc8.checks.CheckValidity = 0

Verify we have no broken external links

as well as no undefined internal references.

make -C docs linkcheck
make[1]: Entering directory '/root/chalice/docs'
sphinx-build -b linkcheck -d build/doctrees -W source build/linkcheck
Running Sphinx v1.7.9
making output directory...
loading pickled environment... not yet created
building [mo]: targets for 0 po files that are out of date
building [linkcheck]: targets for 37 source files that are out of date
updating environment: 37 added, 0 changed, 0 removed
/usr/local/lib/python3.6/site-packages/sphinx/util/nodes.py:57: FutureWarning:
The iterable returned by Node.traverse()
will become an iterator instead of a list in Docutils > 0.16.
for classifier in reversed(node.parent.traverse(nodes.classifier)):
reading sources... [100%] upgrading
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [ 2%] api
(line 293) ok https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
(line 257) redirect https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#supported-notification-event-types - with Found to https://docs.aws.amazon.com/AmazonS3/latest/userguide/NotificationHowTo.html#supported-notification-event-types
(line 32) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 639) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 189) redirect https://docs.aws.amazon.com/AmazonCloudWatchEvents/latest/APIReference/API_PutRule.html#API_PutRule_RequestSyntax - with Found to https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutRule.html#API_PutRule_RequestSyntax
(line 1202) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1256) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1298) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1335) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1364) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1397) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1438) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1473) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1544) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 1565) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(line 203) redirect https://amzn.to/2OlqZso - permanently to https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html
(line 343) ok https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
(line 1105) ok https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
(line 388) ok https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
writing output... [ 5%] faq
writing output... [ 8%] index
writing output... [ 10%] main
writing output... [ 13%] quickstart
(line 3) ok https://www.python.org/downloads/
(line 48) redirect http://boto3.readthedocs.io/en/latest/guide/configuration.html - with Found to https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html
writing output... [ 16%] samples/index
(line 4) ok https://github.com/aws/chalice/tree/master/docs/source/samples
writing output... [ 18%] samples/media-query/index
(line 50) ok https://chalice-workshop.readthedocs.io/en/latest/media-query/index.html
(line 152) ok https://chalice-workshop.readthedocs.io/en/latest/media-query/index.html
(line 118) ok https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
(line 152) ok https://github.com/aws-samples/chalice-workshop/tree/master/code/media-query/final/assets
(line 36) ok https://github.com/aws/chalice/tree/master/docs/source/samples/media-query/code/
writing output... [ 21%] samples/todo-app/index
(line 306) ok https://boto3.amazonaws.com/v1/documentation/api/latest/reference/customizations/dynamodb.html#dynamodb-conditions
(line 344) ok https://docs.python.org/3/library/hashlib.html#hashlib.pbkdf2_hmac
(line 24) ok https://chalice-workshop.readthedocs.io/en/latest/todo-app/index.html
(line 11) ok https://github.com/aws/chalice/tree/master/docs/source/samples/todo-app/code/
(line 334) ok https://jwt.io/
writing output... [ 24%] topics/authorizers
(line 114) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html
(line 70) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html
(line 25) ok https://docs.aws.amazon.com/IAM/latest/UserGuide/access_controlling.html
(line 42) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/permissions.html
(line 49) ok https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html
(line 235) ok https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html
(line 235) ok https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html
writing output... [ 27%] topics/blueprints
(line 14) redirect https://flask.palletsprojects.com/blueprints/ - with Found to https://flask.palletsprojects.com/en/2.0.x/blueprints/
writing output... [ 29%] topics/cd
(line 40) ok https://aws.amazon.com/secrets-manager/
(line 79) ok https://aws.amazon.com/codepipeline/
(line 76) ok https://aws.amazon.com/codecommit/
(line 82) ok https://aws.amazon.com/codebuild/
(line 35) ok https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html
(line 42) ok https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.phases.install.runtime-versions
(line 108) ok https://docs.aws.amazon.com/codebuild/latest/userguide/setting-up.html
(line 207) ok https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_create-basic-secret.html
(line 207) redirect https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token - permanently to https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token
writing output... [ 32%] topics/cfn
(line 4) redirect http://boto3.readthedocs.io/en/docs/ - with Found to https://boto3.amazonaws.com/v1/documentation/api/latest/index.html
(line 9) redirect https://github.com/awslabs/serverless-application-model - permanently to https://github.com/aws/serverless-application-model
writing output... [ 35%] topics/configfile
(line 136) ok https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
(line 240) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-gzip-compression-decompression.html
(line 185) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html
(line 221) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html
(line 47) redirect https://amzn.to/2LofApt - permanently to https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-endpoint-types.html
(line 436) ok https://docs.aws.amazon.com/apigatewayv2/latest/api-reference/domainnames-domainname-apimappings.html
(line 250) redirect https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html
(line 261) redirect https://docs.aws.amazon.com/lambda/latest/dg/vpc.html#vpc-configuring - with Found to https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html#vpc-configuring
writing output... [ 37%] topics/domainname
(line 9) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains-prerequisites.html
writing output... [ 40%] topics/events
(line 97) redirect https://amzn.to/2OlqZso - permanently to https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html
(line 262) ok https://docs.aws.amazon.com/cli/latest/reference/sqs/get-queue-attributes.html
(line 108) redirect https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html - with Found to https://docs.aws.amazon.com/AmazonS3/latest/userguide/NotificationHowTo.html
(line 326) redirect https://docs.aws.amazon.com/lambda/latest/dg/scaling.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html
(line 78) redirect https://amzn.to/2SCgWA6 - permanently to https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html
writing output... [ 43%] topics/experimental
(line 94) ok aws/chalice#1017
(line 98) ok aws/chalice#1019
(line 87) ok aws/chalice#651
(line 87) ok aws/chalice#1023
(line 94) ok aws/chalice#1041
writing output... [ 45%] topics/index
writing output... [ 48%] topics/logging
(line 4) ok https://docs.aws.amazon.com/lambda/latest/dg/python-logging.html
writing output... [ 51%] topics/middleware
(line 343) ok https://aws.amazon.com/blogs/developer/following-serverless-best-practices-with-aws-chalice-and-lambda-powertools/
(line 273) ok https://awslabs.github.io/aws-lambda-powertools-python/
(line 278) (line 278) writing output... [ 54%] topics/multifile
writing output... [ 56%] topics/packaging
(line 308) ok https://pypi.org/project/cryptography/1.9/
writing output... [ 59%] topics/purelambda
(line 20) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-programming-model-handler-types.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-handler.html
writing output... [ 62%] topics/pyversion
(line 4) ok https://docs.aws.amazon.com/lambda/latest/dg/lambda-python.html
writing output... [ 64%] topics/routing
(line 4) ok https://palletsprojects.com/p/flask/
(line 4) ok http://bottlepy.org/docs/dev/index.html
writing output... [ 67%] topics/sdks
(line 13) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-generate-sdk.html
writing output... [ 70%] topics/stages
writing output... [ 72%] topics/testing
(line 248) ok https://botocore.amazonaws.com/v1/documentation/api/latest/reference/stubber.html
(line 34) ok https://docs.pytest.org/en/stable/
(line 343) ok https://docs.pytest.org/en/stable/fixture.html
writing output... [ 75%] topics/tf
(line 4) redirect http://boto3.readthedocs.io/en/docs/ - with Found to https://boto3.amazonaws.com/v1/documentation/api/latest/index.html
(line 10) ok https://www.terraform.io
writing output... [ 78%] topics/views
writing output... [ 81%] topics/websockets
writing output... [ 83%] tutorials/basicrestapi
writing output... [ 86%] tutorials/customdomain
(line 224) ok https://aws.github.io/chalice/topics/configfile.html#api-gateway-custom-domain
(line 156) redirect https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html - permanently to https://docs.aws.amazon.com/acm/latest/userguide/email-validation.html
(line 156) redirect https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html - permanently to https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html
writing output... [ 89%] tutorials/events
(line 35) ok https://aws.amazon.com/sns/
writing output... [ 91%] tutorials/index
writing output... [ 94%] tutorials/wschat
writing output... [ 97%] tutorials/wsecho
writing output... [100%] upgrading
(line 4) ok https://github.com/aws/chalice/blob/master/CHANGELOG.rst
(line 209) ok aws/chalice#348
(line 15) ok aws/chalice#604
(line 15) ok aws/chalice#604
( samples/index: line 4) ok https://github.com/aws/chalice/tree/master/docs/source/samples
(samples/media-query/index: line 36) ok https://github.com/aws/chalice/tree/master/docs/source/samples/media-query/code/
(samples/todo-app/index: line 11) ok https://github.com/aws/chalice/tree/master/docs/source/samples/todo-app/code/
(topics/experimental: line 87) ok aws/chalice#651
(samples/todo-app/index: line 334) ok https://jwt.io/
( topics/cfn: line 9) redirect https://github.com/awslabs/serverless-application-model - permanently to https://github.com/aws/serverless-application-model
( topics/routing: line 4) ok https://palletsprojects.com/p/flask/
( tutorials/cdk: line 201) ok https://httpie.io/
( quickstart: line 3) ok https://www.python.org/downloads/
(topics/packaging: line 312) ok https://pypi.org/project/cryptography/1.9/
(topics/experimental: line 87) ok aws/chalice#1023
( topics/tf: line 10) ok https://www.terraform.io
(topics/experimental: line 94) ok aws/chalice#1041
build succeeded.

Look for any errors in the above output or in build/linkcheck/output.txt

Link check complete; look for any errors in the above output or in build/linkcheck/output.txt.
make[1]: Leaving directory '/chalice/docs'

Verify we can build the docs. The

treat warnings as errors flag is enabled

so any sphinx-build warnings will fail the build.

make -C docs html
make[1]: Entering directory '/chalice/docs'
sphinx-build -b html -d build/doctrees -W source build/html
Running Sphinx v4.1.2
making output directory... done
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 38 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
writing output... [100%] upgrading
generating indices... genindex done
writing additional pages... search done
copying images... [100%] img/auto-layer.png
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in build/html.

Build finished. The HTML pages are in build/html.
make[1]: Leaving directory '/chalice/docs'
mypy --ignore-missing-imports --follow-imports=skip -p chalice --disallow-untyped-defs --strict-optional --warn-no-return
Success: no issues found in 38 source files
make Success for python 3.6 environment

@asellappen
Copy link
Contributor Author

Test 2: sh chalice_ubi_8.3.sh
Cloning into 'chalice'...
remote: Enumerating objects: 14004, done.
remote: Counting objects: 100% (947/947), done.
remote: Compressing objects: 100% (450/450), done.
remote: Total 14004 (delta 580), reused 817 (delta 486), pack-reused 13057
Receiving objects: 100% (14004/14004), 8.43 MiB | 17.70 MiB/s, done.
Resolving deltas: 100% (9934/9934), done.
Already on 'master'
Your branch is up to date with 'origin/master'.
found to checkout
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Collecting astroid==2.6.6 (from -r requirements-dev.txt (line 7))
Downloading https://files.pythonhosted.org/packages/14/05/eca5daea3244476f10e750e0cbbc9302f3b29e354daece9659cddb471324/astroid-2.6.6-py3-none-any.whl (231kB)
100% |████████████████████████████████| 235kB 4.3MB/s
Collecting attrs==21.2.0 (from -r requirements-dev.txt (line 9))
Downloading https://files.pythonhosted.org/packages/20/a9/ba6f1cd1a1517ff022b35acd6a7e4246371dfab08b8e42b829b6d07913cc/attrs-21.2.0-py2.py3-none-any.whl (53kB)
100% |████████████████████████████████| 61kB 10.3MB/s
Collecting boto3==1.18.23 (from -r requirements-dev.txt (line 13))
Downloading https://files.pythonhosted.org/packages/1d/c5/1308a976947400d600adcb74c109416c08daec47f5830006a0ac03e50d16/boto3-1.18.23-py3-none-any.whl (131kB)
100% |████████████████████████████████| 133kB 7.9MB/s
Collecting botocore==1.21.23 (from -r requirements-dev.txt (line 15))
Downloading https://files.pythonhosted.org/packages/b3/8e/a8550346a1d486402b1280ea2a149d3e415bc087b3d62b98b351117b1d01/botocore-1.21.23-py3-none-any.whl (7.8MB)
100% |████████████████████████████████| 7.8MB 158kB/s
Collecting certifi==2021.5.30 (from -r requirements-dev.txt (line 19))
Downloading https://files.pythonhosted.org/packages/05/1b/0a0dece0e8aa492a6ec9e4ad2fe366b511558cdc73fd3abc82ba7348e875/certifi-2021.5.30-py2.py3-none-any.whl (145kB)
100% |████████████████████████████████| 153kB 7.6MB/s
Collecting charset-normalizer==2.0.4 (from -r requirements-dev.txt (line 21))
Downloading https://files.pythonhosted.org/packages/33/53/b7f6126a2b9fd878b025fe3c40266cfaad696f312165008ce045bffa3fe7/charset_normalizer-2.0.4-py3-none-any.whl
Collecting coverage==5.5 (from -r requirements-dev.txt (line 23))
Downloading https://files.pythonhosted.org/packages/38/df/d5e67851e83948def768d7fb1a0fd373665b20f56ff63ed220c6cd16cb11/coverage-5.5.tar.gz (691kB)
100% |████████████████████████████████| 696kB 1.8MB/s
Collecting doc8==0.9.0 (from -r requirements-dev.txt (line 27))
Downloading https://files.pythonhosted.org/packages/05/0f/5f344d147ebb855ee124787b1b54eaf685313eb405c8c87a3e50216eb3b3/doc8-0.9.0-py3-none-any.whl
Collecting docutils==0.17.1 (from -r requirements-dev.txt (line 29))
Downloading https://files.pythonhosted.org/packages/4c/5e/6003a0d1f37725ec2ebd4046b657abb9372202655f96e76795dca8c0063c/docutils-0.17.1-py2.py3-none-any.whl (575kB)
100% |████████████████████████████████| 583kB 2.1MB/s
Collecting flake8==3.9.2 (from -r requirements-dev.txt (line 33))
Downloading https://files.pythonhosted.org/packages/fc/80/35a0716e5d5101e643404dabd20f07f5528a21f3ef4032d31a49c913237b/flake8-3.9.2-py2.py3-none-any.whl (73kB)
100% |████████████████████████████████| 81kB 10.6MB/s
Collecting hypothesis==6.14.8 (from -r requirements-dev.txt (line 35))
Downloading https://files.pythonhosted.org/packages/ac/b7/c64e8350c9b379f61b8250bb8e4ece11d0f976d48cbd2b8a5ad91a1e2e74/hypothesis-6.14.8-py3-none-any.whl (368kB)
100% |████████████████████████████████| 368kB 3.2MB/s
Collecting idna==3.2 (from -r requirements-dev.txt (line 37))
Downloading https://files.pythonhosted.org/packages/d7/77/ff688d1504cdc4db2a938e2b7b9adee5dd52e34efbd2431051efc9984de9/idna-3.2-py3-none-any.whl (59kB)
100% |████████████████████████████████| 61kB 9.8MB/s
Collecting iniconfig==1.1.1 (from -r requirements-dev.txt (line 39))
Downloading https://files.pythonhosted.org/packages/9b/dd/b3c12c6d707058fa947864b67f0c4e0c39ef8610988d7baea9578f3c48f3/iniconfig-1.1.1-py2.py3-none-any.whl
Collecting isort==5.9.3 (from -r requirements-dev.txt (line 41))
Downloading https://files.pythonhosted.org/packages/c4/1d/f4e03047d6767e35c1efb13a280c1ef8b88807230f902da4cfc431a9f602/isort-5.9.3-py3-none-any.whl (106kB)
100% |████████████████████████████████| 112kB 9.9MB/s
Collecting jmespath==0.10.0 (from -r requirements-dev.txt (line 43))
Downloading https://files.pythonhosted.org/packages/07/cb/5f001272b6faeb23c1c9e0acc04d48eaaf5c862c17709d20e3469c6e0139/jmespath-0.10.0-py2.py3-none-any.whl
Collecting lazy-object-proxy==1.6.0 (from -r requirements-dev.txt (line 47))
Downloading https://files.pythonhosted.org/packages/bb/f5/646893a04dcf10d4acddb61c632fd53abb3e942e791317dcdd57f5800108/lazy-object-proxy-1.6.0.tar.gz (44kB)
100% |████████████████████████████████| 51kB 10.8MB/s
Collecting mccabe==0.6.1 (from -r requirements-dev.txt (line 49))
Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting mock==4.0.3 (from -r requirements-dev.txt (line 53))
Downloading https://files.pythonhosted.org/packages/5c/03/b7e605db4a57c0f6fba744b11ef3ddf4ddebcada35022927a2b5fc623fdf/mock-4.0.3-py3-none-any.whl
Collecting mypy==0.812 (from -r requirements-dev.txt (line 55))
Downloading https://files.pythonhosted.org/packages/ac/eb/4cf7af6a92cb37cd681f0b0b96160db96aacd533f5598e40deeb81b48e89/mypy-0.812-py3-none-any.whl (2.5MB)
100% |████████████████████████████████| 2.5MB 519kB/s
Collecting mypy-extensions==0.4.3 (from -r requirements-dev.txt (line 57))
Downloading https://files.pythonhosted.org/packages/5c/eb/975c7c080f3223a5cdaff09612f3a5221e4ba534f7039db34c35d95fa6a5/mypy_extensions-0.4.3-py2.py3-none-any.whl
Collecting packaging==21.0 (from -r requirements-dev.txt (line 61))
Downloading https://files.pythonhosted.org/packages/3c/77/e2362b676dc5008d81be423070dd9577fa03be5da2ba1105811900fda546/packaging-21.0-py3-none-any.whl (40kB)
100% |████████████████████████████████| 40kB 9.7MB/s
Collecting pbr==5.6.0 (from -r requirements-dev.txt (line 63))
Downloading https://files.pythonhosted.org/packages/18/e0/1d4702dd81121d04a477c272d47ee5b6bc970d1a0990b11befa275c55cf2/pbr-5.6.0-py2.py3-none-any.whl (111kB)
100% |████████████████████████████████| 112kB 9.6MB/s
Collecting pluggy==0.13.1 (from -r requirements-dev.txt (line 65))
Downloading https://files.pythonhosted.org/packages/a0/28/85c7aa31b80d150b772fbe4a229487bc6644da9ccb7e427dd8cc60cb8a62/pluggy-0.13.1-py2.py3-none-any.whl
Collecting py==1.10.0 (from -r requirements-dev.txt (line 67))
Downloading https://files.pythonhosted.org/packages/67/32/6fe01cfc3d1a27c92fdbcdfc3f67856da8cbadf0dd9f2e18055202b2dc62/py-1.10.0-py2.py3-none-any.whl (97kB)
100% |████████████████████████████████| 102kB 10.5MB/s
Collecting pycodestyle==2.7.0 (from -r requirements-dev.txt (line 69))
Downloading https://files.pythonhosted.org/packages/de/cc/227251b1471f129bc35e966bb0fceb005969023926d744139642d847b7ae/pycodestyle-2.7.0-py2.py3-none-any.whl (41kB)
100% |████████████████████████████████| 51kB 11.6MB/s
Collecting pydocstyle==6.1.1 (from -r requirements-dev.txt (line 71))
Downloading https://files.pythonhosted.org/packages/87/67/4df10786068766000518c6ad9c4a614e77585a12ab8f0654c776757ac9dc/pydocstyle-6.1.1-py3-none-any.whl
Collecting pyflakes==2.3.1 (from -r requirements-dev.txt (line 73))
Downloading https://files.pythonhosted.org/packages/6c/11/2a745612f1d3cbbd9c69ba14b1b43a35a2f5c3c81cd0124508c52c64307f/pyflakes-2.3.1-py2.py3-none-any.whl (68kB)
100% |████████████████████████████████| 71kB 10.5MB/s
Collecting pygments==2.10.0 (from -r requirements-dev.txt (line 75))
Downloading https://files.pythonhosted.org/packages/78/c8/8d9be2f72d8f465461f22b5f199c04f7ada933add4dae6e2468133c17471/Pygments-2.10.0-py3-none-any.whl (1.0MB)
100% |████████████████████████████████| 1.0MB 1.2MB/s
Collecting pylint==2.9.6 (from -r requirements-dev.txt (line 79))
Downloading https://files.pythonhosted.org/packages/b9/27/2aca16def0282964f0f3f09afb7e86b4bfbfa98ecb53025ea92b3d36251e/pylint-2.9.6-py3-none-any.whl (375kB)
100% |████████████████████████████████| 378kB 3.2MB/s
Collecting pyparsing==2.4.7 (from -r requirements-dev.txt (line 81))
Downloading https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67kB)
100% |████████████████████████████████| 71kB 10.4MB/s
Collecting pytest==6.2.4 (from -r requirements-dev.txt (line 83))
Downloading https://files.pythonhosted.org/packages/a1/59/6821e900592fbe261f19d67e4def0cb27e52ef8ed16d9922c144961cc1ee/pytest-6.2.4-py3-none-any.whl (280kB)
100% |████████████████████████████████| 286kB 4.2MB/s
Collecting pytest-cov==2.12.1 (from -r requirements-dev.txt (line 87))
Downloading https://files.pythonhosted.org/packages/ba/84/576b071aef9ac9301e5c0ff35d117e12db50b87da6f12e745e9c5f745cc2/pytest_cov-2.12.1-py2.py3-none-any.whl
Collecting python-dateutil==2.8.2 (from -r requirements-dev.txt (line 89))
Downloading https://files.pythonhosted.org/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247kB)
100% |████████████████████████████████| 256kB 4.7MB/s
Collecting requests==2.26.0 (from -r requirements-dev.txt (line 91))
Downloading https://files.pythonhosted.org/packages/92/96/144f70b972a9c0eabbd4391ef93ccd49d0f2747f4f6a2a2738e99e5adc65/requests-2.26.0-py2.py3-none-any.whl (62kB)
100% |████████████████████████████████| 71kB 11.2MB/s
Collecting restructuredtext-lint==1.3.2 (from -r requirements-dev.txt (line 93))
Downloading https://files.pythonhosted.org/packages/45/69/5e43d0e8c2ca903aaa2def7f755b97a3aedc5793630abbd004f2afc3b295/restructuredtext_lint-1.3.2.tar.gz
Collecting s3transfer==0.5.0 (from -r requirements-dev.txt (line 95))
Downloading https://files.pythonhosted.org/packages/ab/84/fc3717a7b7f0f6bb08af593127171f08e3e0087c197922da09c01bfe7c3a/s3transfer-0.5.0-py3-none-any.whl (79kB)
100% |████████████████████████████████| 81kB 10.2MB/s
Collecting six==1.16.0 (from -r requirements-dev.txt (line 97))
Downloading https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Collecting snowballstemmer==2.1.0 (from -r requirements-dev.txt (line 99))
Downloading https://files.pythonhosted.org/packages/f6/6e/7e07970c90a57c21da92013c5ba47f8e9598c17e88cc35b008ca61225ed3/snowballstemmer-2.1.0-py2.py3-none-any.whl (93kB)
100% |████████████████████████████████| 102kB 11.2MB/s
Collecting sortedcontainers==2.4.0 (from -r requirements-dev.txt (line 101))
Downloading https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl
Collecting stevedore==3.3.0 (from -r requirements-dev.txt (line 103))
Downloading https://files.pythonhosted.org/packages/d4/49/b602307aeac3df3384ff1fcd05da9c0376c622a6c48bb5325f28ab165b57/stevedore-3.3.0-py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 9.9MB/s
Collecting toml==0.10.2 (from -r requirements-dev.txt (line 105))
Downloading https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl
Collecting typed-ast==1.4.3 (from -r requirements-dev.txt (line 110))
Downloading https://files.pythonhosted.org/packages/6e/08/c04a49ee26a94c1ec211e7b1e5f2971d692e04818ea67ef70f1e879cf525/typed_ast-1.4.3.tar.gz (210kB)
100% |████████████████████████████████| 215kB 5.4MB/s
Collecting typing-extensions==3.10.0.0 (from -r requirements-dev.txt (line 112))
Downloading https://files.pythonhosted.org/packages/2e/35/6c4fff5ab443b57116cb1aad46421fb719bed2825664e8fe77d66d99bcbc/typing_extensions-3.10.0.0-py3-none-any.whl
Collecting urllib3==1.26.6 (from -r requirements-dev.txt (line 114))
Downloading https://files.pythonhosted.org/packages/5f/64/43575537846896abac0b15c3e5ac678d787a4021e906703f1766bfb8ea11/urllib3-1.26.6-py2.py3-none-any.whl (138kB)
100% |████████████████████████████████| 143kB 8.0MB/s
Collecting websocket-client==1.2.1 (from -r requirements-dev.txt (line 118))
Downloading https://files.pythonhosted.org/packages/55/44/030ea47390896c8d6dc9995c8e9a4c5df3a161cd45416d88119036c73eda/websocket_client-1.2.1-py2.py3-none-any.whl (52kB)
100% |████████████████████████████████| 61kB 11.2MB/s
Collecting wheel==0.37.0 (from -r requirements-dev.txt (line 120))
Downloading https://files.pythonhosted.org/packages/04/80/cad93b40262f5d09f6de82adbee452fd43cdff60830b56a74c5930f7e277/wheel-0.37.0-py2.py3-none-any.whl
Collecting wrapt==1.12.1 (from -r requirements-dev.txt (line 122))
Downloading https://files.pythonhosted.org/packages/82/f7/e43cefbe88c5fd371f4cf0cf5eb3feccd07515af9fd6cf7dbf1d1793a797/wrapt-1.12.1.tar.gz
Collecting Sphinx==4.1.2 (from -r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/11/75/86ea47591cd6f8e1dc0d795f65799025f368f7a4647ce9a43320a62374d8/Sphinx-4.1.2-py3-none-any.whl (2.9MB)
100% |████████████████████████████████| 2.9MB 431kB/s
Requirement already satisfied: setuptools>=20.0 in /usr/lib/python3.6/site-packages (from astroid==2.6.6->-r requirements-dev.txt (line 7))
Collecting importlib-metadata; python_version < "3.8" (from flake8==3.9.2->-r requirements-dev.txt (line 33))
Downloading https://files.pythonhosted.org/packages/71/c2/cb1855f0b2a0ae9ccc9b69f150a7aebd4a8d815bd951e74621c4154c52a8/importlib_metadata-4.8.1-py3-none-any.whl
Collecting Jinja2>=2.3 (from Sphinx==4.1.2->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/80/21/ae597efc7ed8caaa43fb35062288baaf99a7d43ff0cf66452ddf47604ee6/Jinja2-3.0.1-py3-none-any.whl (133kB)
100% |████████████████████████████████| 143kB 8.1MB/s
Collecting babel>=1.3 (from Sphinx==4.1.2->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/aa/96/4ba93c5f40459dc850d25f9ba93f869a623e77aaecc7a9344e19c01942cf/Babel-2.9.1-py2.py3-none-any.whl (8.8MB)
100% |████████████████████████████████| 8.8MB 141kB/s
Collecting sphinxcontrib-applehelp (from Sphinx==4.1.2->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/dc/47/86022665a9433d89a66f5911b558ddff69861766807ba685de2e324bd6ed/sphinxcontrib_applehelp-1.0.2-py2.py3-none-any.whl (121kB)
100% |████████████████████████████████| 122kB 9.8MB/s
Collecting sphinxcontrib-devhelp (from Sphinx==4.1.2->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/c5/09/5de5ed43a521387f18bdf5f5af31d099605c992fd25372b2b9b825ce48ee/sphinxcontrib_devhelp-1.0.2-py2.py3-none-any.whl (84kB)
100% |████████████████████████████████| 92kB 12.2MB/s
Collecting sphinxcontrib-qthelp (from Sphinx==4.1.2->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/2b/14/05f9206cf4e9cfca1afb5fd224c7cd434dcc3a433d6d9e4e0264d29c6cdb/sphinxcontrib_qthelp-1.0.3-py2.py3-none-any.whl (90kB)
100% |████████████████████████████████| 92kB 11.4MB/s
Collecting imagesize (from Sphinx==4.1.2->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/31/b2/b5522a0c8d11e4aff83f8342f3f0dea68c2fb25aa44403e420587f0ce204/imagesize-1.2.0-py2.py3-none-any.whl
Collecting alabaster<0.8,>=0.7 (from Sphinx==4.1.2->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/10/ad/00b090d23a222943eb0eda509720a404f531a439e803f6538f35136cae9e/alabaster-0.7.12-py2.py3-none-any.whl
Collecting sphinxcontrib-htmlhelp>=2.0.0 (from Sphinx==4.1.2->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/63/40/c854ef09500e25f6432dcbad0f37df87fd7046d376272292d8654cc71c95/sphinxcontrib_htmlhelp-2.0.0-py2.py3-none-any.whl (100kB)
100% |████████████████████████████████| 102kB 11.4MB/s
Collecting sphinxcontrib-serializinghtml>=1.1.5 (from Sphinx==4.1.2->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/c6/77/5464ec50dd0f1c1037e3c93249b040c8fc8078fdda97530eeb02424b6eea/sphinxcontrib_serializinghtml-1.1.5-py2.py3-none-any.whl (94kB)
100% |████████████████████████████████| 102kB 12.6MB/s
Collecting sphinxcontrib-jsmath (from Sphinx==4.1.2->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/c2/42/4c8646762ee83602e3fb3fbe774c2fac12f317deb0b5dbeeedd2d3ba4b77/sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl
Collecting zipp>=0.5 (from importlib-metadata; python_version < "3.8"->flake8==3.9.2->-r requirements-dev.txt (line 33))
Downloading https://files.pythonhosted.org/packages/92/d9/89f433969fb8dc5b9cbdd4b4deb587720ec1aeb59a020cf15002b9593eef/zipp-3.5.0-py3-none-any.whl
Collecting MarkupSafe>=2.0 (from Jinja2>=2.3->Sphinx==4.1.2->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/bf/10/ff66fea6d1788c458663a84d88787bae15d45daa16f6b3ef33322a51fc7e/MarkupSafe-2.0.1.tar.gz
Collecting pytz>=2015.7 (from babel>=1.3->Sphinx==4.1.2->-r requirements-docs.txt (line 1))
Downloading https://files.pythonhosted.org/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90ca6/pytz-2021.1-py2.py3-none-any.whl (510kB)
100% |████████████████████████████████| 512kB 2.6MB/s
Installing collected packages: typed-ast, wrapt, lazy-object-proxy, typing-extensions, astroid, attrs, six, python-dateutil, urllib3, jmespath, botocore, s3transfer, boto3, certifi, charset-normalizer, coverage, docutils, pbr, zipp, importlib-metadata, stevedore, pygments, restructuredtext-lint, doc8, pycodestyle, mccabe, pyflakes, flake8, sortedcontainers, hypothesis, idna, iniconfig, isort, mock, mypy-extensions, mypy, pyparsing, packaging, pluggy, py, snowballstemmer, pydocstyle, toml, pylint, pytest, pytest-cov, requests, websocket-client, wheel, MarkupSafe, Jinja2, pytz, babel, sphinxcontrib-applehelp, sphinxcontrib-devhelp, sphinxcontrib-qthelp, imagesize, alabaster, sphinxcontrib-htmlhelp, sphinxcontrib-serializinghtml, sphinxcontrib-jsmath, Sphinx
Running setup.py install for typed-ast ... done
Running setup.py install for wrapt ... done
Running setup.py install for lazy-object-proxy ... done
Running setup.py install for coverage ... done
Running setup.py install for restructuredtext-lint ... done
Running setup.py install for MarkupSafe ... done
Successfully installed Jinja2-3.0.1 MarkupSafe-2.0.1 Sphinx-4.1.2 alabaster-0.7.12 astroid-2.6.6 attrs-21.2.0 babel-2.9.1 boto3-1.18.23 botocore-1.21.23 certifi-2021.5.30 charset-normalizer-2.0.4 coverage-5.5 doc8-0.9.0 docutils-0.17.1 flake8-3.9.2 hypothesis-6.14.8 idna-3.2 imagesize-1.2.0 importlib-metadata-4.8.1 iniconfig-1.1.1 isort-5.9.3 jmespath-0.10.0 lazy-object-proxy-1.6.0 mccabe-0.6.1 mock-4.0.3 mypy-0.812 mypy-extensions-0.4.3 packaging-21.0 pbr-5.6.0 pluggy-0.13.1 py-1.10.0 pycodestyle-2.7.0 pydocstyle-6.1.1 pyflakes-2.3.1 pygments-2.10.0 pylint-2.9.6 pyparsing-2.4.7 pytest-6.2.4 pytest-cov-2.12.1 python-dateutil-2.8.2 pytz-2021.1 requests-2.26.0 restructuredtext-lint-1.3.2 s3transfer-0.5.0 six-1.16.0 snowballstemmer-2.1.0 sortedcontainers-2.4.0 sphinxcontrib-applehelp-1.0.2 sphinxcontrib-devhelp-1.0.2 sphinxcontrib-htmlhelp-2.0.0 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-1.0.3 sphinxcontrib-serializinghtml-1.1.5 stevedore-3.3.0 toml-0.10.2 typed-ast-1.4.3 typing-extensions-3.10.0.0 urllib3-1.26.6 websocket-client-1.2.1 wheel-0.37.0 wrapt-1.12.1 zipp-3.5.0
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Obtaining file:///chalice
Collecting click<9.0,>=7 (from chalice==1.24.2)
Downloading https://files.pythonhosted.org/packages/76/0a/b6c5f311e32aeb3b406e03c079ade51e905ea630fc19d1262a46249c1c86/click-8.0.1-py3-none-any.whl (97kB)
100% |████████████████████████████████| 102kB 5.3MB/s
Requirement already satisfied: botocore<2.0.0,>=1.14.0 in /usr/local/lib/python3.6/site-packages (from chalice==1.24.2)
Requirement already satisfied: mypy-extensions==0.4.3 in /usr/local/lib/python3.6/site-packages (from chalice==1.24.2)
Requirement already satisfied: six<2.0.0,>=1.10.0 in /usr/local/lib/python3.6/site-packages (from chalice==1.24.2)
Requirement already satisfied: pip<21.3,>=9 in /usr/lib/python3.6/site-packages (from chalice==1.24.2)
Requirement already satisfied: attrs<21.3.0,>=19.3.0 in /usr/local/lib/python3.6/site-packages (from chalice==1.24.2)
Requirement already satisfied: jmespath<1.0.0,>=0.9.3 in /usr/local/lib/python3.6/site-packages (from chalice==1.24.2)
Collecting pyyaml<6.0.0,>=5.3.1 (from chalice==1.24.2)
Downloading https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz (175kB)
100% |████████████████████████████████| 184kB 6.2MB/s
Collecting inquirer<3.0.0,>=2.7.0 (from chalice==1.24.2)
Downloading https://files.pythonhosted.org/packages/60/10/450a7edfaea3d09a4a7062bd567178bfb66233bae3ee0042934910e180de/inquirer-2.7.0-py2.py3-none-any.whl
Requirement already satisfied: wheel in /usr/local/lib/python3.6/site-packages (from chalice==1.24.2)
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from chalice==1.24.2)
Collecting typing==3.6.4 (from chalice==1.24.2)
Downloading https://files.pythonhosted.org/packages/05/2b/2b05bf1d5a9dd450447c9a5df3e118a465e5d3cb12b73b7220a5064a403f/typing-3.6.4-py3-none-any.whl
Requirement already satisfied: importlib-metadata; python_version < "3.8" in /usr/local/lib/python3.6/site-packages (from click<9.0,>=7->chalice==1.24.2)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/local/lib/python3.6/site-packages (from botocore<2.0.0,>=1.14.0->chalice==1.24.2)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in /usr/local/lib/python3.6/site-packages (from botocore<2.0.0,>=1.14.0->chalice==1.24.2)
Collecting blessed==1.17.6 (from inquirer<3.0.0,>=2.7.0->chalice==1.24.2)
Downloading https://files.pythonhosted.org/packages/19/de/930a8ab1ccb9779d34305c8ae2a496ed35769b6bc8a1639975ed6f415992/blessed-1.17.6-py2.py3-none-any.whl (76kB)
100% |████████████████████████████████| 81kB 10.4MB/s
Collecting python-editor==1.0.4 (from inquirer<3.0.0,>=2.7.0->chalice==1.24.2)
Downloading https://files.pythonhosted.org/packages/c6/d3/201fc3abe391bbae6606e6f1d598c15d367033332bd54352b12f35513717/python_editor-1.0.4-py3-none-any.whl
Collecting readchar==2.0.1 (from inquirer<3.0.0,>=2.7.0->chalice==1.24.2)
Downloading https://files.pythonhosted.org/packages/ef/f3/50cc9199733bf91f3c140150752a6430d8b785f9d22a31dcae721edb0b9a/readchar-2.0.1-py3-none-any.whl
Requirement already satisfied: typing-extensions>=3.6.4; python_version < "3.8" in /usr/local/lib/python3.6/site-packages (from importlib-metadata; python_version < "3.8"->click<9.0,>=7->chalice==1.24.2)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.6/site-packages (from importlib-metadata; python_version < "3.8"->click<9.0,>=7->chalice==1.24.2)
Collecting wcwidth>=0.1.4 (from blessed==1.17.6->inquirer<3.0.0,>=2.7.0->chalice==1.24.2)
Downloading https://files.pythonhosted.org/packages/59/7c/e39aca596badaf1b78e8f547c807b04dae603a433d3e7a7e04d67f2ef3e5/wcwidth-0.2.5-py2.py3-none-any.whl
Building wheels for collected packages: pyyaml
Running setup.py bdist_wheel for pyyaml ... done
Stored in directory: /root/.cache/pip/wheels/2a/d4/92/cf299bdf4162957ca8126b46e913e29f76a4f17ca762c45028
Successfully built pyyaml
Installing collected packages: click, pyyaml, wcwidth, blessed, python-editor, readchar, inquirer, typing, chalice
Running setup.py develop for chalice
Successfully installed blessed-1.17.6 chalice click-8.0.1 inquirer-2.7.0 python-editor-1.0.4 pyyaml-5.4.1 readchar-2.0.1 typing-3.6.4 wcwidth-0.2.5

FLAKE8

No unused imports, no undefined vars,

flake8 --ignore=E731,W503,W504 --exclude chalice/init.py,chalice/compat.py,chalice/vendored/botocore/regions.py --max-complexity 10 chalice/
flake8 --ignore=E731,W503,W504,F401 --max-complexity 10 chalice/compat.py
flake8 tests/unit/ tests/functional/ tests/integration tests/aws

Proper docstring conventions according to pep257

pydocstyle --add-ignore=D100,D101,D102,D103,D104,D105,D107,D204,D301 --match='(?!(test_|regions)).*.py' chalice/

PYLINT

pylint --rcfile .pylintrc chalice --load-plugins tests.codelinter


Your code has been rated at 10.00/10

Run our custom linter on test code.

pylint --load-plugins tests.testlinter --disable=I,E,W,R,C,F --enable C9999,C9998 tests/


Your code has been rated at 10.00/10

py.test --cov chalice --cov-report term-missing tests/unit tests/functional tests/integration
========================================================================= test session starts ==========================================================================
platform linux -- Python 3.6.8, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /chalice
plugins: cov-2.12.1, hypothesis-6.14.8
collected 1378 items

tests/unit/test_analyzer.py ................................................................. [ 4%]
tests/unit/test_app.py ......................................................................................................................................... [ 14%]
................................................................................... [ 20%]
tests/unit/test_awsclient.py ...................... [ 22%]
tests/unit/test_config.py .................................................. [ 25%]
tests/unit/test_invoke.py ......... [ 26%]
tests/unit/test_local.py ............................................................................................. [ 33%]
tests/unit/test_logs.py ............... [ 34%]
tests/unit/test_package.py ............................................................................................... [ 41%]
tests/unit/test_pipeline.py ...................... [ 42%]
tests/unit/test_policy.py ........... [ 43%]
tests/unit/test_test.py ...................... [ 45%]
tests/unit/test_utils.py .................................... [ 47%]
tests/unit/cli/test_cli.py .. [ 48%]
tests/unit/cli/test_newproj.py .............. [ 49%]
tests/unit/cli/filewatch/test_eventbased.py sssssss [ 49%]
tests/unit/cli/filewatch/test_stat.py . [ 49%]
tests/unit/deploy/test_appgraph.py ............................ [ 51%]
tests/unit/deploy/test_deployer.py ......................................................... [ 55%]
tests/unit/deploy/test_executor.py ................................. [ 58%]
tests/unit/deploy/test_models.py ....... [ 58%]
tests/unit/deploy/test_packager.py .......................... [ 60%]
tests/unit/deploy/test_planner.py ....................................................................................................... [ 68%]
tests/unit/deploy/test_swagger.py ................................ [ 70%]
tests/unit/deploy/test_validate.py ............................. [ 72%]
tests/unit/vendored/botocore/test_regions.py ................... [ 73%]
tests/functional/test_awsclient.py ............................................................................................................................. [ 82%]
............................................................... [ 87%]
tests/functional/test_deployer.py .................... [ 88%]
tests/functional/test_local.py ........ [ 89%]
tests/functional/test_package.py .................................................. [ 93%]
tests/functional/test_utils.py ........ [ 93%]
tests/functional/api/test_package.py .... [ 94%]
tests/functional/cdk/test_construct.py sss [ 94%]
tests/functional/cli/test_cli.py ...................................... [ 97%]
tests/functional/cli/test_factory.py .............................. [ 99%]
tests/functional/cli/test_reloader.py s.s.s.s.s. [ 99%]
tests/integration/test_cli.py . [100%]

=========================================================================== warnings summary ===========================================================================
tests/unit/test_local.py::TestLocalBuiltinAuthorizers::test_can_understand_cognito_token
/chalice/chalice/local.py:355: UserWarning: CognitoUserPoolAuthorizer is not a supported in local mode. All requests made against a route will be authorized to allow local testing.
% authorizer.class.name

tests/unit/test_package.py::test_can_create_app_packager
/usr/lib/python3.6/site-packages/pip/pep425tags.py:260: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp

tests/functional/test_local.py::test_can_import_env_vars
tests/functional/test_local.py::test_can_reload_server
/chalice/tests/functional/test_local.py:110: DeprecationWarning: Using 'method_whitelist' with Retry is deprecated and will be removed in v2.0. Use 'allowed_methods' instead
method_whitelist=['GET', 'POST', 'PUT'],

-- Docs: https://docs.pytest.org/en/stable/warnings.html

----------- coverage: platform linux, python 3.6.8-final-0 -----------
Name Stmts Miss Branch BrPart Cover Missing

chalice/init.py 3 0 0 0 100%
chalice/analyzer.py 345 15 118 14 93% 90, 136, 155, 179, 184, 280, 390->389, 418->417, 430->exit, 433->exit, 452->exit, 457->exit, 471, 555, 590->exit, 603->609, 628-633, 658, 708->705
chalice/api/init.py 11 0 2 0 100%
chalice/app.py 1054 28 236 21 96% 35-52, 181, 201, 227, 276, 416->418, 435->440, 602, 632, 963->965, 987, 1046, 1153->1152, 1382, 1536, 1551, 1557, 1601, 1659->1670, 1759->1758, 1790, 1919, 1924, 1937, 1954, 1963, 2048
chalice/awsclient.py 802 25 236 11 96% 246, 326->329, 396, 493->495, 499->501, 684->690, 962, 1049-1050, 1195-1215, 1631, 1633, 1637, 1656->1648
chalice/cdk/init.py 6 6 0 0 0% 1-10
chalice/cdk/construct.py 59 59 10 0 0% 1-161
chalice/cli/init.py 321 25 44 6 91% 44->46, 155, 330-335, 396->398, 399-400, 456-470, 611, 638-642, 644-645
chalice/cli/factory.py 171 10 38 2 92% 99-108, 132, 171, 190, 214-216, 287->289
chalice/cli/filewatch/init.py 18 0 2 0 100%
chalice/cli/filewatch/eventbased.py 24 21 2 0 12% 5-47
chalice/cli/filewatch/stat.py 68 0 22 1 99% 50->exit
chalice/cli/newproj.py 79 7 24 1 90% 86, 93, 162-170
chalice/cli/reloader.py 54 21 6 2 58% 45-46, 55-56, 61->63, 75-76, 83-93, 111-114
chalice/compat.py 40 21 10 2 42% 25-34, 48-112
chalice/config.py 182 5 56 4 95% 159, 164-166, 230->228, 406
chalice/constants.py 26 0 0 0 100%
chalice/deploy/init.py 0 0 0 0 100%
chalice/deploy/appgraph.py 272 2 97 4 98% 123->86, 308, 566->568, 677
chalice/deploy/deployer.py 312 3 62 6 98% 440->exit, 472->478, 542->exit, 554->exit, 590, 593, 679
chalice/deploy/executor.py 177 2 42 0 99% 22, 308
chalice/deploy/models.py 249 0 88 0 100%
chalice/deploy/packager.py 546 16 192 13 96% 144, 146-150, 161, 166, 240-241, 319-320, 364-366, 468, 513, 517->523, 554->552, 967->969, 969->971
chalice/deploy/planner.py 397 7 102 6 97% 95, 126, 207->202, 314->317, 1232, 1321, 1369, 1384, 1402
chalice/deploy/swagger.py 123 0 42 1 99% 96->99
chalice/deploy/sweeper.py 156 12 60 1 90% 44->exit, 90-97, 101-108, 338, 349
chalice/deploy/validate.py 130 1 87 1 99% 243
chalice/invoke.py 63 0 12 0 100%
chalice/local.py 355 0 78 4 99% 321->347, 385->384, 445->447, 505->507
chalice/logs.py 102 1 28 1 98% 148, 176->exit
chalice/package.py 539 4 134 2 99% 755->757, 1233, 1237, 1318->1322, 1403, 1407
chalice/pipeline.py 171 1 30 3 98% 99->101, 154, 485->487
chalice/policy.py 101 3 30 5 94% 98, 108->117, 117->119, 119->121, 159-161
chalice/test.py 138 0 20 0 100%
chalice/utils.py 218 2 38 1 99% 222, 335
chalice/vendored/init.py 0 0 0 0 100%
chalice/vendored/botocore/init.py 0 0 0 0 100%
chalice/vendored/botocore/regions.py 87 13 46 2 83% 99-102, 120-129, 173

TOTAL 7399 310 1994 114 95%

======================================================= 1363 passed, 15 skipped, 4 warnings in 110.23s (0:01:50) =======================================================

DOC8

Correct rst formatting for documentation

TODO: Remove doc8

doc8 docs/source --ignore-path docs/source/topics/multifile.rst
Scanning...
Validating...

Total files scanned = 40
Total files ignored = 1
Total accumulated errors = 0
Detailed error counts:
- doc8.checks.CheckCarriageReturn = 0
- doc8.checks.CheckIndentationNoTab = 0
- doc8.checks.CheckMaxLineLength = 0
- doc8.checks.CheckNewlineEndOfFile = 0
- doc8.checks.CheckTrailingWhitespace = 0
- doc8.checks.CheckValidity = 0

Verify we have no broken external links

as well as no undefined internal references.

make -C docs linkcheck
make[1]: Entering directory '/chalice/docs'
sphinx-build -b linkcheck -d build/doctrees -W source build/linkcheck
Running Sphinx v4.1.2
making output directory... done
building [mo]: targets for 0 po files that are out of date
building [linkcheck]: targets for 38 source files that are out of date
updating environment: [new config] 38 added, 0 changed, 0 removed
reading sources... [100%] upgrading
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] upgrading

( topics/cfn: line 4) redirect http://boto3.readthedocs.io/en/docs/ - with Found to https://boto3.amazonaws.com/v1/documentation/api/latest/index.html
( quickstart: line 48) redirect http://boto3.readthedocs.io/en/latest/guide/configuration.html - with Found to https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html
( topics/routing: line 4) ok http://bottlepy.org/docs/dev/index.html
( api: line 203) redirect https://amzn.to/2OlqZso - permanently to https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html
(topics/configfile: line 47) redirect https://amzn.to/2LofApt - permanently to https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-endpoint-types.html
( tutorials/cdk: line 4) ok https://aws.amazon.com/cdk/
(topics/middleware: line 343) ok https://aws.amazon.com/blogs/developer/following-serverless-best-practices-with-aws-chalice-and-lambda-powertools/
( topics/cd: line 82) ok https://aws.amazon.com/codebuild/
( topics/cd: line 76) ok https://aws.amazon.com/codecommit/
( topics/cd: line 79) ok https://aws.amazon.com/codepipeline/
( topics/cd: line 40) ok https://aws.amazon.com/secrets-manager/
(tutorials/events: line 35) ok https://aws.amazon.com/sns/
(tutorials/customdomain: line 224) ok https://aws.github.io/chalice/topics/configfile.html#api-gateway-custom-domain
( topics/events: line 78) redirect https://amzn.to/2SCgWA6 - permanently to https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html
(topics/middleware: line 273) ok https://awslabs.github.io/aws-lambda-powertools-python/latest/
(topics/middleware: line 278) ok https://awslabs.github.io/aws-lambda-powertools-python/latest/core/logger/
(samples/todo-app/index: line 306) ok https://boto3.amazonaws.com/v1/documentation/api/latest/reference/customizations/dynamodb.html#dynamodb-conditions
( topics/testing: line 273) ok https://botocore.amazonaws.com/v1/documentation/api/latest/reference/stubber.html
(topics/middleware: line 278) ok https://awslabs.github.io/aws-lambda-powertools-python/latest/core/tracer/
(samples/media-query/index: line 50) ok https://chalice-workshop.readthedocs.io/en/latest/media-query/index.html
(samples/todo-app/index: line 24) ok https://chalice-workshop.readthedocs.io/en/latest/todo-app/index.html
( api: line 1111) ok https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
(topics/authorizers: line 25) ok https://docs.aws.amazon.com/IAM/latest/UserGuide/access_controlling.html
( api: line 189) redirect https://docs.aws.amazon.com/AmazonCloudWatchEvents/latest/APIReference/API_PutRule.html#API_PutRule_RequestSyntax - with Found to https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutRule.html#API_PutRule_RequestSyntax
( topics/events: line 108) redirect https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html - with Found to https://docs.aws.amazon.com/AmazonS3/latest/userguide/NotificationHowTo.html
( api: line 257) redirect https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#supported-notification-event-types - with Found to https://docs.aws.amazon.com/AmazonS3/latest/userguide/NotificationHowTo.html#supported-notification-event-types
(topics/configfile: line 261) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-gzip-compression-decompression.html
(tutorials/customdomain: line 156) redirect https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html - permanently to https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html
(topics/authorizers: line 70) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html
(tutorials/customdomain: line 156) redirect https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html - permanently to https://docs.aws.amazon.com/acm/latest/userguide/email-validation.html
(topics/authorizers: line 114) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html
(topics/configfile: line 206) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html
(topics/domainname: line 9) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains-prerequisites.html
( topics/sdks: line 13) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-generate-sdk.html
(topics/authorizers: line 42) ok https://docs.aws.amazon.com/apigateway/latest/developerguide/permissions.html
(topics/configfile: line 457) ok https://docs.aws.amazon.com/apigatewayv2/latest/api-reference/domainnames-domainname-apimappings.html
( tutorials/cdk: line 22) ok https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html#getting_started_prerequisites
( topics/events: line 262) ok https://docs.aws.amazon.com/cli/latest/reference/sqs/get-queue-attributes.html
(samples/media-query/index: line 118) ok https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
( topics/cd: line 35) ok https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html
( topics/cd: line 42) ok https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.phases.install.runtime-versions
( topics/cd: line 108) ok https://docs.aws.amazon.com/codebuild/latest/userguide/setting-up.html
(topics/authorizers: line 49) ok https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html
(topics/authorizers: line 235) ok https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.html
(topics/configfile: line 157) ok https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
(topics/configfile: line 271) redirect https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html
(topics/pyversion: line 4) ok https://docs.aws.amazon.com/lambda/latest/dg/lambda-python.html
( topics/logging: line 4) ok https://docs.aws.amazon.com/lambda/latest/dg/python-logging.html
( api: line 32) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-context.html
(topics/purelambda: line 20) redirect https://docs.aws.amazon.com/lambda/latest/dg/python-programming-model-handler-types.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/python-handler.html
( topics/events: line 326) redirect https://docs.aws.amazon.com/lambda/latest/dg/scaling.html - with Found to https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html
( api: line 394) ok https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
( api: line 349) ok https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
(topics/configfile: line 282) redirect https://docs.aws.amazon.com/lambda/latest/dg/vpc.html#vpc-configuring - with Found to https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html#vpc-configuring
( api: line 293) ok https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
( topics/testing: line 34) ok https://docs.pytest.org/en/stable/
( topics/testing: line 368) ok https://docs.pytest.org/en/stable/fixture.html
(samples/todo-app/index: line 344) ok https://docs.python.org/3/library/hashlib.html#hashlib.pbkdf2_hmac
( topics/cd: line 207) ok https://docs.aws.amazon.com/secretsmanager/latest/userguide/manage_create-basic-secret.html
(samples/media-query/index: line 152) ok https://github.com/aws-samples/chalice-workshop/tree/master/code/media-query/final/assets
( upgrading: line 4) ok https://github.com/aws/chalice/blob/master/CHANGELOG.rst
( topics/cd: line 207) redirect https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token - permanently to https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token
(topics/blueprints: line 14) redirect https://flask.palletsprojects.com/blueprints/ - with Found to https://flask.palletsprojects.com/en/2.0.x/blueprints/
(topics/experimental: line 94) ok aws/chalice#1017
( upgrading: line 209) ok aws/chalice#348
(topics/experimental: line 98) ok aws/chalice#1019
( upgrading: line 15) ok aws/chalice#604
( samples/index: line 4) ok https://github.com/aws/chalice/tree/master/docs/source/samples
(samples/media-query/index: line 36) ok https://github.com/aws/chalice/tree/master/docs/source/samples/media-query/code/
(samples/todo-app/index: line 11) ok https://github.com/aws/chalice/tree/master/docs/source/samples/todo-app/code/
( tutorials/cdk: line 201) ok https://httpie.io/
(topics/experimental: line 87) ok aws/chalice#651
( topics/cfn: line 9) redirect https://github.com/awslabs/serverless-application-model - permanently to https://github.com/aws/serverless-application-model
( topics/routing: line 4) ok https://palletsprojects.com/p/flask/
( quickstart: line 3) ok https://www.python.org/downloads/
(samples/todo-app/index: line 334) ok https://jwt.io/
( topics/tf: line 10) ok https://www.terraform.io
(topics/packaging: line 312) ok https://pypi.org/project/cryptography/1.9/
(topics/experimental: line 87) ok aws/chalice#1023
(topics/experimental: line 94) ok aws/chalice#1041
build succeeded.

Look for any errors in the above output or in build/linkcheck/output.txt

Link check complete; look for any errors in the above output or in build/linkcheck/output.txt.
make[1]: Leaving directory '/chalice/docs'

Verify we can build the docs. The

treat warnings as errors flag is enabled

so any sphinx-build warnings will fail the build.

make -C docs html
make[1]: Entering directory '/chalice/docs'
sphinx-build -b html -d build/doctrees -W source build/html
Running Sphinx v4.1.2
making output directory... done
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 38 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
writing output... [100%] upgrading
generating indices... genindex done
writing additional pages... search done
copying images... [100%] img/auto-layer.png
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in build/html.

Build finished. The HTML pages are in build/html.
make[1]: Leaving directory '/chalice/docs'
mypy --ignore-missing-imports --follow-imports=skip -p chalice --disallow-untyped-defs --strict-optional --warn-no-return
Success: no issues found in 38 source files
make Success for python 3.6 environment
/usr/local/bin/cdk -> /usr/local/lib/node_modules/aws-cdk/bin/cdk

[email protected] postinstall /usr/local/lib/node_modules/aws-cdk/node_modules/cdk-assets/node_modules/aws-sdk
node scripts/check-node-version.js

[email protected] postinstall /usr/local/lib/node_modules/aws-cdk/node_modules/aws-sdk
node scripts/check-node-version.js

tests/functional/cdk/test_construct.py ... [100%]

=========================================================================== warnings summary ===========================================================================
tests/functional/cdk/test_construct.py::test_cdk_construct_api
/usr/lib/python3.6/site-packages/pip/pep425tags.py:260: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp

-- Docs: https://docs.pytest.org/en/stable/warnings.html
==================================================================== 3 passed, 1 warning in 32.48s =====================================================================
cdktests Test Success
[root@11379890d008 /]#

c/chalice/chalice_ubi_8.3.sh Outdated Show resolved Hide resolved
# Dependency installation
sudo dnf install python36 -y
sudo dnf install -y git make python3-devel openssl-devel.ppc64le gcc
dnf install nodejs npm -y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to use "sudo" for running "dnf install" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeap ,sudo is required and added.

@asellappen asellappen force-pushed the arumugam_work_branch_chalice_ubi branch from fae064e to 17493e0 Compare September 9, 2021 04:34
c/chalice/chalice_ubi_8.3.sh Outdated Show resolved Hide resolved
@asellappen
Copy link
Contributor Author

asellappen commented Sep 14, 2021

Yes , This has been tested on master and 1.22.4 .
1.22.4 is required version to be tested as per spread sheet.

@gururajrkatti
Copy link
Contributor

Can we find out what is the master version and list it in the header

@asellappen asellappen force-pushed the arumugam_work_branch_chalice_ubi branch from 17493e0 to 4ab1d12 Compare September 15, 2021 16:24
Copy link
Contributor Author

@asellappen asellappen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we find out what is the master version and list it in the header

done..added 1.21.8 also as there is another required version for this package in row 154 on spreadsheet.

c/chalice/chalice_ubi_8.3.sh Outdated Show resolved Hide resolved
# Dependency installation
sudo dnf install python36 -y
sudo dnf install -y git make python3-devel openssl-devel.ppc64le gcc
dnf install nodejs npm -y
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeap ,sudo is required and added.

@asellappen
Copy link
Contributor Author

.added master and 1.21.8 also as there is another required version for this package in row 154 on spreadsheet.

Copy link
Contributor

@gururajrkatti gururajrkatti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@seth-priya seth-priya merged commit befc2d5 into ppc64le:master Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants