chore(deps): add boto3 to requirements.txt
This commit is contained in:
+7
-1
@@ -88,7 +88,13 @@ class S3Storage:
|
|||||||
region: str = "auto",
|
region: str = "auto",
|
||||||
public_url: str = "",
|
public_url: str = "",
|
||||||
) -> None:
|
) -> 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.bucket = bucket
|
||||||
self.public_url = public_url.rstrip("/")
|
self.public_url = public_url.rstrip("/")
|
||||||
|
|||||||
@@ -6,3 +6,4 @@ jinja2
|
|||||||
bcrypt
|
bcrypt
|
||||||
python-jose[cryptography]
|
python-jose[cryptography]
|
||||||
aiofiles
|
aiofiles
|
||||||
|
boto3
|
||||||
Reference in New Issue
Block a user