ecodev-core 0.0.33__py3-none-any.whl → 0.0.35__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.
Potentially problematic release.
This version of ecodev-core might be problematic. Click here for more details.
- ecodev_core/backup.py +4 -2
- {ecodev_core-0.0.33.dist-info → ecodev_core-0.0.35.dist-info}/METADATA +2 -2
- {ecodev_core-0.0.33.dist-info → ecodev_core-0.0.35.dist-info}/RECORD +5 -5
- {ecodev_core-0.0.33.dist-info → ecodev_core-0.0.35.dist-info}/LICENSE.md +0 -0
- {ecodev_core-0.0.33.dist-info → ecodev_core-0.0.35.dist-info}/WHEEL +0 -0
ecodev_core/backup.py
CHANGED
|
@@ -80,8 +80,10 @@ def _get_old_backups(file_to_backup: Path, nb_saves: int) -> List[str]:
|
|
|
80
80
|
"""
|
|
81
81
|
Retrieve old versions of file_to_backup in order to erase them (more than nb_saves ago)
|
|
82
82
|
"""
|
|
83
|
-
output = run(['lftp', '-c', f'open {BACKUP_URL}; ls
|
|
83
|
+
output = run(['lftp', '-c', f'open {BACKUP_URL}; ls'],
|
|
84
84
|
capture_output=True, text=True)
|
|
85
|
-
|
|
85
|
+
filename_base = file_to_backup.name.split('.')[0]
|
|
86
|
+
all_backups = sorted([x.split(' ')[-1]
|
|
87
|
+
for x in output.stdout.splitlines() if filename_base in x])
|
|
86
88
|
log.info(f'existing remote backups {all_backups}')
|
|
87
89
|
return all_backups[:-nb_saves]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ecodev-core
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.35
|
|
4
4
|
Summary: Low level sqlmodel/fastapi/pydantic building blocks
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Thomas Epelbaum
|
|
@@ -41,7 +41,7 @@ Requires-Dist: orjson (>=3.10.5,<4.0.0)
|
|
|
41
41
|
Requires-Dist: pandas (>=2,<3)
|
|
42
42
|
Requires-Dist: passlib[bcyrypt] (>=1,<2)
|
|
43
43
|
Requires-Dist: psycopg2-binary (>=2,<3)
|
|
44
|
-
Requires-Dist: pydantic (
|
|
44
|
+
Requires-Dist: pydantic (==2.9.2)
|
|
45
45
|
Requires-Dist: pydantic-settings (>=2,<3)
|
|
46
46
|
Requires-Dist: python-jose[cryptography] (>=3,<4)
|
|
47
47
|
Requires-Dist: sqladmin (==0.15.2)
|
|
@@ -4,7 +4,7 @@ ecodev_core/app_rights.py,sha256=RZPdDtydFqc_nFj96huKAc56BS0qS6ScKv4Kghqd6lc,726
|
|
|
4
4
|
ecodev_core/app_user.py,sha256=r1bqA4H08x53XmxmjwyGKl_PFjYQazzBbVErdkztqeE,2947
|
|
5
5
|
ecodev_core/auth_configuration.py,sha256=R8XH674J1HQSxMr-abvrG0zRqANRf07eMLiG4yB04gM,447
|
|
6
6
|
ecodev_core/authentication.py,sha256=aLMk2_fn1Fodrby2ywZraB3JTSsSrPsBiQq0ag0ySiY,10023
|
|
7
|
-
ecodev_core/backup.py,sha256=
|
|
7
|
+
ecodev_core/backup.py,sha256=GA_a3T8QkB97IzOMD3C57Aw7VE51hP7KdVEZ-PuT9DM,3183
|
|
8
8
|
ecodev_core/check_dependencies.py,sha256=aFn8GI4eBbuJT8RxsfhSSnlpNYYj_LPOH-tZF0EqfKQ,6917
|
|
9
9
|
ecodev_core/custom_equal.py,sha256=2gRn0qpyJ8-Kw9GQSueu0nLngLrRrwyMPlP6zqPac0U,899
|
|
10
10
|
ecodev_core/db_connection.py,sha256=bc5MujZ57f204wTsuNVdn1JdP-zBzkDJxHmdxBDTiNs,2286
|
|
@@ -21,7 +21,7 @@ ecodev_core/pydantic_utils.py,sha256=e3GH50JmcpTmd2UgrB94QSwWOlOCW3WIlVdyX9C4T-U
|
|
|
21
21
|
ecodev_core/read_write.py,sha256=auJ5bBJTVGkLRkiP_vZxVCX64B0Y-9qpsaDhovHmbas,996
|
|
22
22
|
ecodev_core/safe_utils.py,sha256=JCfxo6fcznjsL-XHNJ1TKo1UvfJB83WT5jpTFmtJwsE,6160
|
|
23
23
|
ecodev_core/sqlmodel_utils.py,sha256=t57H3QPtKRy4ujic1clMK_2L4p0yjGJLZbDjHPZ8M94,453
|
|
24
|
-
ecodev_core-0.0.
|
|
25
|
-
ecodev_core-0.0.
|
|
26
|
-
ecodev_core-0.0.
|
|
27
|
-
ecodev_core-0.0.
|
|
24
|
+
ecodev_core-0.0.35.dist-info/LICENSE.md,sha256=jebQDe1ib9LAODuNvcSoo2CoqS6P0_q8--mMTICh_kI,1074
|
|
25
|
+
ecodev_core-0.0.35.dist-info/METADATA,sha256=iiIe974766YSdMZpBmNJP3IPyPlszfeAM0mWr8qfzOI,3386
|
|
26
|
+
ecodev_core-0.0.35.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
27
|
+
ecodev_core-0.0.35.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|