dmart 1.4.27__py3-none-any.whl → 1.4.29__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dmart
3
- Version: 1.4.27
3
+ Version: 1.4.29
4
4
  Requires-Python: >=3.11
5
5
  Requires-Dist: fastapi
6
6
  Requires-Dist: pydantic
@@ -1,6 +1,6 @@
1
1
  bundler.py,sha256=MDTUTVS0WL7gb-i1rDcS4i37KTqaW88TluL4L3rwjRw,1817
2
2
  data_generator.py,sha256=CnE-VHEeX7-lAXtqCgbRqR9WHjTuOgeiZcviYrHAmho,2287
3
- dmart.py,sha256=qPlcwDLQQc_9E1J0owKgBsPG4vBGJitpetAz2SPwvRQ,23771
3
+ dmart.py,sha256=4i-P3AQTzWlv0LUJdvqDnS2ehHYv8vCv4hXPdxsQ8DQ,23713
4
4
  get_settings.py,sha256=Sbe2WCoiK398E7HY4SNLfDN_GmE8knR4M-YJWF31jcg,153
5
5
  main.py,sha256=KZGhIL6AnEm5ZAPy4IvhBDpzSTjuodilV7NafNOyhzM,19676
6
6
  migrate.py,sha256=hn1MZoVby_Jjqhc7y3CrLcGD619QmVZv3PONNvO7VKQ,665
@@ -271,8 +271,8 @@ utils/ticket_sys_utils.py,sha256=9QAlW2iiy8KyxQRBDj_WmzS5kKb0aYJmGwd4qzmGVqo,700
271
271
  utils/web_notifier.py,sha256=QM87VVid2grC5lK3NdS1yzz0z1wXljr4GChJOeK86W4,843
272
272
  utils/templates/activation.html.j2,sha256=XAMKCdoqONoc4ZQucD0yV-Pg5DlHHASZrTVItNS-iBE,640
273
273
  utils/templates/reminder.html.j2,sha256=aoS8bTs56q4hjAZKsb0jV9c-PIURBELuBOpT_qPZNVU,639
274
- dmart-1.4.27.dist-info/METADATA,sha256=QlsnUz4bB_fM667kje4gSj_YDU44AZqRV-U7ykf3wrs,2149
275
- dmart-1.4.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
276
- dmart-1.4.27.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
277
- dmart-1.4.27.dist-info/top_level.txt,sha256=S-gfX1pLerapNXiHZ8lvPYoV7sgwSX2_NCZ6xfzDUHM,267
278
- dmart-1.4.27.dist-info/RECORD,,
274
+ dmart-1.4.29.dist-info/METADATA,sha256=TZXo15S93DzXvwBhQPAb9Wmj3HmQvFFJpCVJjQVCNgA,2149
275
+ dmart-1.4.29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
276
+ dmart-1.4.29.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
277
+ dmart-1.4.29.dist-info/top_level.txt,sha256=S-gfX1pLerapNXiHZ8lvPYoV7sgwSX2_NCZ6xfzDUHM,267
278
+ dmart-1.4.29.dist-info/RECORD,,
dmart.py CHANGED
@@ -3,11 +3,14 @@ from __future__ import annotations
3
3
 
4
4
  import argparse
5
5
  import asyncio
6
+ import configparser
6
7
  import json
7
8
  import os
8
9
  import shutil
9
10
  import ssl
10
11
  import subprocess
12
+ import sys
13
+ import tempfile
11
14
  import time
12
15
  import warnings
13
16
  import webbrowser
@@ -17,6 +20,15 @@ from pathlib import Path
17
20
  from hypercorn.config import Config
18
21
  from hypercorn.run import run
19
22
 
23
+ # Try to import alembic
24
+ try:
25
+ from alembic import command as alembic_command
26
+ from alembic.config import Config as AlembicConfig
27
+ HAS_ALEMBIC = True
28
+ ALEMBIC_ERROR = None
29
+ except ImportError as e:
30
+ HAS_ALEMBIC = False
31
+ ALEMBIC_ERROR = e
20
32
 
21
33
  from data_adapters.file.archive import archive
22
34
  from data_adapters.file.create_index import main as create_index
@@ -555,15 +567,6 @@ def main():
555
567
  sys.exit(1)
556
568
 
557
569
  try:
558
- try:
559
- from alembic import command as alembic_command
560
- from alembic.config import Config as AlembicConfig
561
- HAS_ALEMBIC = True
562
- ALEMBIC_ERROR = None
563
- except ImportError as e:
564
- HAS_ALEMBIC = False
565
- ALEMBIC_ERROR = e
566
-
567
570
  # Check if alembic library is installed
568
571
  if not HAS_ALEMBIC:
569
572
  print(f"Error: 'alembic' library not found. {ALEMBIC_ERROR}")
File without changes