chore(deps): add boto3 to requirements.txt
This commit is contained in:
+7
-1
@@ -88,7 +88,13 @@ class S3Storage:
|
||||
region: str = "auto",
|
||||
public_url: str = "",
|
||||
) -> None:
|
||||
import boto3
|
||||
try:
|
||||
import boto3
|
||||
except ImportError:
|
||||
raise ImportError(
|
||||
"boto3 is required for S3 storage. "
|
||||
"Install it with: pip install boto3"
|
||||
)
|
||||
|
||||
self.bucket = bucket
|
||||
self.public_url = public_url.rstrip("/")
|
||||
|
||||
@@ -6,3 +6,4 @@ jinja2
|
||||
bcrypt
|
||||
python-jose[cryptography]
|
||||
aiofiles
|
||||
boto3
|
||||
Reference in New Issue
Block a user