dmart 1.4.15__py3-none-any.whl → 1.4.16__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.
- bundler.py +3 -0
- {dmart-1.4.15.dist-info → dmart-1.4.16.dist-info}/METADATA +1 -1
- {dmart-1.4.15.dist-info → dmart-1.4.16.dist-info}/RECORD +7 -7
- dmart.py +10 -6
- {dmart-1.4.15.dist-info → dmart-1.4.16.dist-info}/WHEEL +0 -0
- {dmart-1.4.15.dist-info → dmart-1.4.16.dist-info}/entry_points.txt +0 -0
- {dmart-1.4.15.dist-info → dmart-1.4.16.dist-info}/top_level.txt +0 -0
bundler.py
CHANGED
|
@@ -36,9 +36,12 @@ args = [
|
|
|
36
36
|
'--runtime-tmpdir=.',
|
|
37
37
|
'--distpath=.',
|
|
38
38
|
'--add-data=./info.json:.',
|
|
39
|
+
'--add-data=dmart_migrations:dmart_migrations',
|
|
40
|
+
'--add-data=alembic.ini:.',
|
|
39
41
|
'--noconfirm',
|
|
40
42
|
'--collect-submodules=concurrent_log_handler',
|
|
41
43
|
'--collect-submodules=pythonjsonlogger',
|
|
44
|
+
'--collect-all=alembic',
|
|
42
45
|
'--clean',
|
|
43
46
|
]
|
|
44
47
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
alembic.ini,sha256=zs8d8VhH9TRwZrPK697EZPBCfaKvI4SqTuGuG0FAm2Y,3747
|
|
2
|
-
bundler.py,sha256=
|
|
2
|
+
bundler.py,sha256=MDTUTVS0WL7gb-i1rDcS4i37KTqaW88TluL4L3rwjRw,1817
|
|
3
3
|
data_generator.py,sha256=CnE-VHEeX7-lAXtqCgbRqR9WHjTuOgeiZcviYrHAmho,2287
|
|
4
|
-
dmart.py,sha256=
|
|
4
|
+
dmart.py,sha256=M6ALx41TSjzpcEczkx39aA9qdmWZk_CS2jRpU61-aEY,23288
|
|
5
5
|
get_settings.py,sha256=Sbe2WCoiK398E7HY4SNLfDN_GmE8knR4M-YJWF31jcg,153
|
|
6
6
|
info.json,sha256=hXQWl19lfMkEj_zXdehGeKjiKGNJ7emY4S7d4pIqJ1E,123
|
|
7
7
|
main.py,sha256=KZGhIL6AnEm5ZAPy4IvhBDpzSTjuodilV7NafNOyhzM,19676
|
|
@@ -282,8 +282,8 @@ utils/ticket_sys_utils.py,sha256=9QAlW2iiy8KyxQRBDj_WmzS5kKb0aYJmGwd4qzmGVqo,700
|
|
|
282
282
|
utils/web_notifier.py,sha256=QM87VVid2grC5lK3NdS1yzz0z1wXljr4GChJOeK86W4,843
|
|
283
283
|
utils/templates/activation.html.j2,sha256=XAMKCdoqONoc4ZQucD0yV-Pg5DlHHASZrTVItNS-iBE,640
|
|
284
284
|
utils/templates/reminder.html.j2,sha256=aoS8bTs56q4hjAZKsb0jV9c-PIURBELuBOpT_qPZNVU,639
|
|
285
|
-
dmart-1.4.
|
|
286
|
-
dmart-1.4.
|
|
287
|
-
dmart-1.4.
|
|
288
|
-
dmart-1.4.
|
|
289
|
-
dmart-1.4.
|
|
285
|
+
dmart-1.4.16.dist-info/METADATA,sha256=Q_DCo5Avjc2w6n4CaUtDwCoiyzesOI9Ss3GZV-7n6OQ,2069
|
|
286
|
+
dmart-1.4.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
287
|
+
dmart-1.4.16.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
|
|
288
|
+
dmart-1.4.16.dist-info/top_level.txt,sha256=XELQhaIfj-qupnyBrir39qFRh8ncu1RXkCHeitzqLLg,275
|
|
289
|
+
dmart-1.4.16.dist-info/RECORD,,
|
dmart.py
CHANGED
|
@@ -18,6 +18,13 @@ from pathlib import Path
|
|
|
18
18
|
from hypercorn.config import Config
|
|
19
19
|
from hypercorn.run import run
|
|
20
20
|
|
|
21
|
+
try:
|
|
22
|
+
from alembic import command as alembic_command
|
|
23
|
+
from alembic.config import Config as AlembicConfig
|
|
24
|
+
HAS_ALEMBIC = True
|
|
25
|
+
except ImportError:
|
|
26
|
+
HAS_ALEMBIC = False
|
|
27
|
+
|
|
21
28
|
from data_adapters.file.archive import archive
|
|
22
29
|
from data_adapters.file.create_index import main as create_index
|
|
23
30
|
from data_adapters.file.health_check import main as health_check
|
|
@@ -552,18 +559,15 @@ def main():
|
|
|
552
559
|
|
|
553
560
|
try:
|
|
554
561
|
# Check if alembic library is installed
|
|
555
|
-
|
|
556
|
-
from alembic.config import Config
|
|
557
|
-
from alembic import command
|
|
558
|
-
except ImportError:
|
|
562
|
+
if not HAS_ALEMBIC:
|
|
559
563
|
print("Error: 'alembic' library not found. Please install it with 'pip install alembic'.")
|
|
560
564
|
sys.exit(1)
|
|
561
565
|
|
|
562
|
-
alembic_cfg =
|
|
566
|
+
alembic_cfg = AlembicConfig(str(original_ini_path))
|
|
563
567
|
alembic_cfg.set_main_option("script_location", alembic_dir.as_posix())
|
|
564
568
|
|
|
565
569
|
# Run alembic upgrade head
|
|
566
|
-
|
|
570
|
+
alembic_command.upgrade(alembic_cfg, "head")
|
|
567
571
|
|
|
568
572
|
except Exception as e:
|
|
569
573
|
print(f"Error running migration: {e}")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|