Package Details: chalice 1.32.0-3

Git Clone URL: https://aur.archlinux.org/chalice.git (read-only, click to copy)
Package Base: chalice
Description: Python Serverless Microframework for AWS.
Upstream URL: https://github.com/aws/chalice
Keywords: aws
Licenses: Apache-2.0
Provides: python-chalice
Submitter: kylelaker
Maintainer: None
Last Packager: medaminezghal
Votes: 1
Popularity: 0.000000
First Submitted: 2021-03-04 00:12 (UTC)
Last Updated: 2025-08-31 07:46 (UTC)

Latest Comments

Auerhuhn commented on 2026-01-24 22:11 (UTC)

Hi @medaminezghal,

Since Python 3.14, many tests have been failing for me on the chalice PKGBUILD.

I’ve tried to fix a couple in the hopes of getting it half running but didn’t get very far. There are just too many failures on different fronts. I think upstream support for Python 3.14 is not on the horizon just yet.

If you’re interested in taking a shot, here’s my work in progress:

From 38bbad9d70eb27b7c1b0d08339ce479ac93a2879 Mon Sep 17 00:00:00 2001
From: Claudia Pellegrino <aur@cpellegrino.de>
Date: Sat, 24 Jan 2026 22:24:57 +0100
Subject: [PATCH] WIP: add rudimentary Python 3.14 support

---
 PKGBUILD | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/PKGBUILD b/PKGBUILD
index 03152e3..f8d117b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,6 +16,13 @@ provides=("python-$pkgname")
 source=("${url}/archive/refs/tags/$pkgver.tar.gz")
 sha256sums=('f4d86905b01c1e9e4855e8e38ff167210a2057a78688fa50a58cbdc68f0a9229')

+prepare() {
+  cd "$srcdir"/$pkgname-$pkgver
+  # Python 3.14 compatibility
+  sed -i -e 's/\(isinstance([^,]*\), ast.Str/\1, ast.Constant) and \1.value, str/g' \
+    chalice/analyzer.py
+}
+
 build() {
   cd "$srcdir"/$pkgname-$pkgver
   python -m build --wheel --no-isolation
@@ -24,6 +31,8 @@ build() {
 check() {
   local pytest_options=(
     -vv
+    # Fails (and is of limited usefulness) on Python 3.14
+    --deselect tests/unit/test_config.py::test_can_load_python_version
     # Need AWS API
     --deselect tests/aws/test_features.py
     --deselect tests/aws/test_websockets.py::test_websocket_redployment_does_not_lose_messages
-- 
2.52.0

Regards
Claudia

medaminezghal commented on 2025-08-31 07:46 (UTC)

@bytemixer @rubin55 this should be fixed in the new version and the tests will passes even when the package isn't installed.

rubin55 commented on 2025-08-30 23:13 (UTC)

The errors @bytemixer encountered I encountered also, when chalice is not installed on the build host. This is a bug. The check() stage should work without chalice installed.

bytemixer commented on 2025-08-29 09:42 (UTC)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ========================================================= short test summary info ========================================================== FAILED tests/functional/test_local.py::test_can_import_env_vars - FileNotFoundError: [Errno 2] No such file or directory: 'chalice' FAILED tests/functional/test_local.py::test_can_reload_server - FileNotFoundError: [Errno 2] No such file or directory: 'chalice' FAILED tests/integration/test_cli.py::test_stack_trace_printed_on_error - FileNotFoundError: [Errno 2] No such file or directory: 'chalice' ============================ 3 failed, 1411 passed, 4 skipped, 35 deselected, 219 warnings in 68.38s (0:01:08) ============================= ==> ERROR: A failure occurred in check(). Aborting...