nucliadb-utils 3.0.3.post478__py3-none-any.whl → 3.0.3.post480__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nucliadb_utils/storages/s3.py +3 -3
- {nucliadb_utils-3.0.3.post478.dist-info → nucliadb_utils-3.0.3.post480.dist-info}/METADATA +3 -3
- {nucliadb_utils-3.0.3.post478.dist-info → nucliadb_utils-3.0.3.post480.dist-info}/RECORD +6 -6
- {nucliadb_utils-3.0.3.post478.dist-info → nucliadb_utils-3.0.3.post480.dist-info}/WHEEL +0 -0
- {nucliadb_utils-3.0.3.post478.dist-info → nucliadb_utils-3.0.3.post480.dist-info}/top_level.txt +0 -0
- {nucliadb_utils-3.0.3.post478.dist-info → nucliadb_utils-3.0.3.post480.dist-info}/zip-safe +0 -0
nucliadb_utils/storages/s3.py
CHANGED
@@ -226,7 +226,7 @@ class S3StorageField(StorageField):
|
|
226
226
|
# delete existing file
|
227
227
|
try:
|
228
228
|
await self.storage.delete_upload(
|
229
|
-
uri=self.field.old_uri,
|
229
|
+
uri=self.field.old_uri, bucket_name=self.field.old_bucket
|
230
230
|
)
|
231
231
|
self.field.ClearField("old_uri")
|
232
232
|
self.field.ClearField("old_bucket")
|
@@ -402,10 +402,10 @@ class S3Storage(Storage):
|
|
402
402
|
async def finalize(self):
|
403
403
|
await self._exit_stack.__aexit__(None, None, None)
|
404
404
|
|
405
|
-
async def delete_upload(self, uri: str,
|
405
|
+
async def delete_upload(self, uri: str, bucket_name: str):
|
406
406
|
if uri:
|
407
407
|
try:
|
408
|
-
await self._s3aioclient.delete_object(Bucket=
|
408
|
+
await self._s3aioclient.delete_object(Bucket=bucket_name, Key=uri)
|
409
409
|
except botocore.exceptions.ClientError:
|
410
410
|
logger.warning("Error deleting object", exc_info=True)
|
411
411
|
else:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nucliadb-utils
|
3
|
-
Version: 3.0.3.
|
3
|
+
Version: 3.0.3.post480
|
4
4
|
Home-page: https://nuclia.com
|
5
5
|
License: BSD
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
@@ -21,8 +21,8 @@ Requires-Dist: nats-py[nkeys] >=2.6.0
|
|
21
21
|
Requires-Dist: pyjwt >=2.4.0
|
22
22
|
Requires-Dist: memorylru >=1.1.2
|
23
23
|
Requires-Dist: mrflagly
|
24
|
-
Requires-Dist: nucliadb-protos >=3.0.3.
|
25
|
-
Requires-Dist: nucliadb-telemetry >=3.0.3.
|
24
|
+
Requires-Dist: nucliadb-protos >=3.0.3.post480
|
25
|
+
Requires-Dist: nucliadb-telemetry >=3.0.3.post480
|
26
26
|
Provides-Extra: cache
|
27
27
|
Requires-Dist: redis >=4.3.4 ; extra == 'cache'
|
28
28
|
Requires-Dist: orjson >=3.6.7 ; extra == 'cache'
|
@@ -36,7 +36,7 @@ nucliadb_utils/storages/gcs.py,sha256=-M-abojobXGwZaS1kuFXRBxwashsAaTXMStjx3QpX4
|
|
36
36
|
nucliadb_utils/storages/local.py,sha256=fWqcHxpPsjEUMsmge3UXkjDy2hXvxCzvuyS6TaziQuA,10037
|
37
37
|
nucliadb_utils/storages/nuclia.py,sha256=UfvRu92eqG1v-PE-UWH2x8KEJFqDqATMmUGFmEuqSSs,2097
|
38
38
|
nucliadb_utils/storages/pg.py,sha256=vxx8FQIToA_C6CO1uu9W080yZl0SgUVtTEWd6lQhPJc,18610
|
39
|
-
nucliadb_utils/storages/s3.py,sha256=
|
39
|
+
nucliadb_utils/storages/s3.py,sha256=EYfn2CjoVL0tPFUqMaHgJYHjrSQaIUzLeNYoRa1qp-A,18809
|
40
40
|
nucliadb_utils/storages/settings.py,sha256=bUl3D7To-s3OVXPFFF7LwJbEKGF2WvDM14pwqQdkyoQ,1276
|
41
41
|
nucliadb_utils/storages/storage.py,sha256=W8pDa5pXTvfDY5ugEPVESpnkpDE7hnj7jnQQaKdlXk8,20559
|
42
42
|
nucliadb_utils/tests/__init__.py,sha256=Oo9CAE7B0eW5VHn8sHd6o30SQzOWUhktLPRXdlDOleA,1456
|
@@ -63,8 +63,8 @@ nucliadb_utils/tests/unit/storages/test_aws.py,sha256=GCsB_jwCUNV3Ogt8TZZEmNKAHv
|
|
63
63
|
nucliadb_utils/tests/unit/storages/test_gcs.py,sha256=2XzJwgNpfjVGjtE-QdZhu3ayuT1EMEXINdM-_SatPCY,3554
|
64
64
|
nucliadb_utils/tests/unit/storages/test_pg.py,sha256=sJfUttMSzq8W1XYolAUcMxl_R5HcEzb5fpCklPeMJiY,17000
|
65
65
|
nucliadb_utils/tests/unit/storages/test_storage.py,sha256=VFpRq6Q6BjnIrBQCumYzR8DQUacwhxt5CzTKSlqqD24,6892
|
66
|
-
nucliadb_utils-3.0.3.
|
67
|
-
nucliadb_utils-3.0.3.
|
68
|
-
nucliadb_utils-3.0.3.
|
69
|
-
nucliadb_utils-3.0.3.
|
70
|
-
nucliadb_utils-3.0.3.
|
66
|
+
nucliadb_utils-3.0.3.post480.dist-info/METADATA,sha256=6XD9xSIXE1rFm13iAnE4qE4XeyAWME_3rzofIJymqk8,1975
|
67
|
+
nucliadb_utils-3.0.3.post480.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
68
|
+
nucliadb_utils-3.0.3.post480.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
69
|
+
nucliadb_utils-3.0.3.post480.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
70
|
+
nucliadb_utils-3.0.3.post480.dist-info/RECORD,,
|
File without changes
|
{nucliadb_utils-3.0.3.post478.dist-info → nucliadb_utils-3.0.3.post480.dist-info}/top_level.txt
RENAMED
File without changes
|
File without changes
|