Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

fix: Explicitly install AIOHTTP Retry deps

Clémence Lesnéc5a133d42a5e
diff --git a/pyproject.toml b/pyproject.toml
index 0535dfa..2b592c1 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,6 +6,7 @@ name = "call-center-ai"
readme = "README.md"
requires-python = "==3.11"
dependencies = [
+ "aiohttp-retry==2.8.3", # Retry middleware for aiohttp, used with Twilio SDK
"aiohttp==3.9.5", # Async HTTP client for Azure and Twilio SDKs
"aiosqlite==0.20.0", # Async SQLite3 driver
"azure-ai-translation-text==1.0.0", # Azure Cognitive Services Text Translation
@@ -75,8 +76,9 @@ ignore_notebooks = true
pep621_dev_dependency_groups = ["dev"]
[tool.deptry.per_rule_ignores]
-DEP002 = ["aiohttp"]
-DEP003 = ["aiohttp_retry"]
+DEP002 = [
+ "aiodns", # Resolver is required for the AIOHTTP AsyncResolver TCP resolver
+]
[tool.black]
target-version = ["py311"]
diff --git a/requirements-dev.txt b/requirements-dev.txt
index 00bf747..98ba54c 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -92,7 +92,9 @@ aiohttp==3.9.5 \
aiohttp-retry==2.8.3 \
--hash=sha256:3aeeead8f6afe48272db93ced9440cf4eda8b6fd7ee2abb25357b7eb28525b45 \
--hash=sha256:9a8e637e31682ad36e1ff9f8bcba912fcfc7d7041722bc901a4b948da4d71ea9
- # via twilio
+ # via
+ # call-center-ai (pyproject.toml)
+ # twilio
aiosignal==1.3.1 \
--hash=sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc \
--hash=sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17
diff --git a/requirements.txt b/requirements.txt
index f933597..79adfec 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -88,7 +88,9 @@ aiohttp==3.9.5 \
aiohttp-retry==2.8.3 \
--hash=sha256:3aeeead8f6afe48272db93ced9440cf4eda8b6fd7ee2abb25357b7eb28525b45 \
--hash=sha256:9a8e637e31682ad36e1ff9f8bcba912fcfc7d7041722bc901a4b948da4d71ea9
- # via twilio
+ # via
+ # call-center-ai (pyproject.toml)
+ # twilio
aiosignal==1.3.1 \
--hash=sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc \
--hash=sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17