Mock Version: 6.5 Mock Version: 6.5 Mock Version: 6.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-chalice.spec'], chrootPath='/var/lib/mock/f45-build-50330-890/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=995gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'f7bf54300cc24c38aa7fefa186a2f294', '-D', '/var/lib/mock/f45-build-50330-890/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-chalice.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1737158400 Wrote: /builddir/build/SRPMS/python-chalice-1.31.2-3.fc45.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-chalice.spec'], chrootPath='/var/lib/mock/f45-build-50330-890/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=995gid=135user='mockbuild'unshare_net=TrueraiseExc=FalseprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '5e16184d6b6149a99aa8e5740b01a9a9', '-D', '/var/lib/mock/f45-build-50330-890/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-chalice.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1737158400 Executing(mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.DBe7Ur Creating(rpmbuild.env): /builddir/build/BUILD/python-chalice-1.31.2-build/rpmbuild.env RPM_SOURCE_DIR="/builddir/build/SOURCES" RPM_BUILD_DIR="/builddir/build/BUILD/python-chalice-1.31.2-build" RPM_OPT_FLAGS="-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" RPM_LD_FLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 " RPM_ARCH="noarch" RPM_OS="linux" RPM_BUILD_NCPUS="8" RPM_SPECPARTS_DIR="/builddir/build/BUILD/python-chalice-1.31.2-build/SPECPARTS" export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS RPM_SPECPARTS_DIR RPM_LD_FLAGS RPM_DOC_DIR="/usr/share/doc" export RPM_DOC_DIR RPM_PACKAGE_NAME="python-chalice" RPM_PACKAGE_VERSION="1.31.2" RPM_PACKAGE_RELEASE="3.fc45" export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE LANG=C.UTF-8 export LANG unset CDPATH DISPLAY ||: unset DEBUGINFOD_URLS ||: unset RPM_CONFIG_DIR ||: RPM_BUILD_ROOT="/builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT" export RPM_BUILD_ROOT PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib/pkgconfig:/usr/share/pkgconfig" export PKG_CONFIG_PATH CONFIG_SITE=${CONFIG_SITE:-NONE} export CONFIG_SITE Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.edlE4A + umask 022 + cd /builddir/build/BUILD/python-chalice-1.31.2-build + cd /builddir/build/BUILD/python-chalice-1.31.2-build + rm -rf chalice-1.31.2 + /usr/bin/rpmuncompress -x /builddir/build/SOURCES/chalice-1.31.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd chalice-1.31.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i 's:'\''inquirer.*$:'\''inquirer'\'',:' setup.py + sed -i 's/'\''pip>=9,<[^,]\+'\'',/'\''pip>=9'\'',/' setup.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.6XuVmm + umask 022 + cd /builddir/build/BUILD/python-chalice-1.31.2-build + cd chalice-1.31.2 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir + RPM_TOXENV=py315 + FEDORA=45 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-chalice-1.31.2-build/pyproject-wheeldir --output /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-buildrequires --dep-overrides-file /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-dep-overrides -r requirements-test.in Handling pytest from requirements file requirements-test.in Requirement not satisfied: pytest Handling boto3<2.0.0 from requirements file requirements-test.in Requirement not satisfied: boto3<2.0.0 Handling hypothesis from requirements file requirements-test.in Requirement not satisfied: hypothesis Handling coverage from requirements file requirements-test.in Requirement not satisfied: coverage Handling websocket-client<2.0.0 from requirements file requirements-test.in Requirement not satisfied: websocket-client<2.0.0 Handling pytest-cov from requirements file requirements-test.in Requirement not satisfied: pytest-cov Handling requests from requirements file requirements-test.in Requirement not satisfied: requests Exiting dependency generation pass: all requirements files + cat /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-chalice-1.31.2-3.fc45.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-chalice.spec'], chrootPath='/var/lib/mock/f45-build-50330-890/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=995gid=135user='mockbuild'unshare_net=TrueraiseExc=FalseprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'cbe7138c525441c89906e6b04fe53b43', '-D', '/var/lib/mock/f45-build-50330-890/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -br --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-chalice.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1737158400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.lwFxVK + umask 022 + cd /builddir/build/BUILD/python-chalice-1.31.2-build + cd chalice-1.31.2 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir + RPM_TOXENV=py315 + FEDORA=45 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-chalice-1.31.2-build/pyproject-wheeldir --output /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-buildrequires --dep-overrides-file /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-dep-overrides -r requirements-test.in Handling pytest from requirements file requirements-test.in Requirement satisfied: pytest (installed: pytest 9.1.1) Handling boto3<2.0.0 from requirements file requirements-test.in Requirement satisfied: boto3<2.0.0 (installed: boto3 1.43.98) Handling hypothesis from requirements file requirements-test.in Requirement satisfied: hypothesis (installed: hypothesis 6.151.9) Handling coverage from requirements file requirements-test.in Requirement satisfied: coverage (installed: coverage 7.15.4) Handling websocket-client<2.0.0 from requirements file requirements-test.in Requirement satisfied: websocket-client<2.0.0 (installed: websocket-client 1.9.0) Handling pytest-cov from requirements file requirements-test.in Requirement satisfied: pytest-cov (installed: pytest-cov 7.1.0) Handling requests from requirements file requirements-test.in Requirement satisfied: requests (installed: requests 2.34.2) Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools>=40.8 (installed: setuptools 83.0.0) /usr/lib/python3.15/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: Apache Software License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running egg_info creating chalice.egg-info writing chalice.egg-info/PKG-INFO writing dependency_links to chalice.egg-info/dependency_links.txt writing entry points to chalice.egg-info/entry_points.txt writing requirements to chalice.egg-info/requires.txt writing top-level names to chalice.egg-info/top_level.txt writing manifest file 'chalice.egg-info/SOURCES.txt' reading manifest file 'chalice.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' adding license file 'LICENSE' adding license file 'NOTICE' writing manifest file 'chalice.egg-info/SOURCES.txt' running dist_info writing chalice.egg-info/PKG-INFO writing dependency_links to chalice.egg-info/dependency_links.txt writing entry points to chalice.egg-info/entry_points.txt writing requirements to chalice.egg-info/requires.txt writing top-level names to chalice.egg-info/top_level.txt reading manifest file 'chalice.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' adding license file 'LICENSE' adding license file 'NOTICE' writing manifest file 'chalice.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/python-chalice-1.31.2-build/chalice-1.31.2/chalice-1.31.2.dist-info' Handling click<9.0,>=7 from hook generated metadata: Requires-Dist (chalice) Requirement not satisfied: click<9.0,>=7 Handling botocore<2.0.0,>=1.14.0 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: botocore<2.0.0,>=1.14.0 (installed: botocore 1.43.109) Handling typing-extensions<5.0.0,>=4.0.0; python_version < "3.8" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: typing-extensions<5.0.0,>=4.0.0; python_version < "3.8" Handling six<2.0.0,>=1.10.0 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: six<2.0.0,>=1.10.0 (installed: six 1.17.0) Handling pip>=9 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: pip>=9 (installed: pip 26.1.2) Handling jmespath<2.0.0,>=0.9.3 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: jmespath<2.0.0,>=0.9.3 (installed: jmespath 1.0.1) Handling pyyaml<7.0.0,>=5.3.1 from hook generated metadata: Requires-Dist (chalice) Requirement not satisfied: pyyaml<7.0.0,>=5.3.1 Handling inquirer from hook generated metadata: Requires-Dist (chalice) Requirement not satisfied: inquirer Handling wheel from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: wheel (installed: wheel 0.46.3) Handling setuptools from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: setuptools (installed: setuptools 83.0.0) Handling watchdog==2.3.1; extra == "event-file-poller" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: watchdog==2.3.1; extra == "event-file-poller" Handling aws_cdk.aws_iam<2.0,>=1.85.0; extra == "cdk" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws_cdk.aws_iam<2.0,>=1.85.0; extra == "cdk" Handling aws_cdk.aws-s3-assets<2.0,>=1.85.0; extra == "cdk" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws_cdk.aws-s3-assets<2.0,>=1.85.0; extra == "cdk" Handling aws_cdk.cloudformation-include<2.0,>=1.85.0; extra == "cdk" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws_cdk.cloudformation-include<2.0,>=1.85.0; extra == "cdk" Handling aws_cdk.core<2.0,>=1.85.0; extra == "cdk" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws_cdk.core<2.0,>=1.85.0; extra == "cdk" Handling aws-cdk-lib<3.0,>2.0; extra == "cdkv2" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws-cdk-lib<3.0,>2.0; extra == "cdkv2" + cat /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-buildrequires + rm -rfv chalice-1.31.2.dist-info/ removed 'chalice-1.31.2.dist-info/entry_points.txt' removed 'chalice-1.31.2.dist-info/top_level.txt' removed 'chalice-1.31.2.dist-info/METADATA' removed 'chalice-1.31.2.dist-info/licenses/LICENSE' removed 'chalice-1.31.2.dist-info/licenses/NOTICE' removed directory 'chalice-1.31.2.dist-info/licenses' removed directory 'chalice-1.31.2.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-chalice-1.31.2-3.fc45.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-chalice.spec'], chrootPath='/var/lib/mock/f45-build-50330-890/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=995gid=135user='mockbuild'unshare_net=TrueraiseExc=FalseprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'f572a0fb2df347dfa371263a406e1dbc', '-D', '/var/lib/mock/f45-build-50330-890/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -br --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-chalice.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1737158400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.2Cx7ze + umask 022 + cd /builddir/build/BUILD/python-chalice-1.31.2-build + cd chalice-1.31.2 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir + RPM_TOXENV=py315 + FEDORA=45 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-chalice-1.31.2-build/pyproject-wheeldir --output /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-buildrequires --dep-overrides-file /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-dep-overrides -r requirements-test.in Handling pytest from requirements file requirements-test.in Requirement satisfied: pytest (installed: pytest 9.1.1) Handling boto3<2.0.0 from requirements file requirements-test.in Requirement satisfied: boto3<2.0.0 (installed: boto3 1.43.98) Handling hypothesis from requirements file requirements-test.in Requirement satisfied: hypothesis (installed: hypothesis 6.151.9) Handling coverage from requirements file requirements-test.in Requirement satisfied: coverage (installed: coverage 7.15.4) Handling websocket-client<2.0.0 from requirements file requirements-test.in Requirement satisfied: websocket-client<2.0.0 (installed: websocket-client 1.9.0) Handling pytest-cov from requirements file requirements-test.in Requirement satisfied: pytest-cov (installed: pytest-cov 7.1.0) Handling requests from requirements file requirements-test.in Requirement satisfied: requests (installed: requests 2.34.2) Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools>=40.8 (installed: setuptools 83.0.0) /usr/lib/python3.15/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: Apache Software License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running egg_info writing chalice.egg-info/PKG-INFO writing dependency_links to chalice.egg-info/dependency_links.txt writing entry points to chalice.egg-info/entry_points.txt writing requirements to chalice.egg-info/requires.txt writing top-level names to chalice.egg-info/top_level.txt reading manifest file 'chalice.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' adding license file 'LICENSE' adding license file 'NOTICE' writing manifest file 'chalice.egg-info/SOURCES.txt' running dist_info writing chalice.egg-info/PKG-INFO writing dependency_links to chalice.egg-info/dependency_links.txt writing entry points to chalice.egg-info/entry_points.txt writing requirements to chalice.egg-info/requires.txt writing top-level names to chalice.egg-info/top_level.txt reading manifest file 'chalice.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' adding license file 'LICENSE' adding license file 'NOTICE' writing manifest file 'chalice.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/python-chalice-1.31.2-build/chalice-1.31.2/chalice-1.31.2.dist-info' Handling click<9.0,>=7 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: click<9.0,>=7 (installed: click 8.4.2) Handling botocore<2.0.0,>=1.14.0 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: botocore<2.0.0,>=1.14.0 (installed: botocore 1.43.109) Handling typing-extensions<5.0.0,>=4.0.0; python_version < "3.8" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: typing-extensions<5.0.0,>=4.0.0; python_version < "3.8" Handling six<2.0.0,>=1.10.0 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: six<2.0.0,>=1.10.0 (installed: six 1.17.0) Handling pip>=9 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: pip>=9 (installed: pip 26.1.2) Handling jmespath<2.0.0,>=0.9.3 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: jmespath<2.0.0,>=0.9.3 (installed: jmespath 1.0.1) Handling pyyaml<7.0.0,>=5.3.1 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: pyyaml<7.0.0,>=5.3.1 (installed: pyyaml 6.0.3) Handling inquirer from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: inquirer (installed: inquirer 3.4.1) Handling wheel from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: wheel (installed: wheel 0.48.0) Handling setuptools from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: setuptools (installed: setuptools 83.0.0) Handling watchdog==2.3.1; extra == "event-file-poller" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: watchdog==2.3.1; extra == "event-file-poller" Handling aws_cdk.aws_iam<2.0,>=1.85.0; extra == "cdk" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws_cdk.aws_iam<2.0,>=1.85.0; extra == "cdk" Handling aws_cdk.aws-s3-assets<2.0,>=1.85.0; extra == "cdk" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws_cdk.aws-s3-assets<2.0,>=1.85.0; extra == "cdk" Handling aws_cdk.cloudformation-include<2.0,>=1.85.0; extra == "cdk" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws_cdk.cloudformation-include<2.0,>=1.85.0; extra == "cdk" Handling aws_cdk.core<2.0,>=1.85.0; extra == "cdk" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws_cdk.core<2.0,>=1.85.0; extra == "cdk" Handling aws-cdk-lib<3.0,>2.0; extra == "cdkv2" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws-cdk-lib<3.0,>2.0; extra == "cdkv2" + cat /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-buildrequires + rm -rfv chalice-1.31.2.dist-info/ removed 'chalice-1.31.2.dist-info/entry_points.txt' removed 'chalice-1.31.2.dist-info/top_level.txt' removed 'chalice-1.31.2.dist-info/METADATA' removed 'chalice-1.31.2.dist-info/licenses/LICENSE' removed 'chalice-1.31.2.dist-info/licenses/NOTICE' removed directory 'chalice-1.31.2.dist-info/licenses' removed directory 'chalice-1.31.2.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-chalice-1.31.2-3.fc45.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-chalice.spec'], chrootPath='/var/lib/mock/f45-build-50330-890/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=995gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'd647f4a2bc8944fe9505740652d38030', '-D', '/var/lib/mock/f45-build-50330-890/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-chalice.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1737158400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.7ouGby + umask 022 + cd /builddir/build/BUILD/python-chalice-1.31.2-build + cd chalice-1.31.2 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + '[' -f setup.py ']' + echo 'python3dist(setuptools) >= 40.8' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir + RPM_TOXENV=py315 + FEDORA=45 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-chalice-1.31.2-build/pyproject-wheeldir --output /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-buildrequires --dep-overrides-file /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-dep-overrides -r requirements-test.in Handling pytest from requirements file requirements-test.in Requirement satisfied: pytest (installed: pytest 9.1.1) Handling boto3<2.0.0 from requirements file requirements-test.in Requirement satisfied: boto3<2.0.0 (installed: boto3 1.43.98) Handling hypothesis from requirements file requirements-test.in Requirement satisfied: hypothesis (installed: hypothesis 6.151.9) Handling coverage from requirements file requirements-test.in Requirement satisfied: coverage (installed: coverage 7.15.4) Handling websocket-client<2.0.0 from requirements file requirements-test.in Requirement satisfied: websocket-client<2.0.0 (installed: websocket-client 1.9.0) Handling pytest-cov from requirements file requirements-test.in Requirement satisfied: pytest-cov (installed: pytest-cov 7.1.0) Handling requests from requirements file requirements-test.in Requirement satisfied: requests (installed: requests 2.34.2) Handling setuptools >= 40.8 from default build backend Requirement satisfied: setuptools>=40.8 (installed: setuptools 83.0.0) /usr/lib/python3.15/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: Apache Software License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running egg_info writing chalice.egg-info/PKG-INFO writing dependency_links to chalice.egg-info/dependency_links.txt writing entry points to chalice.egg-info/entry_points.txt writing requirements to chalice.egg-info/requires.txt writing top-level names to chalice.egg-info/top_level.txt reading manifest file 'chalice.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' adding license file 'LICENSE' adding license file 'NOTICE' writing manifest file 'chalice.egg-info/SOURCES.txt' running dist_info writing chalice.egg-info/PKG-INFO writing dependency_links to chalice.egg-info/dependency_links.txt writing entry points to chalice.egg-info/entry_points.txt writing requirements to chalice.egg-info/requires.txt writing top-level names to chalice.egg-info/top_level.txt reading manifest file 'chalice.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' adding license file 'LICENSE' adding license file 'NOTICE' writing manifest file 'chalice.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/python-chalice-1.31.2-build/chalice-1.31.2/chalice-1.31.2.dist-info' Handling click<9.0,>=7 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: click<9.0,>=7 (installed: click 8.4.2) Handling botocore<2.0.0,>=1.14.0 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: botocore<2.0.0,>=1.14.0 (installed: botocore 1.43.109) Handling typing-extensions<5.0.0,>=4.0.0; python_version < "3.8" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: typing-extensions<5.0.0,>=4.0.0; python_version < "3.8" Handling six<2.0.0,>=1.10.0 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: six<2.0.0,>=1.10.0 (installed: six 1.17.0) Handling pip>=9 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: pip>=9 (installed: pip 26.1.2) Handling jmespath<2.0.0,>=0.9.3 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: jmespath<2.0.0,>=0.9.3 (installed: jmespath 1.0.1) Handling pyyaml<7.0.0,>=5.3.1 from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: pyyaml<7.0.0,>=5.3.1 (installed: pyyaml 6.0.3) Handling inquirer from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: inquirer (installed: inquirer 3.4.1) Handling wheel from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: wheel (installed: wheel 0.48.0) Handling setuptools from hook generated metadata: Requires-Dist (chalice) Requirement satisfied: setuptools (installed: setuptools 83.0.0) Handling watchdog==2.3.1; extra == "event-file-poller" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: watchdog==2.3.1; extra == "event-file-poller" Handling aws_cdk.aws_iam<2.0,>=1.85.0; extra == "cdk" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws_cdk.aws_iam<2.0,>=1.85.0; extra == "cdk" Handling aws_cdk.aws-s3-assets<2.0,>=1.85.0; extra == "cdk" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws_cdk.aws-s3-assets<2.0,>=1.85.0; extra == "cdk" Handling aws_cdk.cloudformation-include<2.0,>=1.85.0; extra == "cdk" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws_cdk.cloudformation-include<2.0,>=1.85.0; extra == "cdk" Handling aws_cdk.core<2.0,>=1.85.0; extra == "cdk" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws_cdk.core<2.0,>=1.85.0; extra == "cdk" Handling aws-cdk-lib<3.0,>2.0; extra == "cdkv2" from hook generated metadata: Requires-Dist (chalice) Ignoring alien requirement: aws-cdk-lib<3.0,>2.0; extra == "cdkv2" + cat /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-buildrequires + rm -rfv chalice-1.31.2.dist-info/ removed 'chalice-1.31.2.dist-info/entry_points.txt' removed 'chalice-1.31.2.dist-info/top_level.txt' removed 'chalice-1.31.2.dist-info/METADATA' removed 'chalice-1.31.2.dist-info/licenses/LICENSE' removed 'chalice-1.31.2.dist-info/licenses/NOTICE' removed directory 'chalice-1.31.2.dist-info/licenses' removed directory 'chalice-1.31.2.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.woihPg + umask 022 + cd /builddir/build/BUILD/python-chalice-1.31.2-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd chalice-1.31.2 + mkdir -p /builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/python-chalice-1.31.2-build/pyproject-wheeldir Processing ./. Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) /usr/lib/python3.15/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: Apache Software License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running dist_info creating /builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir/pip-modern-metadata-zkbhn1jn/chalice.egg-info writing /builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir/pip-modern-metadata-zkbhn1jn/chalice.egg-info/PKG-INFO writing dependency_links to /builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir/pip-modern-metadata-zkbhn1jn/chalice.egg-info/dependency_links.txt writing entry points to /builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir/pip-modern-metadata-zkbhn1jn/chalice.egg-info/entry_points.txt writing requirements to /builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir/pip-modern-metadata-zkbhn1jn/chalice.egg-info/requires.txt writing top-level names to /builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir/pip-modern-metadata-zkbhn1jn/chalice.egg-info/top_level.txt writing manifest file '/builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir/pip-modern-metadata-zkbhn1jn/chalice.egg-info/SOURCES.txt' reading manifest file '/builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir/pip-modern-metadata-zkbhn1jn/chalice.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' adding license file 'LICENSE' adding license file 'NOTICE' writing manifest file '/builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir/pip-modern-metadata-zkbhn1jn/chalice.egg-info/SOURCES.txt' creating '/builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir/pip-modern-metadata-zkbhn1jn/chalice-1.31.2.dist-info' Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: chalice Building wheel for chalice (pyproject.toml): started Running command Building wheel for chalice (pyproject.toml) /usr/lib/python3.15/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: Apache Software License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running bdist_wheel running build running build_py creating build/lib/chalice copying chalice/__init__.py -> build/lib/chalice copying chalice/analyzer.py -> build/lib/chalice copying chalice/app.py -> build/lib/chalice copying chalice/awsclient.py -> build/lib/chalice copying chalice/compat.py -> build/lib/chalice copying chalice/config.py -> build/lib/chalice copying chalice/constants.py -> build/lib/chalice copying chalice/invoke.py -> build/lib/chalice copying chalice/local.py -> build/lib/chalice copying chalice/logs.py -> build/lib/chalice copying chalice/package.py -> build/lib/chalice copying chalice/pipeline.py -> build/lib/chalice copying chalice/policy.py -> build/lib/chalice copying chalice/test.py -> build/lib/chalice copying chalice/utils.py -> build/lib/chalice creating build/lib/chalice/api copying chalice/api/__init__.py -> build/lib/chalice/api creating build/lib/chalice/cdk copying chalice/cdk/__init__.py -> build/lib/chalice/cdk copying chalice/cdk/construct.py -> build/lib/chalice/cdk creating build/lib/chalice/cli copying chalice/cli/__init__.py -> build/lib/chalice/cli copying chalice/cli/factory.py -> build/lib/chalice/cli copying chalice/cli/newproj.py -> build/lib/chalice/cli copying chalice/cli/reloader.py -> build/lib/chalice/cli creating build/lib/chalice/deploy copying chalice/deploy/__init__.py -> build/lib/chalice/deploy copying chalice/deploy/appgraph.py -> build/lib/chalice/deploy copying chalice/deploy/deployer.py -> build/lib/chalice/deploy copying chalice/deploy/executor.py -> build/lib/chalice/deploy copying chalice/deploy/models.py -> build/lib/chalice/deploy copying chalice/deploy/packager.py -> build/lib/chalice/deploy copying chalice/deploy/planner.py -> build/lib/chalice/deploy copying chalice/deploy/swagger.py -> build/lib/chalice/deploy copying chalice/deploy/sweeper.py -> build/lib/chalice/deploy copying chalice/deploy/validate.py -> build/lib/chalice/deploy creating build/lib/chalice/vendored copying chalice/vendored/__init__.py -> build/lib/chalice/vendored creating build/lib/chalice/cli/filewatch copying chalice/cli/filewatch/__init__.py -> build/lib/chalice/cli/filewatch copying chalice/cli/filewatch/eventbased.py -> build/lib/chalice/cli/filewatch copying chalice/cli/filewatch/stat.py -> build/lib/chalice/cli/filewatch creating build/lib/chalice/vendored/botocore copying chalice/vendored/botocore/__init__.py -> build/lib/chalice/vendored/botocore copying chalice/vendored/botocore/regions.py -> build/lib/chalice/vendored/botocore running egg_info writing chalice.egg-info/PKG-INFO writing dependency_links to chalice.egg-info/dependency_links.txt writing entry points to chalice.egg-info/entry_points.txt writing requirements to chalice.egg-info/requires.txt writing top-level names to chalice.egg-info/top_level.txt reading manifest file 'chalice.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' adding license file 'LICENSE' adding license file 'NOTICE' writing manifest file 'chalice.egg-info/SOURCES.txt' /usr/lib/python3.15/site-packages/setuptools/command/build_py.py:215: _Warning: Package 'chalice.templates' is absent from the `packages` configuration. !! ******************************************************************************** ############################ # Package would be ignored # ############################ Python recognizes 'chalice.templates' as an importable package[^1], but it is absent from setuptools' `packages` configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'chalice.templates' is explicitly added to the `packages` configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'chalice.templates' to be distributed and are already explicitly excluding 'chalice.templates' via `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, you can try to use `exclude_package_data`, or `include-package-data=False` in combination with a more fine grained `package-data` configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any `.py` files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. ******************************************************************************** !! check.warn(importable) copying chalice/policies-extra.json -> build/lib/chalice copying chalice/policies.json -> build/lib/chalice copying chalice/py.typed -> build/lib/chalice creating build/lib/chalice/templates/0000-rest-api copying chalice/templates/0000-rest-api/.gitignore -> build/lib/chalice/templates/0000-rest-api copying chalice/templates/0000-rest-api/app.py -> build/lib/chalice/templates/0000-rest-api copying chalice/templates/0000-rest-api/metadata.json -> build/lib/chalice/templates/0000-rest-api copying chalice/templates/0000-rest-api/requirements-dev.txt -> build/lib/chalice/templates/0000-rest-api copying chalice/templates/0000-rest-api/requirements.txt -> build/lib/chalice/templates/0000-rest-api creating build/lib/chalice/templates/0000-rest-api/.chalice copying chalice/templates/0000-rest-api/.chalice/config.json -> build/lib/chalice/templates/0000-rest-api/.chalice creating build/lib/chalice/templates/0000-rest-api/chalicelib copying chalice/templates/0000-rest-api/chalicelib/__init__.py -> build/lib/chalice/templates/0000-rest-api/chalicelib creating build/lib/chalice/templates/0000-rest-api/tests copying chalice/templates/0000-rest-api/tests/__init__.py -> build/lib/chalice/templates/0000-rest-api/tests copying chalice/templates/0000-rest-api/tests/test_app.py -> build/lib/chalice/templates/0000-rest-api/tests creating build/lib/chalice/templates/0002-s3-event-handler copying chalice/templates/0002-s3-event-handler/.gitignore -> build/lib/chalice/templates/0002-s3-event-handler copying chalice/templates/0002-s3-event-handler/app.py -> build/lib/chalice/templates/0002-s3-event-handler copying chalice/templates/0002-s3-event-handler/metadata.json -> build/lib/chalice/templates/0002-s3-event-handler copying chalice/templates/0002-s3-event-handler/requirements-dev.txt -> build/lib/chalice/templates/0002-s3-event-handler copying chalice/templates/0002-s3-event-handler/requirements.txt -> build/lib/chalice/templates/0002-s3-event-handler creating build/lib/chalice/templates/0002-s3-event-handler/.chalice copying chalice/templates/0002-s3-event-handler/.chalice/config.json -> build/lib/chalice/templates/0002-s3-event-handler/.chalice creating build/lib/chalice/templates/0002-s3-event-handler/chalicelib copying chalice/templates/0002-s3-event-handler/chalicelib/__init__.py -> build/lib/chalice/templates/0002-s3-event-handler/chalicelib creating build/lib/chalice/templates/0002-s3-event-handler/tests copying chalice/templates/0002-s3-event-handler/tests/__init__.py -> build/lib/chalice/templates/0002-s3-event-handler/tests copying chalice/templates/0002-s3-event-handler/tests/test_app.py -> build/lib/chalice/templates/0002-s3-event-handler/tests creating build/lib/chalice/templates/0007-lambda-only copying chalice/templates/0007-lambda-only/.gitignore -> build/lib/chalice/templates/0007-lambda-only copying chalice/templates/0007-lambda-only/app.py -> build/lib/chalice/templates/0007-lambda-only copying chalice/templates/0007-lambda-only/metadata.json -> build/lib/chalice/templates/0007-lambda-only copying chalice/templates/0007-lambda-only/requirements-dev.txt -> build/lib/chalice/templates/0007-lambda-only copying chalice/templates/0007-lambda-only/requirements.txt -> build/lib/chalice/templates/0007-lambda-only creating build/lib/chalice/templates/0007-lambda-only/.chalice copying chalice/templates/0007-lambda-only/.chalice/config.json -> build/lib/chalice/templates/0007-lambda-only/.chalice creating build/lib/chalice/templates/0007-lambda-only/chalicelib copying chalice/templates/0007-lambda-only/chalicelib/__init__.py -> build/lib/chalice/templates/0007-lambda-only/chalicelib creating build/lib/chalice/templates/0007-lambda-only/tests copying chalice/templates/0007-lambda-only/tests/__init__.py -> build/lib/chalice/templates/0007-lambda-only/tests copying chalice/templates/0007-lambda-only/tests/test_app.py -> build/lib/chalice/templates/0007-lambda-only/tests creating build/lib/chalice/templates/0009-legacy copying chalice/templates/0009-legacy/.gitignore -> build/lib/chalice/templates/0009-legacy copying chalice/templates/0009-legacy/app.py -> build/lib/chalice/templates/0009-legacy copying chalice/templates/0009-legacy/metadata.json -> build/lib/chalice/templates/0009-legacy copying chalice/templates/0009-legacy/requirements.txt -> build/lib/chalice/templates/0009-legacy creating build/lib/chalice/templates/0009-legacy/.chalice copying chalice/templates/0009-legacy/.chalice/config.json -> build/lib/chalice/templates/0009-legacy/.chalice creating build/lib/chalice/templates/6001-cdk-ddb copying chalice/templates/6001-cdk-ddb/README.rst -> build/lib/chalice/templates/6001-cdk-ddb copying chalice/templates/6001-cdk-ddb/metadata.json -> build/lib/chalice/templates/6001-cdk-ddb copying chalice/templates/6001-cdk-ddb/requirements.txt -> build/lib/chalice/templates/6001-cdk-ddb creating build/lib/chalice/templates/6001-cdk-ddb/infrastructure copying chalice/templates/6001-cdk-ddb/infrastructure/app.py -> build/lib/chalice/templates/6001-cdk-ddb/infrastructure copying chalice/templates/6001-cdk-ddb/infrastructure/cdk.json -> build/lib/chalice/templates/6001-cdk-ddb/infrastructure copying chalice/templates/6001-cdk-ddb/infrastructure/requirements.txt -> build/lib/chalice/templates/6001-cdk-ddb/infrastructure creating build/lib/chalice/templates/6001-cdk-ddb/infrastructure/stacks copying chalice/templates/6001-cdk-ddb/infrastructure/stacks/__init__.py -> build/lib/chalice/templates/6001-cdk-ddb/infrastructure/stacks copying chalice/templates/6001-cdk-ddb/infrastructure/stacks/chaliceapp.py -> build/lib/chalice/templates/6001-cdk-ddb/infrastructure/stacks creating build/lib/chalice/templates/6001-cdk-ddb/runtime copying chalice/templates/6001-cdk-ddb/runtime/.gitignore -> build/lib/chalice/templates/6001-cdk-ddb/runtime copying chalice/templates/6001-cdk-ddb/runtime/app.py -> build/lib/chalice/templates/6001-cdk-ddb/runtime copying chalice/templates/6001-cdk-ddb/runtime/requirements.txt -> build/lib/chalice/templates/6001-cdk-ddb/runtime creating build/lib/chalice/templates/6001-cdk-ddb/runtime/.chalice copying chalice/templates/6001-cdk-ddb/runtime/.chalice/config.json -> build/lib/chalice/templates/6001-cdk-ddb/runtime/.chalice installing to build/bdist.linux-riscv64/wheel running install running install_lib creating build/bdist.linux-riscv64/wheel creating build/bdist.linux-riscv64/wheel/chalice copying build/lib/chalice/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/analyzer.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/app.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/awsclient.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/compat.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/config.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/constants.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/invoke.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/local.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/logs.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/package.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/pipeline.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/policy.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/test.py -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/utils.py -> build/bdist.linux-riscv64/wheel/./chalice creating build/bdist.linux-riscv64/wheel/chalice/api copying build/lib/chalice/api/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/api creating build/bdist.linux-riscv64/wheel/chalice/cdk copying build/lib/chalice/cdk/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/cdk copying build/lib/chalice/cdk/construct.py -> build/bdist.linux-riscv64/wheel/./chalice/cdk creating build/bdist.linux-riscv64/wheel/chalice/cli copying build/lib/chalice/cli/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/cli copying build/lib/chalice/cli/factory.py -> build/bdist.linux-riscv64/wheel/./chalice/cli copying build/lib/chalice/cli/newproj.py -> build/bdist.linux-riscv64/wheel/./chalice/cli copying build/lib/chalice/cli/reloader.py -> build/bdist.linux-riscv64/wheel/./chalice/cli creating build/bdist.linux-riscv64/wheel/chalice/cli/filewatch copying build/lib/chalice/cli/filewatch/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/cli/filewatch copying build/lib/chalice/cli/filewatch/eventbased.py -> build/bdist.linux-riscv64/wheel/./chalice/cli/filewatch copying build/lib/chalice/cli/filewatch/stat.py -> build/bdist.linux-riscv64/wheel/./chalice/cli/filewatch creating build/bdist.linux-riscv64/wheel/chalice/deploy copying build/lib/chalice/deploy/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/deploy copying build/lib/chalice/deploy/appgraph.py -> build/bdist.linux-riscv64/wheel/./chalice/deploy copying build/lib/chalice/deploy/deployer.py -> build/bdist.linux-riscv64/wheel/./chalice/deploy copying build/lib/chalice/deploy/executor.py -> build/bdist.linux-riscv64/wheel/./chalice/deploy copying build/lib/chalice/deploy/models.py -> build/bdist.linux-riscv64/wheel/./chalice/deploy copying build/lib/chalice/deploy/packager.py -> build/bdist.linux-riscv64/wheel/./chalice/deploy copying build/lib/chalice/deploy/planner.py -> build/bdist.linux-riscv64/wheel/./chalice/deploy copying build/lib/chalice/deploy/swagger.py -> build/bdist.linux-riscv64/wheel/./chalice/deploy copying build/lib/chalice/deploy/sweeper.py -> build/bdist.linux-riscv64/wheel/./chalice/deploy copying build/lib/chalice/deploy/validate.py -> build/bdist.linux-riscv64/wheel/./chalice/deploy creating build/bdist.linux-riscv64/wheel/chalice/vendored copying build/lib/chalice/vendored/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/vendored creating build/bdist.linux-riscv64/wheel/chalice/vendored/botocore copying build/lib/chalice/vendored/botocore/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/vendored/botocore copying build/lib/chalice/vendored/botocore/regions.py -> build/bdist.linux-riscv64/wheel/./chalice/vendored/botocore copying build/lib/chalice/policies-extra.json -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/policies.json -> build/bdist.linux-riscv64/wheel/./chalice copying build/lib/chalice/py.typed -> build/bdist.linux-riscv64/wheel/./chalice creating build/bdist.linux-riscv64/wheel/chalice/templates creating build/bdist.linux-riscv64/wheel/chalice/templates/0000-rest-api copying build/lib/chalice/templates/0000-rest-api/.gitignore -> build/bdist.linux-riscv64/wheel/./chalice/templates/0000-rest-api copying build/lib/chalice/templates/0000-rest-api/app.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/0000-rest-api copying build/lib/chalice/templates/0000-rest-api/metadata.json -> build/bdist.linux-riscv64/wheel/./chalice/templates/0000-rest-api copying build/lib/chalice/templates/0000-rest-api/requirements-dev.txt -> build/bdist.linux-riscv64/wheel/./chalice/templates/0000-rest-api copying build/lib/chalice/templates/0000-rest-api/requirements.txt -> build/bdist.linux-riscv64/wheel/./chalice/templates/0000-rest-api creating build/bdist.linux-riscv64/wheel/chalice/templates/0000-rest-api/.chalice copying build/lib/chalice/templates/0000-rest-api/.chalice/config.json -> build/bdist.linux-riscv64/wheel/./chalice/templates/0000-rest-api/.chalice creating build/bdist.linux-riscv64/wheel/chalice/templates/0000-rest-api/chalicelib copying build/lib/chalice/templates/0000-rest-api/chalicelib/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/0000-rest-api/chalicelib creating build/bdist.linux-riscv64/wheel/chalice/templates/0000-rest-api/tests copying build/lib/chalice/templates/0000-rest-api/tests/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/0000-rest-api/tests copying build/lib/chalice/templates/0000-rest-api/tests/test_app.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/0000-rest-api/tests creating build/bdist.linux-riscv64/wheel/chalice/templates/0002-s3-event-handler copying build/lib/chalice/templates/0002-s3-event-handler/.gitignore -> build/bdist.linux-riscv64/wheel/./chalice/templates/0002-s3-event-handler copying build/lib/chalice/templates/0002-s3-event-handler/app.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/0002-s3-event-handler copying build/lib/chalice/templates/0002-s3-event-handler/metadata.json -> build/bdist.linux-riscv64/wheel/./chalice/templates/0002-s3-event-handler copying build/lib/chalice/templates/0002-s3-event-handler/requirements-dev.txt -> build/bdist.linux-riscv64/wheel/./chalice/templates/0002-s3-event-handler copying build/lib/chalice/templates/0002-s3-event-handler/requirements.txt -> build/bdist.linux-riscv64/wheel/./chalice/templates/0002-s3-event-handler creating build/bdist.linux-riscv64/wheel/chalice/templates/0002-s3-event-handler/.chalice copying build/lib/chalice/templates/0002-s3-event-handler/.chalice/config.json -> build/bdist.linux-riscv64/wheel/./chalice/templates/0002-s3-event-handler/.chalice creating build/bdist.linux-riscv64/wheel/chalice/templates/0002-s3-event-handler/chalicelib copying build/lib/chalice/templates/0002-s3-event-handler/chalicelib/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/0002-s3-event-handler/chalicelib creating build/bdist.linux-riscv64/wheel/chalice/templates/0002-s3-event-handler/tests copying build/lib/chalice/templates/0002-s3-event-handler/tests/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/0002-s3-event-handler/tests copying build/lib/chalice/templates/0002-s3-event-handler/tests/test_app.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/0002-s3-event-handler/tests creating build/bdist.linux-riscv64/wheel/chalice/templates/0007-lambda-only copying build/lib/chalice/templates/0007-lambda-only/.gitignore -> build/bdist.linux-riscv64/wheel/./chalice/templates/0007-lambda-only copying build/lib/chalice/templates/0007-lambda-only/app.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/0007-lambda-only copying build/lib/chalice/templates/0007-lambda-only/metadata.json -> build/bdist.linux-riscv64/wheel/./chalice/templates/0007-lambda-only copying build/lib/chalice/templates/0007-lambda-only/requirements-dev.txt -> build/bdist.linux-riscv64/wheel/./chalice/templates/0007-lambda-only copying build/lib/chalice/templates/0007-lambda-only/requirements.txt -> build/bdist.linux-riscv64/wheel/./chalice/templates/0007-lambda-only creating build/bdist.linux-riscv64/wheel/chalice/templates/0007-lambda-only/.chalice copying build/lib/chalice/templates/0007-lambda-only/.chalice/config.json -> build/bdist.linux-riscv64/wheel/./chalice/templates/0007-lambda-only/.chalice creating build/bdist.linux-riscv64/wheel/chalice/templates/0007-lambda-only/chalicelib copying build/lib/chalice/templates/0007-lambda-only/chalicelib/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/0007-lambda-only/chalicelib creating build/bdist.linux-riscv64/wheel/chalice/templates/0007-lambda-only/tests copying build/lib/chalice/templates/0007-lambda-only/tests/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/0007-lambda-only/tests copying build/lib/chalice/templates/0007-lambda-only/tests/test_app.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/0007-lambda-only/tests creating build/bdist.linux-riscv64/wheel/chalice/templates/0009-legacy copying build/lib/chalice/templates/0009-legacy/.gitignore -> build/bdist.linux-riscv64/wheel/./chalice/templates/0009-legacy copying build/lib/chalice/templates/0009-legacy/app.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/0009-legacy copying build/lib/chalice/templates/0009-legacy/metadata.json -> build/bdist.linux-riscv64/wheel/./chalice/templates/0009-legacy copying build/lib/chalice/templates/0009-legacy/requirements.txt -> build/bdist.linux-riscv64/wheel/./chalice/templates/0009-legacy creating build/bdist.linux-riscv64/wheel/chalice/templates/0009-legacy/.chalice copying build/lib/chalice/templates/0009-legacy/.chalice/config.json -> build/bdist.linux-riscv64/wheel/./chalice/templates/0009-legacy/.chalice creating build/bdist.linux-riscv64/wheel/chalice/templates/6001-cdk-ddb copying build/lib/chalice/templates/6001-cdk-ddb/README.rst -> build/bdist.linux-riscv64/wheel/./chalice/templates/6001-cdk-ddb copying build/lib/chalice/templates/6001-cdk-ddb/metadata.json -> build/bdist.linux-riscv64/wheel/./chalice/templates/6001-cdk-ddb copying build/lib/chalice/templates/6001-cdk-ddb/requirements.txt -> build/bdist.linux-riscv64/wheel/./chalice/templates/6001-cdk-ddb creating build/bdist.linux-riscv64/wheel/chalice/templates/6001-cdk-ddb/infrastructure copying build/lib/chalice/templates/6001-cdk-ddb/infrastructure/app.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/6001-cdk-ddb/infrastructure copying build/lib/chalice/templates/6001-cdk-ddb/infrastructure/cdk.json -> build/bdist.linux-riscv64/wheel/./chalice/templates/6001-cdk-ddb/infrastructure copying build/lib/chalice/templates/6001-cdk-ddb/infrastructure/requirements.txt -> build/bdist.linux-riscv64/wheel/./chalice/templates/6001-cdk-ddb/infrastructure creating build/bdist.linux-riscv64/wheel/chalice/templates/6001-cdk-ddb/infrastructure/stacks copying build/lib/chalice/templates/6001-cdk-ddb/infrastructure/stacks/__init__.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/6001-cdk-ddb/infrastructure/stacks copying build/lib/chalice/templates/6001-cdk-ddb/infrastructure/stacks/chaliceapp.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/6001-cdk-ddb/infrastructure/stacks creating build/bdist.linux-riscv64/wheel/chalice/templates/6001-cdk-ddb/runtime copying build/lib/chalice/templates/6001-cdk-ddb/runtime/.gitignore -> build/bdist.linux-riscv64/wheel/./chalice/templates/6001-cdk-ddb/runtime copying build/lib/chalice/templates/6001-cdk-ddb/runtime/app.py -> build/bdist.linux-riscv64/wheel/./chalice/templates/6001-cdk-ddb/runtime copying build/lib/chalice/templates/6001-cdk-ddb/runtime/requirements.txt -> build/bdist.linux-riscv64/wheel/./chalice/templates/6001-cdk-ddb/runtime creating build/bdist.linux-riscv64/wheel/chalice/templates/6001-cdk-ddb/runtime/.chalice copying build/lib/chalice/templates/6001-cdk-ddb/runtime/.chalice/config.json -> build/bdist.linux-riscv64/wheel/./chalice/templates/6001-cdk-ddb/runtime/.chalice running install_egg_info Copying chalice.egg-info to build/bdist.linux-riscv64/wheel/./chalice-1.31.2-py3.15.egg-info running install_scripts creating build/bdist.linux-riscv64/wheel/chalice-1.31.2.dist-info/WHEEL creating '/builddir/.cache/pip/wheels/09/43/e9/11c2866dae7a960408afdb6e0c222a1206309ee7cebc677fd6/tmpsxm0ghx2/.tmp-x5xu1n94/chalice-1.31.2-py3-none-any.whl' and adding 'build/bdist.linux-riscv64/wheel' to it adding 'chalice/__init__.py' adding 'chalice/analyzer.py' adding 'chalice/app.py' adding 'chalice/awsclient.py' adding 'chalice/compat.py' adding 'chalice/config.py' adding 'chalice/constants.py' adding 'chalice/invoke.py' adding 'chalice/local.py' adding 'chalice/logs.py' adding 'chalice/package.py' adding 'chalice/pipeline.py' adding 'chalice/policies-extra.json' adding 'chalice/policies.json' adding 'chalice/policy.py' adding 'chalice/py.typed' adding 'chalice/test.py' adding 'chalice/utils.py' adding 'chalice/api/__init__.py' adding 'chalice/cdk/__init__.py' adding 'chalice/cdk/construct.py' adding 'chalice/cli/__init__.py' adding 'chalice/cli/factory.py' adding 'chalice/cli/newproj.py' adding 'chalice/cli/reloader.py' adding 'chalice/cli/filewatch/__init__.py' adding 'chalice/cli/filewatch/eventbased.py' adding 'chalice/cli/filewatch/stat.py' adding 'chalice/deploy/__init__.py' adding 'chalice/deploy/appgraph.py' adding 'chalice/deploy/deployer.py' adding 'chalice/deploy/executor.py' adding 'chalice/deploy/models.py' adding 'chalice/deploy/packager.py' adding 'chalice/deploy/planner.py' adding 'chalice/deploy/swagger.py' adding 'chalice/deploy/sweeper.py' adding 'chalice/deploy/validate.py' adding 'chalice/templates/0000-rest-api/.gitignore' adding 'chalice/templates/0000-rest-api/app.py' adding 'chalice/templates/0000-rest-api/metadata.json' adding 'chalice/templates/0000-rest-api/requirements-dev.txt' adding 'chalice/templates/0000-rest-api/requirements.txt' adding 'chalice/templates/0000-rest-api/.chalice/config.json' adding 'chalice/templates/0000-rest-api/chalicelib/__init__.py' adding 'chalice/templates/0000-rest-api/tests/__init__.py' adding 'chalice/templates/0000-rest-api/tests/test_app.py' adding 'chalice/templates/0002-s3-event-handler/.gitignore' adding 'chalice/templates/0002-s3-event-handler/app.py' adding 'chalice/templates/0002-s3-event-handler/metadata.json' adding 'chalice/templates/0002-s3-event-handler/requirements-dev.txt' adding 'chalice/templates/0002-s3-event-handler/requirements.txt' adding 'chalice/templates/0002-s3-event-handler/.chalice/config.json' adding 'chalice/templates/0002-s3-event-handler/chalicelib/__init__.py' adding 'chalice/templates/0002-s3-event-handler/tests/__init__.py' adding 'chalice/templates/0002-s3-event-handler/tests/test_app.py' adding 'chalice/templates/0007-lambda-only/.gitignore' adding 'chalice/templates/0007-lambda-only/app.py' adding 'chalice/templates/0007-lambda-only/metadata.json' adding 'chalice/templates/0007-lambda-only/requirements-dev.txt' adding 'chalice/templates/0007-lambda-only/requirements.txt' adding 'chalice/templates/0007-lambda-only/.chalice/config.json' adding 'chalice/templates/0007-lambda-only/chalicelib/__init__.py' adding 'chalice/templates/0007-lambda-only/tests/__init__.py' adding 'chalice/templates/0007-lambda-only/tests/test_app.py' adding 'chalice/templates/0009-legacy/.gitignore' adding 'chalice/templates/0009-legacy/app.py' adding 'chalice/templates/0009-legacy/metadata.json' adding 'chalice/templates/0009-legacy/requirements.txt' adding 'chalice/templates/0009-legacy/.chalice/config.json' adding 'chalice/templates/6001-cdk-ddb/README.rst' adding 'chalice/templates/6001-cdk-ddb/metadata.json' adding 'chalice/templates/6001-cdk-ddb/requirements.txt' adding 'chalice/templates/6001-cdk-ddb/infrastructure/app.py' adding 'chalice/templates/6001-cdk-ddb/infrastructure/cdk.json' adding 'chalice/templates/6001-cdk-ddb/infrastructure/requirements.txt' adding 'chalice/templates/6001-cdk-ddb/infrastructure/stacks/__init__.py' adding 'chalice/templates/6001-cdk-ddb/infrastructure/stacks/chaliceapp.py' adding 'chalice/templates/6001-cdk-ddb/runtime/.gitignore' adding 'chalice/templates/6001-cdk-ddb/runtime/app.py' adding 'chalice/templates/6001-cdk-ddb/runtime/requirements.txt' adding 'chalice/templates/6001-cdk-ddb/runtime/.chalice/config.json' adding 'chalice/vendored/__init__.py' adding 'chalice/vendored/botocore/__init__.py' adding 'chalice/vendored/botocore/regions.py' adding 'chalice-1.31.2.dist-info/licenses/LICENSE' adding 'chalice-1.31.2.dist-info/licenses/NOTICE' adding 'chalice-1.31.2.dist-info/METADATA' adding 'chalice-1.31.2.dist-info/WHEEL' adding 'chalice-1.31.2.dist-info/entry_points.txt' adding 'chalice-1.31.2.dist-info/top_level.txt' adding 'chalice-1.31.2.dist-info/RECORD' removing build/bdist.linux-riscv64/wheel Building wheel for chalice (pyproject.toml): finished with status 'done' Created wheel for chalice: filename=chalice-1.31.2-py3-none-any.whl size=264901 sha256=22fed6f2ce274a84311e634f7d11843dca3c13e61fa89af912a18fccb3109441 Stored in directory: /builddir/.cache/pip/wheels/09/43/e9/11c2866dae7a960408afdb6e0c222a1206309ee7cebc677fd6 Successfully built chalice + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Xv1LZM + umask 022 + cd /builddir/build/BUILD/python-chalice-1.31.2-build + '[' /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT ++ dirname /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT + mkdir -p /builddir/build/BUILD/python-chalice-1.31.2-build + mkdir /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd chalice-1.31.2 ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' ++ ls /builddir/build/BUILD/python-chalice-1.31.2-build/pyproject-wheeldir/chalice-1.31.2-py3-none-any.whl + specifier=chalice==1.31.2 + '[' -z chalice==1.31.2 ']' + PIP_CONFIG_FILE=/dev/null + TMPDIR=/builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT --prefix /usr --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/python-chalice-1.31.2-build/pyproject-wheeldir chalice==1.31.2 Using pip 26.1.2 from /usr/lib/python3.15/site-packages/pip (python 3.15) Looking in links: /builddir/build/BUILD/python-chalice-1.31.2-build/pyproject-wheeldir Processing /builddir/build/BUILD/python-chalice-1.31.2-build/pyproject-wheeldir/chalice-1.31.2-py3-none-any.whl Installing collected packages: chalice Creating /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/bin changing mode of /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/bin/chalice to 755 Successfully installed chalice-1.31.2 + '[' -d /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/bin ']' + '[' -z sP ']' + shebang_flags=-kasP + /usr/bin/python3 -B /usr/lib/rpm/redhat/pathfix.py -pni /usr/bin/python3 -kasP /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/bin/chalice /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/bin/chalice: updating + rm -rfv /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/bin/__pycache__ + rm -f /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages ']' + site_dirs+=("/usr/lib/python3.15/site-packages") + '[' /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib64/python3.15/site-packages '!=' /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages ']' + '[' -d /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib64/python3.15/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT$site_dir/*.dist-info + echo '%ghost %dir /usr/lib/python3.15/site-packages/chalice-1.31.2.dist-info' +++ basename /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice-1.31.2.dist-info ++ PYTHONPATH=/usr/lib/rpm/redhat ++ /usr/bin/python3 -sBc 'import sys; from pyproject_save_files import canonical_name_from_distinfo; print(canonical_name_from_distinfo(sys.argv[1]))' chalice-1.31.2.dist-info + _normalized=chalice + echo '%ghost %dir /usr/lib/python3.15/site-packages/chalice-1.31.2.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice-1.31.2.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT --record /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice-1.31.2.dist-info/RECORD --output /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-record + rm -fv /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice-1.31.2.dist-info/RECORD removed '/builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice-1.31.2.dist-info/RECORD' + rm -fv /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice-1.31.2.dist-info/REQUESTED removed '/builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice-1.31.2.dist-info/REQUESTED' + '[' -f /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-dep-overrides ']' ++ wc -l /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + RPM_FILES_ESCAPE=4.19 + /usr/bin/python3 /usr/lib/rpm/redhat/pyproject_save_files.py --output-files /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-files --output-modules /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-modules --buildroot /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT --sitelib /usr/lib/python3.15/site-packages --sitearch /usr/lib64/python3.15/site-packages --python-version 3.15 --pyproject-record /builddir/build/BUILD/python-chalice-1.31.2-build/python-chalice-1.31.2-3.fc45.noarch-pyproject-record --prefix /usr chalice + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + COMPRESS='gzip -9 -n' + COMPRESS_EXT=.gz + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 Bytecompiling .py files below /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15 using python3.15 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-det --brp -j8 /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/cdk/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/api/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/cli/filewatch/__pycache__/eventbased.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/cli/filewatch/__pycache__/stat.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/cli/__pycache__/reloader.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/deploy/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/cdk/__pycache__/construct.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/cli/filewatch/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/cli/__pycache__/factory.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/cli/__pycache__/newproj.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/cli/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/deploy/__pycache__/executor.cpython-315.pyc: replacing with normalized version /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/deploy/__pycache__/swagger.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/deploy/__pycache__/validate.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/deploy/__pycache__/models.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0000-rest-api/tests/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/deploy/__pycache__/sweeper.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0000-rest-api/tests/__pycache__/test_app.cpython-315.pyc: replacing with normalized version /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0000-rest-api/__pycache__/app.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0000-rest-api/chalicelib/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0000-rest-api/tests/__pycache__/test_app.cpython-315.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0002-s3-event-handler/chalicelib/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0002-s3-event-handler/tests/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0002-s3-event-handler/tests/__pycache__/test_app.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0002-s3-event-handler/__pycache__/app.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0007-lambda-only/chalicelib/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/deploy/__pycache__/deployer.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/deploy/__pycache__/planner.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0007-lambda-only/tests/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0007-lambda-only/tests/__pycache__/test_app.cpython-315.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0007-lambda-only/__pycache__/app.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0009-legacy/__pycache__/app.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/6001-cdk-ddb/infrastructure/stacks/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/6001-cdk-ddb/infrastructure/stacks/__pycache__/chaliceapp.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/6001-cdk-ddb/infrastructure/__pycache__/app.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/deploy/__pycache__/executor.cpython-315.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/vendored/botocore/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/0007-lambda-only/tests/__pycache__/test_app.cpython-315.pyc: replacing with normalized version /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/vendored/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/__init__.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/vendored/botocore/__pycache__/regions.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/templates/6001-cdk-ddb/runtime/__pycache__/app.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/compat.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/constants.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/deploy/__pycache__/appgraph.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/invoke.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/logs.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/analyzer.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/policy.cpython-315.pyc: replacing with normalized version /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/config.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/deploy/__pycache__/packager.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/pipeline.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/local.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/policy.cpython-315.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/package.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/test.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/utils.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/awsclient.cpython-315.pyc: rewriting with normalized contents /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages/chalice/__pycache__/app.cpython-315.pyc: rewriting with normalized contents Scanned 57 directories and 203 files, processed 59 inodes, 59 modified (8 replaced + 51 rewritten), 0 unsupported format, 0 errors + /usr/bin/linkdupes --brp /builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr Scanned 56 directories and 203 files, considered 203 files, read 19 files, linked 22 files, 0 errors sum of sizes of linked files: 1272 bytes Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.DWNOHF + umask 022 + cd /builddir/build/BUILD/python-chalice-1.31.2-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd chalice-1.31.2 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + PATH=/builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin + PYTHONPATH=/builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib64/python3.15/site-packages:/builddir/build/BUILD/python-chalice-1.31.2-build/BUILDROOT/usr/lib/python3.15/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/python-chalice-1.31.2-build/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=8 + /usr/bin/pytest --ignore=chalice/templates --ignore=docs --ignore=tests/aws/test_websockets.py --ignore=tests/unit/deploy/test_packager.py --ignore=tests/integration/test_package.py --ignore=tests/aws/test_features.py --deselect=tests/functional/cli/test_cli.py::test_can_generate_pipeline_for_all --ignore=tests/functional/test_awsclient.py ============================= test session starts ============================== platform linux -- Python 3.15.0rc2, pytest-9.1.1, pluggy-1.6.0 rootdir: /builddir/build/BUILD/python-chalice-1.31.2-build/chalice-1.31.2 plugins: hypothesis-6.151.9, cov-7.1.0 HYPOTHESIS PROFILE: None collected 1181 items / 1 deselected / 1180 selected tests/functional/api/test_package.py FFFF [ 0%] tests/functional/cdk/test_construct.py sss [ 0%] tests/functional/cli/test_cli.py .....F..FFFF.F....................... [ 3%] tests/functional/cli/test_factory.py .............................. [ 6%] tests/functional/cli/test_reloader.py s.s.s.s.s. [ 7%] tests/functional/test_deployer.py .................... [ 8%] tests/functional/test_local.py ........ [ 9%] tests/functional/test_package.py ....................................... [ 12%] ........ [ 13%] tests/functional/test_utils.py .......... [ 14%] tests/integration/test_cli.py . [ 14%] tests/unit/cli/filewatch/test_eventbased.py sssssss [ 15%] tests/unit/cli/filewatch/test_stat.py . [ 15%] tests/unit/cli/test_cli.py .. [ 15%] tests/unit/cli/test_newproj.py .............. [ 16%] tests/unit/deploy/test_appgraph.py ............................. [ 18%] tests/unit/deploy/test_deployer.py ..................................... [ 22%] .................... [ 23%] tests/unit/deploy/test_executor.py ................................. [ 26%] tests/unit/deploy/test_models.py ....... [ 27%] tests/unit/deploy/test_planner.py ...................................... [ 30%] ...................................................................... [ 36%] tests/unit/deploy/test_swagger.py ................................. [ 39%] tests/unit/deploy/test_validate.py ............................. [ 41%] tests/unit/test_analyzer.py FF.FFF...FFFFFF.FFFFFF.FFFFFFFFFFFFFFFFF.FFF [ 45%] .FFFFFFF.FFFFFFFFFFFF [ 47%] tests/unit/test_app.py ................................................. [ 51%] ........................................................................ [ 57%] ........................................................................ [ 63%] ................................. [ 66%] tests/unit/test_awsclient.py ...................... [ 68%] tests/unit/test_config.py .............................................. [ 71%] .... [ 72%] tests/unit/test_invoke.py ......... [ 73%] tests/unit/test_local.py ............................................... [ 77%] ............................................... [ 81%] tests/unit/test_logs.py ............... [ 82%] tests/unit/test_package.py ............................................. [ 86%] ...................................................... [ 90%] tests/unit/test_pipeline.py ...................... [ 92%] tests/unit/test_policy.py ........... [ 93%] tests/unit/test_test.py ...................... [ 95%] tests/unit/test_utils.py .................................... [ 98%] tests/unit/vendored/botocore/test_regions.py ................... [100%] =================================== FAILURES =================================== _______ test_can_package_different_formats[cloudformation-json-sam.json] _______ runner = package_format = 'cloudformation', template_format = 'json' expected_filename = 'sam.json' @pytest.mark.parametrize('package_format,template_format,expected_filename', [ ('cloudformation', 'json', 'sam.json'), ('cloudformation', 'yaml', 'sam.yaml'), ('terraform', 'json', 'chalice.tf.json'), ]) def test_can_package_different_formats(runner, package_format, template_format, expected_filename): with runner.isolated_filesystem(): newproj.create_new_project_skeleton('testproject') > package_app('testproject', output_dir='packagedir', stage='dev', package_format=package_format, template_format=template_format) tests/functional/api/test_package.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ chalice/api/__init__.py:27: in package_app packager.package_app(config, output_dir, stage) chalice/package.py:1481: in package_app resources = self._resource_builder.construct_resources( chalice/package.py:118: in construct_resources self._build_stage.execute(config, resources) chalice/deploy/deployer.py:652: in execute step.handle(config, resource) chalice/deploy/deployer.py:419: in handle handler(config, resource) chalice/deploy/deployer.py:637: in handle_autogeniampolicy policy = self._policy_gen.generate_policy(config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/policy.py:86: in generate_policy app_policy = policy_from_source_code(app_source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/policy.py:27: in policy_from_source_code client_calls = get_client_calls_for_app(source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='app', ctx=Store())], value=Call(func=Name(id='Chalice', ctx=Load(...)), args=[], keywords=[keyword(arg='app_name', value=Constant(...))]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError _______ test_can_package_different_formats[cloudformation-yaml-sam.yaml] _______ runner = package_format = 'cloudformation', template_format = 'yaml' expected_filename = 'sam.yaml' @pytest.mark.parametrize('package_format,template_format,expected_filename', [ ('cloudformation', 'json', 'sam.json'), ('cloudformation', 'yaml', 'sam.yaml'), ('terraform', 'json', 'chalice.tf.json'), ]) def test_can_package_different_formats(runner, package_format, template_format, expected_filename): with runner.isolated_filesystem(): newproj.create_new_project_skeleton('testproject') > package_app('testproject', output_dir='packagedir', stage='dev', package_format=package_format, template_format=template_format) tests/functional/api/test_package.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ chalice/api/__init__.py:27: in package_app packager.package_app(config, output_dir, stage) chalice/package.py:1481: in package_app resources = self._resource_builder.construct_resources( chalice/package.py:118: in construct_resources self._build_stage.execute(config, resources) chalice/deploy/deployer.py:652: in execute step.handle(config, resource) chalice/deploy/deployer.py:419: in handle handler(config, resource) chalice/deploy/deployer.py:637: in handle_autogeniampolicy policy = self._policy_gen.generate_policy(config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/policy.py:86: in generate_policy app_policy = policy_from_source_code(app_source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/policy.py:27: in policy_from_source_code client_calls = get_client_calls_for_app(source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='app', ctx=Store())], value=Call(func=Name(id='Chalice', ctx=Load(...)), args=[], keywords=[keyword(arg='app_name', value=Constant(...))]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError ______ test_can_package_different_formats[terraform-json-chalice.tf.json] ______ runner = package_format = 'terraform', template_format = 'json' expected_filename = 'chalice.tf.json' @pytest.mark.parametrize('package_format,template_format,expected_filename', [ ('cloudformation', 'json', 'sam.json'), ('cloudformation', 'yaml', 'sam.yaml'), ('terraform', 'json', 'chalice.tf.json'), ]) def test_can_package_different_formats(runner, package_format, template_format, expected_filename): with runner.isolated_filesystem(): newproj.create_new_project_skeleton('testproject') > package_app('testproject', output_dir='packagedir', stage='dev', package_format=package_format, template_format=template_format) tests/functional/api/test_package.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ chalice/api/__init__.py:27: in package_app packager.package_app(config, output_dir, stage) chalice/package.py:1481: in package_app resources = self._resource_builder.construct_resources( chalice/package.py:118: in construct_resources self._build_stage.execute(config, resources) chalice/deploy/deployer.py:652: in execute step.handle(config, resource) chalice/deploy/deployer.py:419: in handle handler(config, resource) chalice/deploy/deployer.py:637: in handle_autogeniampolicy policy = self._policy_gen.generate_policy(config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/policy.py:86: in generate_policy app_policy = policy_from_source_code(app_source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/policy.py:27: in policy_from_source_code client_calls = get_client_calls_for_app(source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='app', ctx=Store())], value=Call(func=Name(id='Chalice', ctx=Load(...)), args=[], keywords=[keyword(arg='app_name', value=Constant(...))]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError _______________________ test_can_override_chalice_config _______________________ runner = def test_can_override_chalice_config(runner): with runner.isolated_filesystem(): newproj.create_new_project_skeleton('testproject') chalice_config = { 'environment_variables': { 'FOO': 'BAR', } } > package_app('testproject', output_dir='packagedir', stage='dev', chalice_config=chalice_config) tests/functional/api/test_package.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ chalice/api/__init__.py:27: in package_app packager.package_app(config, output_dir, stage) chalice/package.py:1481: in package_app resources = self._resource_builder.construct_resources( chalice/package.py:118: in construct_resources self._build_stage.execute(config, resources) chalice/deploy/deployer.py:652: in execute step.handle(config, resource) chalice/deploy/deployer.py:419: in handle handler(config, resource) chalice/deploy/deployer.py:637: in handle_autogeniampolicy policy = self._policy_gen.generate_policy(config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/policy.py:86: in generate_policy app_policy = policy_from_source_code(app_source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/policy.py:27: in policy_from_source_code client_calls = get_client_calls_for_app(source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='app', ctx=Store())], value=Call(func=Name(id='Chalice', ctx=Load(...)), args=[], keywords=[keyword(arg='app_name', value=Constant(...))]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError ____________________ test_gen_policy_command_creates_policy ____________________ runner = def test_gen_policy_command_creates_policy(runner): with runner.isolated_filesystem(): newproj.create_new_project_skeleton('testproject') os.chdir('testproject') result = runner.invoke(cli.cli, ['gen-policy'], obj={}) > assert result.exit_code == 0 E assert 1 == 0 E + where 1 = .exit_code tests/functional/cli/test_cli.py:133: AssertionError ___________________________ test_can_package_command ___________________________ runner = mock_cli_factory = def test_can_package_command(runner, mock_cli_factory): with runner.isolated_filesystem(): newproj.create_new_project_skeleton('testproject') os.chdir('testproject') result = _run_cli_command(runner, cli.package, ['outdir']) > assert result.exit_code == 0, result.output E AssertionError: E assert 1 == 0 E + where 1 = .exit_code tests/functional/cli/test_cli.py:244: AssertionError ______________________ test_can_package_with_yaml_command ______________________ runner = def test_can_package_with_yaml_command(runner): with runner.isolated_filesystem(): newproj.create_new_project_skeleton('testproject') os.chdir('testproject') result = _run_cli_command(runner, cli.package, ['--template-format', 'yaml', 'outdir']) > assert result.exit_code == 0, result.output E AssertionError: E assert 1 == 0 E + where 1 = .exit_code tests/functional/cli/test_cli.py:257: AssertionError ____________________ test_case_insensitive_template_format _____________________ runner = def test_case_insensitive_template_format(runner): with runner.isolated_filesystem(): newproj.create_new_project_skeleton('testproject') os.chdir('testproject') result = _run_cli_command(runner, cli.package, ['--template-format', 'YAML', 'outdir']) > assert result.exit_code == 0, result.output E AssertionError: E assert 1 == 0 E + where 1 = .exit_code tests/functional/cli/test_cli.py:270: AssertionError ______________________ test_can_package_with_single_file _______________________ runner = def test_can_package_with_single_file(runner): with runner.isolated_filesystem(): newproj.create_new_project_skeleton('testproject') os.chdir('testproject') result = _run_cli_command( runner, cli.package, ['--single-file', 'package.zip']) > assert result.exit_code == 0, result.output E AssertionError: E assert 1 == 0 E + where 1 = .exit_code tests/functional/cli/test_cli.py:281: AssertionError _______________________ test_debug_flag_enables_logging ________________________ runner = def test_debug_flag_enables_logging(runner): with runner.isolated_filesystem(): newproj.create_new_project_skeleton('testproject') os.chdir('testproject') result = runner.invoke( cli.cli, ['--debug', 'package', 'outdir'], obj={}) > assert result.exit_code == 0 E assert 1 == 0 E + where 1 = .exit_code tests/functional/cli/test_cli.py:311: AssertionError ------------------------------ Captured log call ------------------------------- DEBUG botocore.hooks:hooks.py:482 Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane DEBUG botocore.hooks:hooks.py:482 Changing event name from before-call.apigateway to before-call.api-gateway DEBUG botocore.hooks:hooks.py:482 Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict DEBUG botocore.hooks:hooks.py:482 Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration DEBUG botocore.hooks:hooks.py:482 Changing event name from before-parameter-build.route53 to before-parameter-build.route-53 DEBUG botocore.hooks:hooks.py:482 Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search DEBUG botocore.hooks:hooks.py:482 Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section DEBUG botocore.hooks:hooks.py:482 Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask DEBUG botocore.hooks:hooks.py:482 Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section DEBUG botocore.hooks:hooks.py:482 Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search DEBUG botocore.hooks:hooks.py:482 Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section DEBUG botocore.loaders:loaders.py:181 Loading JSON file: /usr/lib/python3.15/site-packages/botocore/data/endpoints.json _________________________ test_can_analyze_chalice_app _________________________ def test_can_analyze_chalice_app(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 app = Chalice(app_name='james1') ec2 = boto3.client('ec2') @app.route('/') def index(): ec2.describe_instances() return {} """) == {'ec2': set(['describe_instances'])} tests/unit/test_analyzer.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='app', ctx=Store())], value=Call(func=Name(id='Chalice', ctx=Load(...)), args=[], keywords=[keyword(arg='app_name', value=Constant(...))]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError __________________________ test_inferred_module_type ___________________________ def test_inferred_module_type(): > assert known_types_for_module("""\ import boto3 import os a = 1 """) == {'boto3': Boto3ModuleType()} tests/unit/test_analyzer.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:29: in known_types_for_module t.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='a', ctx=Store())], value=Constant(value=1, kind=None), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError ______________________ test_recursive_comprehension_none _______________________ def test_recursive_comprehension_none(): > assert aws_calls("""\ xs = [] def recursive_function(): [recursive_function() for x in xs] recursive_function() """) == {} tests/unit/test_analyzer.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='xs', ctx=Store())], value=List(elts=[], ctx=Load()), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError _____________________ test_recursive_function_client_calls _____________________ def test_recursive_function_client_calls(): > assert aws_calls("""\ import boto3 def recursive_function(): recursive_function() boto3.client('ec2').describe_instances() recursive_function() """) == {'ec2': set(['describe_instances'])} tests/unit/test_analyzer.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:477: in visit_Call self._infer_function_call(node) chalice/analyzer.py:507: in _infer_function_call child_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:540: in visit_FunctionDef self.visit(child) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:477: in visit_Call self._infer_function_call(node) chalice/analyzer.py:507: in _infer_function_call child_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:540: in visit_FunctionDef self.visit(child) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:444: in visit_Call self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:424: in visit_Attribute self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='ec2', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ____________________________ test_mutual_recursion _____________________________ def test_mutual_recursion(): > assert aws_calls("""\ import boto3 ec2 = boto3.client('ec2') def a(): b() ec2.run_instances() def b(): ec2.describe_instances() a() a() """) == {'ec2': set(['describe_instances', 'run_instances'])} tests/unit/test_analyzer.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='ec2', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError __________________________ test_inferred_client_type ___________________________ def test_inferred_client_type(): > assert known_types_for_module("""\ import boto3 a = boto3.client('ec2') """) == {'boto3': Boto3ModuleType(), 'a': Boto3ClientType('ec2')} tests/unit/test_analyzer.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:29: in known_types_for_module t.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='ec2', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _____________________ test_inferred_client_type_each_part ______________________ def test_inferred_client_type_each_part(): > assert known_types_for_module("""\ import boto3 a = boto3.client b = a('ec2') """) == {'boto3': Boto3ModuleType(), 'a': Boto3CreateClientType(), 'b': Boto3ClientType('ec2')} tests/unit/test_analyzer.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:29: in known_types_for_module t.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Name(id='a', ctx=Load()), args=[Constant(value='ec2', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ___________________________ test_infer_client_method ___________________________ def test_infer_client_method(): > assert known_types_for_module("""\ import boto3 a = boto3.client('ec2').describe_instances """) == {'boto3': Boto3ModuleType(), 'a': Boto3ClientMethodType('ec2', 'describe_instances')} tests/unit/test_analyzer.py:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:29: in known_types_for_module t.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:424: in visit_Attribute self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='ec2', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _______________________ test_infer_client_method_called ________________________ def test_infer_client_method_called(): > assert known_types_for_module("""\ import boto3 a = boto3.client('ec2').describe_instances() """) == {'boto3': Boto3ModuleType(), 'a': Boto3ClientMethodCallType('ec2', 'describe_instances')} tests/unit/test_analyzer.py:164: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:29: in known_types_for_module t.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:444: in visit_Call self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:424: in visit_Attribute self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='ec2', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ______________________ test_infer_type_on_function_scope _______________________ def test_infer_type_on_function_scope(): > assert known_types_for_function("""\ import boto3 def foo(): d = boto3.client('dynamodb') e = d.list_tables() foo() """, name='foo') == { 'd': Boto3ClientType('dynamodb'), 'e': Boto3ClientMethodCallType('dynamodb', 'list_tables') } tests/unit/test_analyzer.py:172: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:38: in known_types_for_function t.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:477: in visit_Call self._infer_function_call(node) chalice/analyzer.py:507: in _infer_function_call child_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:540: in visit_FunctionDef self.visit(child) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _______________________ test_can_understand_return_types _______________________ def test_can_understand_return_types(): > assert known_types_for_module("""\ import boto3 def create_client(): d = boto3.client('dynamodb') return d e = create_client() """) == { 'boto3': Boto3ModuleType(), 'create_client': FunctionType(Boto3ClientType('dynamodb')), 'e': Boto3ClientType('dynamodb'), } tests/unit/test_analyzer.py:185: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:29: in known_types_for_module t.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:477: in visit_Call self._infer_function_call(node) chalice/analyzer.py:507: in _infer_function_call child_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:540: in visit_FunctionDef self.visit(child) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _______________________________ test_single_call _______________________________ def test_single_call(): > assert aws_calls("""\ import boto3 d = boto3.client('dynamodb') d.list_tables() """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:216: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _____________________________ test_multiple_calls ______________________________ def test_multiple_calls(): > assert aws_calls("""\ import boto3 d = boto3.client('dynamodb') d.list_tables() d.create_table(TableName='foobar') """) == {'dynamodb': set(['list_tables', 'create_table'])} tests/unit/test_analyzer.py:224: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ____________________________ test_multiple_services ____________________________ def test_multiple_services(): > assert aws_calls("""\ import boto3 d = boto3.client('dynamodb') asdf = boto3.client('s3') d.list_tables() asdf.get_object(Bucket='foo', Key='bar') d.create_table(TableName='foobar') """) == {'dynamodb': set(['list_tables', 'create_table']), 's3': set(['get_object'])} tests/unit/test_analyzer.py:233: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _____________________________ test_basic_aliasing ______________________________ def test_basic_aliasing(): > assert aws_calls("""\ import boto3 d = boto3.client('dynamodb') alias = d alias.list_tables() """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:245: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ____________________________ test_multiple_aliasing ____________________________ def test_multiple_aliasing(): > assert aws_calls("""\ import boto3 d = boto3.client('dynamodb') alias = d alias2 = alias alias3 = alias2 alias3.list_tables() """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:254: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ______________________ test_multiple_aliasing_non_chained ______________________ def test_multiple_aliasing_non_chained(): > assert aws_calls("""\ import boto3 d = boto3.client('dynamodb') alias = d alias2 = alias alias3 = alias alias3.list_tables() """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:265: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _________________________ test_original_name_replaced __________________________ def test_original_name_replaced(): > assert aws_calls("""\ import boto3 import some_other_thing d = boto3.client('dynamodb') d.list_tables() d = some_other_thing d.create_table() """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:282: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ____________________________ test_multiple_targets _____________________________ def test_multiple_targets(): > assert aws_calls("""\ import boto3 a = b = boto3.client('dynamodb') b.list_tables() a.create_table() """) == {'dynamodb': set(['create_table', 'list_tables'])} tests/unit/test_analyzer.py:293: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _______________________________ test_in_function _______________________________ def test_in_function(): > assert aws_calls("""\ import boto3 def foo(): d = boto3.client('dynamodb') d.list_tables() foo() """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:477: in visit_Call self._infer_function_call(node) chalice/analyzer.py:507: in _infer_function_call child_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:540: in visit_FunctionDef self.visit(child) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _________________________ test_ignores_built_in_scope __________________________ def test_ignores_built_in_scope(): > assert aws_calls("""\ import boto3 a = boto3.client('dynamodb') def foo(): if a is not None: try: a.list_tables() except Exception as e: a.create_table() foo() """) == {'dynamodb': set(['create_table', 'list_tables'])} tests/unit/test_analyzer.py:312: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ___________________________ test_understands_scopes ____________________________ def test_understands_scopes(): > assert aws_calls("""\ import boto3, mock d = mock.Mock() def foo(): d = boto3.client('dynamodb') d.list_tables() """) == {} tests/unit/test_analyzer.py:326: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='d', ctx=Store())], value=Call(func=Attribute(value=Name(...), attr='Mock', ctx=Load(...)), args=[], keywords=[]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError __________________________ test_function_return_types __________________________ def test_function_return_types(): > assert aws_calls("""\ import boto3 def create_client(): return boto3.client('dynamodb') create_client().list_tables() """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:336: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:444: in visit_Call self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:424: in visit_Attribute self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:477: in visit_Call self._infer_function_call(node) chalice/analyzer.py:507: in _infer_function_call child_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:540: in visit_FunctionDef self.visit(child) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:563: in visit_Return self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _________________________ test_propagates_return_types _________________________ def test_propagates_return_types(): > assert aws_calls("""\ import boto3 def create_client1(): return create_client2() def create_client2(): return create_client3() def create_client3(): return boto3.client('dynamodb') create_client1().list_tables() """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:345: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:444: in visit_Call self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:424: in visit_Attribute self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:477: in visit_Call self._infer_function_call(node) chalice/analyzer.py:507: in _infer_function_call child_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:540: in visit_FunctionDef self.visit(child) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:563: in visit_Return self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:477: in visit_Call self._infer_function_call(node) chalice/analyzer.py:507: in _infer_function_call child_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:540: in visit_FunctionDef self.visit(child) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:563: in visit_Return self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:477: in visit_Call self._infer_function_call(node) chalice/analyzer.py:507: in _infer_function_call child_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:540: in visit_FunctionDef self.visit(child) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:563: in visit_Return self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ________________________ test_decorator_list_is_ignored ________________________ def test_decorator_list_is_ignored(): > assert known_types_for_function("""\ import boto3 import decorators @decorators.retry(10) def foo(): d = boto3.client('dynamodb') e = d.list_tables() foo() """, name='foo') == { 'd': Boto3ClientType('dynamodb'), 'e': Boto3ClientMethodCallType('dynamodb', 'list_tables') } tests/unit/test_analyzer.py:358: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:38: in known_types_for_function t.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:477: in visit_Call self._infer_function_call(node) chalice/analyzer.py:507: in _infer_function_call child_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:540: in visit_FunctionDef self.visit(child) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _________________________ test_can_map_function_params _________________________ def test_can_map_function_params(): > assert aws_calls("""\ import boto3 d = boto3.client('dynamodb') def make_call(client): a = 1 return client.list_tables() make_call(d) """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:374: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _______________ test_can_understand_shadowed_vars_from_func_arg ________________ def test_can_understand_shadowed_vars_from_func_arg(): > assert aws_calls("""\ import boto3 d = boto3.client('dynamodb') def make_call(d): return d.list_tables() make_call('foo') """) == {} tests/unit/test_analyzer.py:385: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ______________ test_can_understand_shadowed_vars_from_local_scope ______________ def test_can_understand_shadowed_vars_from_local_scope(): > assert aws_calls("""\ import boto3, mock d = boto3.client('dynamodb') def make_call(e): d = mock.Mock() return d.list_tables() make_call(d) """) == {} tests/unit/test_analyzer.py:395: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ___________________ test_can_map_function_with_multiple_args ___________________ def test_can_map_function_with_multiple_args(): > assert aws_calls("""\ import boto3, mock m = mock.Mock() d = boto3.client('dynamodb') def make_call(other, client): a = 1 other.create_table() return client.list_tables() make_call(m, d) """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='m', ctx=Store())], value=Call(func=Attribute(value=Name(...), attr='Mock', ctx=Load(...)), args=[], keywords=[]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError _________________________ test_multiple_function_calls _________________________ def test_multiple_function_calls(): > assert aws_calls("""\ import boto3, mock m = mock.Mock() d = boto3.client('dynamodb') def make_call(other, client): a = 1 other.create_table() return other_call(a, 2, 3, client) def other_call(a, b, c, client): return client.list_tables() make_call(m, d) """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:419: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='m', ctx=Store())], value=Call(func=Attribute(value=Name(...), attr='Mock', ctx=Load(...)), args=[], keywords=[]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError ____________________ test_can_lookup_var_names_to_functions ____________________ def test_can_lookup_var_names_to_functions(): > assert aws_calls("""\ import boto3 service_name = 'dynamodb' d = boto3.client(service_name) d.list_tables() """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:434: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='service_name', ctx=Store())], value=Constant(value='dynamodb', kind=None), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError ____________________ test_map_string_literals_across_scopes ____________________ def test_map_string_literals_across_scopes(): > assert aws_calls("""\ import boto3 service_name = 'dynamodb' def foo(): service_name = 's3' d = boto3.client(service_name) d.list_buckets() d = boto3.client(service_name) d.list_tables() foo() """) == {'s3': set(['list_buckets']), 'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:443: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='service_name', ctx=Store())], value=Constant(value='dynamodb', kind=None), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError ________________________ test_can_handle_lambda_keyword ________________________ def test_can_handle_lambda_keyword(): > assert aws_calls("""\ def foo(a): return sorted(bar.values(), key=lambda x: x.baz[a - 1], reverse=True) bar = {} foo(12) """) == {} tests/unit/test_analyzer.py:457: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='bar', ctx=Store())], value=Dict(keys=[], values=[]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError _____________________ test_dict_comp_with_no_client_calls ______________________ def test_dict_comp_with_no_client_calls(): > assert aws_calls("""\ import boto3 foo = {i: i for i in range(10)} """) == {} tests/unit/test_analyzer.py:468: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='foo', ctx=Store())], value=DictComp(key=Name(id='i', ctx=Load(...)), value=Name(id='i', ctx=Load(...)), generators=[comprehension(target=Name(...), iter=Call(...), ifs=[], is_async=0)]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError ______________________ test_can_detect_calls_in_gen_expr _______________________ def test_can_detect_calls_in_gen_expr(): > assert aws_calls("""\ import boto3 service_name = 'dynamodb' d = boto3.client('dynamodb') (d.list_tables() for i in [1,2,3]) """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:482: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='service_name', ctx=Store())], value=Constant(value='dynamodb', kind=None), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError ________________________ test_can_handle_gen_from_call _________________________ def test_can_handle_gen_from_call(): > assert aws_calls("""\ import boto3 service_name = 'dynamodb' d = boto3.client('dynamodb') (i for i in d.list_tables()) """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:491: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='service_name', ctx=Store())], value=Constant(value='dynamodb', kind=None), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError _________________ test_can_detect_calls_in_multiple_gen_exprs __________________ def test_can_detect_calls_in_multiple_gen_exprs(): > assert aws_calls("""\ import boto3 d = boto3.client('dynamodb') (d for i in [1,2,3]) (d.list_tables() for j in [1,2,3]) """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:500: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ___________________ test_can_handle_list_expr_with_api_calls ___________________ def test_can_handle_list_expr_with_api_calls(): > assert aws_calls("""\ import boto3 d = boto3.client('dynamodb') [d.list_tables() for y in [1,2,3]] """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:516: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ______________________ test_can_handle_multiple_listcomps ______________________ def test_can_handle_multiple_listcomps(): > assert aws_calls("""\ bar_key = 'bar' baz_key = 'baz' items = [{'foo': 'sun', 'bar': 'moon', 'baz': 'stars'}] foos = [i['foo'] for i in items] bars = [j[bar_key] for j in items] bazs = [k[baz_key] for k in items] """) == {} tests/unit/test_analyzer.py:524: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='bar_key', ctx=Store())], value=Constant(value='bar', kind=None), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError _______________________ test_can_analyze_lambda_function _______________________ def test_can_analyze_lambda_function(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 app = Chalice(app_name='james1') ec2 = boto3.client('ec2') @app.lambda_function(name='lambda1') def index(): ec2.describe_instances() return {} """) == {'ec2': set(['describe_instances'])} tests/unit/test_analyzer.py:535: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='app', ctx=Store())], value=Call(func=Name(id='Chalice', ctx=Load(...)), args=[], keywords=[keyword(arg='app_name', value=Constant(...))]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError __________________________ test_can_analyze_schedule ___________________________ def test_can_analyze_schedule(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 app = Chalice(app_name='james1') s3cli = boto3.client('s3') @app.schedule('rate(1 hour)') def index(): s3cli.list_buckets() return {} """) == {'s3': set(['list_buckets'])} tests/unit/test_analyzer.py:548: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='app', ctx=Store())], value=Call(func=Name(id='Chalice', ctx=Load(...)), args=[], keywords=[keyword(arg='app_name', value=Constant(...))]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError _________________________ test_can_analyze_combination _________________________ def test_can_analyze_combination(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 app = Chalice(app_name='james1') s3 = boto3.client('s3') ec = boto3.client('ec2') @app.route('/') def index(): ec2.describe_instances() return {} @app.schedule('rate(1 hour)') def index_sc(): s3.list_buckets() return {} @app.lambda_function(name='lambda1') def index_lm(): ec.describe_instances() return {} @random def foo(): return {} """) == {'s3': set(['list_buckets']), 'ec2': set(['describe_instances'])} tests/unit/test_analyzer.py:561: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='app', ctx=Store())], value=Call(func=Name(id='Chalice', ctx=Load(...)), args=[], keywords=[keyword(arg='app_name', value=Constant(...))]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError __________________________ test_can_handle_dict_comp ___________________________ def test_can_handle_dict_comp(): > assert aws_calls("""\ import boto3 ddb = boto3.client('dynamodb') tables = {t: t for t in ddb.list_tables()} """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:590: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _________________________ test_can_handle_dict_comp_if _________________________ def test_can_handle_dict_comp_if(): > assert aws_calls("""\ import boto3 ddb = boto3.client('dynamodb') tables = {t: t for t in [1] if ddb.list_tables()} """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:598: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ________________________ test_can_handle_dict_comp_ifs _________________________ def test_can_handle_dict_comp_ifs(): > assert aws_calls("""\ import boto3 d = boto3.client('dynamodb') {x: y for x in d.create_table()\ for y in d.update_table()\ if d.list_tables()} {x: y for x in d.create_table()\ for y in d.update_table()\ if d.list_tables()} """) == {'dynamodb': set(['list_tables', 'create_table', 'update_table'])} tests/unit/test_analyzer.py:612: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _________________________ test_can_handle_async_await __________________________ @pytest.mark.skipif(sys.version[0] == '2', reason=( 'Async await syntax is not in Python 2' )) def test_can_handle_async_await(): > assert aws_calls("""\ import boto3 import asyncio async def test(): d = boto3.client('dynamodb') d.list_tables() await asyncio.sleep(1) test() """) == {'dynamodb': set(['list_tables'])} tests/unit/test_analyzer.py:628: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:15: in aws_calls calls = analyzer.get_client_calls(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:57: in get_client_calls binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:477: in visit_Call self._infer_function_call(node) chalice/analyzer.py:507: in _infer_function_call child_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:549: in visit_AsyncFunctionDef self.visit_FunctionDef(converted) chalice/analyzer.py:540: in visit_FunctionDef self.visit(child) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='dynamodb', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _________________________ test_can_analyze_custom_auth _________________________ def test_can_analyze_custom_auth(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 ec2 = boto3.client('ec2') app = Chalice(app_name='custom-auth') @app.authorizer() def index(auth_request): ec2.describe_instances() return {} """) == {'ec2': set(['describe_instances'])} tests/unit/test_analyzer.py:640: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='ec2', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError __________________________ test_can_analyze_s3_events __________________________ def test_can_analyze_s3_events(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 s3 = boto3.client('s3') app = Chalice(app_name='s3-event') @app.on_s3_event(bucket='mybucket') def index(event): s3.list_buckets() return {} """) == {'s3': set(['list_buckets'])} tests/unit/test_analyzer.py:655: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='s3', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError _________________________ test_can_analyze_sns_events __________________________ def test_can_analyze_sns_events(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 s3 = boto3.client('s3') app = Chalice(app_name='sns-event') @app.on_sns_message(topic='mytopic') def index(event): s3.list_buckets() return {} """) == {'s3': set(['list_buckets'])} tests/unit/test_analyzer.py:670: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='s3', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ---------------------------- Captured log teardown ----------------------------- DEBUG chalice.cli.filewatch.stat:stat.py:79 File added: /tmp/pytest-of-mockbuild/pytest-0/test_can_reload_when_subdir_fi1/subdir/foo.txt, triggering restart. _________________________ test_can_analyze_sqs_events __________________________ def test_can_analyze_sqs_events(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 s3 = boto3.client('s3') app = Chalice(app_name='sqs-event') @app.on_sqs_message(queue='myqueue') def index(event): s3.list_buckets() return {} """) == {'s3': set(['list_buckets'])} tests/unit/test_analyzer.py:685: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='s3', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError __________________ test_can_analyze_transfer_manager_methods ___________________ def test_can_analyze_transfer_manager_methods(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 s3 = boto3.client('s3') app = Chalice(app_name='sqs-event') @app.on_s3_event(bucket='mybucket') def index(event): s3.download_file(event.bucket, event.key, 'foo') return {} """) == {'s3': set(['download_file'])} tests/unit/test_analyzer.py:700: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ chalice/analyzer.py:410: in visit_Assign self.generic_visit(node) /usr/lib64/python3.15/ast.py:552: in generic_visit self.visit(value) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Call(func=Attribute(value=Name(id='boto3', ctx=Load(...)), attr='client', ctx=Load()), args=[Constant(value='s3', kind=None)], keywords=[]) def visit_Call(self, node): # type: (ast.Call) -> None self.generic_visit(node) # func -> Node that's being called # args -> Arguments being passed. inferred_func_type = self._get_inferred_type_for_node(node.func) if inferred_func_type == Boto3CreateClientType(): # e_0 : B3CCT -> B3CT[S] # e_1 : S str which is a service name # e_0(e_1) : B3CT[e_1] if len(node.args) >= 1: service_arg = node.args[0] > if isinstance(service_arg, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:454: AttributeError ___________________ test_can_handle_replacing_function_name ____________________ def test_can_handle_replacing_function_name(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 app = Chalice(app_name='sqs-event') def index(): pass @app.on_sqs_message(queue='myqueue') def index(event): foo = boto3.client('s3').list_buckets() """) == {'s3': set(['list_buckets'])} tests/unit/test_analyzer.py:715: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='app', ctx=Store())], value=Call(func=Name(id='Chalice', ctx=Load(...)), args=[], keywords=[keyword(arg='app_name', value=Constant(...))]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError ______________________ test_can_handle_multiple_shadowing ______________________ def test_can_handle_multiple_shadowing(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 app = Chalice(app_name='sqs-event') def index(): pass @app.on_sqs_message(queue='myqueue') def index(event): foo = boto3.client('s3').list_buckets() @app.on_s3_event(bucket='mybucket') def index(event): bar = boto3.client('s3').head_bucket(Bucket='foo') """) == {'s3': set(['list_buckets', 'head_bucket'])} tests/unit/test_analyzer.py:732: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='app', ctx=Store())], value=Call(func=Name(id='Chalice', ctx=Load(...)), args=[], keywords=[keyword(arg='app_name', value=Constant(...))]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError _____________________ test_can_handle_forward_declaration ______________________ def test_can_handle_forward_declaration(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 app = Chalice(app_name='forward-declaration') def get_regions(): return boto3.client('s3').list_buckets() @app.route('/') def index(): return get_regions() """) == {'s3': set(['list_buckets'])} tests/unit/test_analyzer.py:753: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='app', ctx=Store())], value=Call(func=Name(id='Chalice', ctx=Load(...)), args=[], keywords=[keyword(arg='app_name', value=Constant(...))]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError _______________________ test_can_handle_post_declaration _______________________ def test_can_handle_post_declaration(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 app = Chalice(app_name='post-declaration') @app.route('/') def index(): return get_regions() def get_regions(): return boto3.client('s3').list_buckets() """) == {'s3': set(['list_buckets'])} tests/unit/test_analyzer.py:770: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='app', ctx=Store())], value=Call(func=Name(id='Chalice', ctx=Load(...)), args=[], keywords=[keyword(arg='app_name', value=Constant(...))]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError _____________________ test_can_handle_shadowed_declaration _____________________ def test_can_handle_shadowed_declaration(): > assert chalice_aws_calls("""\ from chalice import Chalice import boto3 app = Chalice(app_name='shadowed-declaration') def get_regions(): return boto3.client('s3').list_buckets() @app.route('/') def index(): return get_regions() def get_regions(): return boto3.client('s3').head_bucket(Bucket='foo') """) == {'s3': set(['head_bucket'])} tests/unit/test_analyzer.py:787: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/unit/test_analyzer.py:21: in chalice_aws_calls calls = analyzer.get_client_calls_for_app(real_source_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ chalice/analyzer.py:74: in get_client_calls_for_app binder = t.bind_types() ^^^^^^^^^^^^^^ chalice/analyzer.py:683: in bind_types self._type_infer.bind_types() chalice/analyzer.py:352: in bind_types self.visit(self._current_ast_namespace) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:550: in generic_visit self.visit(item) chalice/analyzer.py:662: in visit return ast.NodeVisitor.visit(self, node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.15/ast.py:542: in visit return visitor(node) ^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = Assign(targets=[Name(id='app', ctx=Store())], value=Call(func=Name(id='Chalice', ctx=Load(...)), args=[], keywords=[keyword(arg='app_name', value=Constant(...))]), type_comment=None) def visit_Assign(self, node): # type: (ast.Assign) -> None # The LHS gets the inferred type of the RHS. # We do this post-traversal to let the type inference # run on the children first. self.generic_visit(node) rhs_inferred_type = self._get_inferred_type_for_node(node.value) if rhs_inferred_type is None: # Special casing assignment to a string literal. > if isinstance(node.value, ast.Str): ^^^^^^^ E AttributeError: module 'ast' has no attribute 'Str' chalice/analyzer.py:414: AttributeError =============================== warnings summary =============================== tests/functional/cli/test_cli.py::test_create_new_project_creates_app tests/functional/cli/test_cli.py::test_create_project_with_prompted_app_name tests/functional/cli/test_cli.py::test_can_load_project_config_after_project_creation tests/functional/cli/test_cli.py::test_default_new_project_adds_index_route tests/functional/cli/test_cli.py::test_cli_with_absolute_path[None] tests/functional/cli/test_cli.py::test_cli_with_absolute_path[.] tests/functional/cli/test_cli.py::test_cli_with_absolute_path[getcwd] tests/functional/cli/test_cli.py::test_chalice_cli_mode_env_var_always_set /builddir/build/BUILD/python-chalice-1.31.2-build/chalice-1.31.2/chalice/cli/__init__.py:425: UserWarning: You are currently running python3.15, but the closest supported version on AWS Lambda is python3.12 Please use python3.12, otherwise you may run into deployment issues. validate_python_version(Config.create()) tests/functional/test_deployer.py: 1 warning tests/unit/deploy/test_deployer.py: 2 warnings tests/unit/deploy/test_validate.py: 8 warnings /builddir/build/BUILD/python-chalice-1.31.2-build/chalice-1.31.2/chalice/deploy/validate.py:46: UserWarning: You are currently running python3.15, but the closest supported version on AWS Lambda is python3.12 Please use python3.12, otherwise you may run into deployment issues. validate_python_version(config) tests/unit/test_app.py::test_can_map_kinesis_event tests/unit/test_app.py::test_can_map_kinesis_event tests/unit/test_test.py::test_can_generate_kinesis_event tests/unit/test_test.py::test_can_generate_kinesis_event tests/unit/test_test.py::test_can_generate_kinesis_event /builddir/build/BUILD/python-chalice-1.31.2-build/chalice-1.31.2/chalice/app.py:2098: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). self.timestamp: datetime.datetime = datetime.datetime.utcfromtimestamp( tests/unit/test_app.py::test_can_map_ddb_event /builddir/build/BUILD/python-chalice-1.31.2-build/chalice-1.31.2/chalice/app.py:2115: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). self.timestamp: datetime.datetime = datetime.datetime.utcfromtimestamp( tests/unit/test_app.py::test_bytes_when_binary_type_is_application_json /usr/lib/python3.15/site-packages/_pytest/python.py:171: PytestReturnNotNoneWarning: Test functions should return None, but tests/unit/test_app.py::test_bytes_when_binary_type_is_application_json returned . Did you mean to use `assert` instead of `return`? See https://docs.pytest.org/en/stable/how-to/assert.html#return-not-none for more information. warnings.warn( tests/unit/test_local.py::TestLocalBuiltinAuthorizers::test_can_understand_cognito_token /builddir/build/BUILD/python-chalice-1.31.2-build/chalice-1.31.2/chalice/local.py:349: UserWarning: CognitoUserPoolAuthorizer is not a supported in local mode. All requests made against a route will be authorized to allow local testing. warnings.warn( tests/unit/test_logs.py::test_follow_logs_defaults_to_ten_minutes /builddir/build/BUILD/python-chalice-1.31.2-build/chalice-1.31.2/tests/unit/test_logs.py:285: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). ten_minutes = datetime.utcnow() - timedelta(minutes=10) tests/unit/test_logs.py::test_follow_logs_defaults_to_ten_minutes /builddir/build/BUILD/python-chalice-1.31.2-build/chalice-1.31.2/chalice/logs.py:41: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). start_time = datetime.utcnow() - timedelta(minutes=10) tests/unit/test_logs.py::test_dont_default_if_explicit_since_is_provided /builddir/build/BUILD/python-chalice-1.31.2-build/chalice-1.31.2/tests/unit/test_logs.py:291: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). utcnow = datetime.utcnow() -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/functional/api/test_package.py::test_can_package_different_formats[cloudformation-json-sam.json] FAILED tests/functional/api/test_package.py::test_can_package_different_formats[cloudformation-yaml-sam.yaml] FAILED tests/functional/api/test_package.py::test_can_package_different_formats[terraform-json-chalice.tf.json] FAILED tests/functional/api/test_package.py::test_can_override_chalice_config FAILED tests/functional/cli/test_cli.py::test_gen_policy_command_creates_policy FAILED tests/functional/cli/test_cli.py::test_can_package_command - Assertion... FAILED tests/functional/cli/test_cli.py::test_can_package_with_yaml_command FAILED tests/functional/cli/test_cli.py::test_case_insensitive_template_format FAILED tests/functional/cli/test_cli.py::test_can_package_with_single_file - ... FAILED tests/functional/cli/test_cli.py::test_debug_flag_enables_logging - as... FAILED tests/unit/test_analyzer.py::test_can_analyze_chalice_app - AttributeE... FAILED tests/unit/test_analyzer.py::test_inferred_module_type - AttributeErro... FAILED tests/unit/test_analyzer.py::test_recursive_comprehension_none - Attri... FAILED tests/unit/test_analyzer.py::test_recursive_function_client_calls - At... FAILED tests/unit/test_analyzer.py::test_mutual_recursion - AttributeError: m... FAILED tests/unit/test_analyzer.py::test_inferred_client_type - AttributeErro... FAILED tests/unit/test_analyzer.py::test_inferred_client_type_each_part - Att... FAILED tests/unit/test_analyzer.py::test_infer_client_method - AttributeError... FAILED tests/unit/test_analyzer.py::test_infer_client_method_called - Attribu... FAILED tests/unit/test_analyzer.py::test_infer_type_on_function_scope - Attri... FAILED tests/unit/test_analyzer.py::test_can_understand_return_types - Attrib... FAILED tests/unit/test_analyzer.py::test_single_call - AttributeError: module... FAILED tests/unit/test_analyzer.py::test_multiple_calls - AttributeError: mod... FAILED tests/unit/test_analyzer.py::test_multiple_services - AttributeError: ... FAILED tests/unit/test_analyzer.py::test_basic_aliasing - AttributeError: mod... FAILED tests/unit/test_analyzer.py::test_multiple_aliasing - AttributeError: ... FAILED tests/unit/test_analyzer.py::test_multiple_aliasing_non_chained - Attr... FAILED tests/unit/test_analyzer.py::test_original_name_replaced - AttributeEr... FAILED tests/unit/test_analyzer.py::test_multiple_targets - AttributeError: m... FAILED tests/unit/test_analyzer.py::test_in_function - AttributeError: module... FAILED tests/unit/test_analyzer.py::test_ignores_built_in_scope - AttributeEr... FAILED tests/unit/test_analyzer.py::test_understands_scopes - AttributeError:... FAILED tests/unit/test_analyzer.py::test_function_return_types - AttributeErr... FAILED tests/unit/test_analyzer.py::test_propagates_return_types - AttributeE... FAILED tests/unit/test_analyzer.py::test_decorator_list_is_ignored - Attribut... FAILED tests/unit/test_analyzer.py::test_can_map_function_params - AttributeE... FAILED tests/unit/test_analyzer.py::test_can_understand_shadowed_vars_from_func_arg FAILED tests/unit/test_analyzer.py::test_can_understand_shadowed_vars_from_local_scope FAILED tests/unit/test_analyzer.py::test_can_map_function_with_multiple_args FAILED tests/unit/test_analyzer.py::test_multiple_function_calls - AttributeE... FAILED tests/unit/test_analyzer.py::test_can_lookup_var_names_to_functions - ... FAILED tests/unit/test_analyzer.py::test_map_string_literals_across_scopes - ... FAILED tests/unit/test_analyzer.py::test_can_handle_lambda_keyword - Attribut... FAILED tests/unit/test_analyzer.py::test_dict_comp_with_no_client_calls - Att... FAILED tests/unit/test_analyzer.py::test_can_detect_calls_in_gen_expr - Attri... FAILED tests/unit/test_analyzer.py::test_can_handle_gen_from_call - Attribute... FAILED tests/unit/test_analyzer.py::test_can_detect_calls_in_multiple_gen_exprs FAILED tests/unit/test_analyzer.py::test_can_handle_list_expr_with_api_calls FAILED tests/unit/test_analyzer.py::test_can_handle_multiple_listcomps - Attr... FAILED tests/unit/test_analyzer.py::test_can_analyze_lambda_function - Attrib... FAILED tests/unit/test_analyzer.py::test_can_analyze_schedule - AttributeErro... FAILED tests/unit/test_analyzer.py::test_can_analyze_combination - AttributeE... FAILED tests/unit/test_analyzer.py::test_can_handle_dict_comp - AttributeErro... FAILED tests/unit/test_analyzer.py::test_can_handle_dict_comp_if - AttributeE... FAILED tests/unit/test_analyzer.py::test_can_handle_dict_comp_ifs - Attribute... FAILED tests/unit/test_analyzer.py::test_can_handle_async_await - AttributeEr... FAILED tests/unit/test_analyzer.py::test_can_analyze_custom_auth - AttributeE... FAILED tests/unit/test_analyzer.py::test_can_analyze_s3_events - AttributeErr... FAILED tests/unit/test_analyzer.py::test_can_analyze_sns_events - AttributeEr... FAILED tests/unit/test_analyzer.py::test_can_analyze_sqs_events - AttributeEr... FAILED tests/unit/test_analyzer.py::test_can_analyze_transfer_manager_methods FAILED tests/unit/test_analyzer.py::test_can_handle_replacing_function_name FAILED tests/unit/test_analyzer.py::test_can_handle_multiple_shadowing - Attr... FAILED tests/unit/test_analyzer.py::test_can_handle_forward_declaration - Att... FAILED tests/unit/test_analyzer.py::test_can_handle_post_declaration - Attrib... FAILED tests/unit/test_analyzer.py::test_can_handle_shadowed_declaration - At... = 66 failed, 1099 passed, 15 skipped, 1 deselected, 30 warnings in 115.96s (0:01:55) = error: Bad exit status from /var/tmp/rpm-tmp.DWNOHF (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.DWNOHF (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M d647f4a2bc8944fe9505740652d38030 -D /var/lib/mock/f45-build-50330-890/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-chalice.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.14/site-packages/mockbuild/util.py", line 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M d647f4a2bc8944fe9505740652d38030 -D /var/lib/mock/f45-build-50330-890/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.rvzo77an:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-chalice.spec'