dmart 1.4.18__py3-none-any.whl → 1.4.20__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.18
3
+ Version: 1.4.20
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=rrDzNFYmrc1reaQG2tEdlXN0rQbfdV2HaIqgJNX1qME,23458
3
+ dmart.py,sha256=mG4TCkITYoUajlHsPJ_BZUBMu2G8gxvB7bidYfKoSHA,24498
4
4
  get_settings.py,sha256=Sbe2WCoiK398E7HY4SNLfDN_GmE8knR4M-YJWF31jcg,153
5
5
  info.json,sha256=hXQWl19lfMkEj_zXdehGeKjiKGNJ7emY4S7d4pIqJ1E,123
6
6
  main.py,sha256=KZGhIL6AnEm5ZAPy4IvhBDpzSTjuodilV7NafNOyhzM,19676
@@ -272,8 +272,8 @@ utils/ticket_sys_utils.py,sha256=9QAlW2iiy8KyxQRBDj_WmzS5kKb0aYJmGwd4qzmGVqo,700
272
272
  utils/web_notifier.py,sha256=QM87VVid2grC5lK3NdS1yzz0z1wXljr4GChJOeK86W4,843
273
273
  utils/templates/activation.html.j2,sha256=XAMKCdoqONoc4ZQucD0yV-Pg5DlHHASZrTVItNS-iBE,640
274
274
  utils/templates/reminder.html.j2,sha256=aoS8bTs56q4hjAZKsb0jV9c-PIURBELuBOpT_qPZNVU,639
275
- dmart-1.4.18.dist-info/METADATA,sha256=HHmitx-KpmD9c46NQsawTJ403-Z23sDzStgGrucZNmc,2149
276
- dmart-1.4.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
277
- dmart-1.4.18.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
278
- dmart-1.4.18.dist-info/top_level.txt,sha256=S-gfX1pLerapNXiHZ8lvPYoV7sgwSX2_NCZ6xfzDUHM,267
279
- dmart-1.4.18.dist-info/RECORD,,
275
+ dmart-1.4.20.dist-info/METADATA,sha256=MTGSY6tBlgUmFtLj4RP40CIZbMsFGbMGG2Jo41hv_hY,2149
276
+ dmart-1.4.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
277
+ dmart-1.4.20.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
278
+ dmart-1.4.20.dist-info/top_level.txt,sha256=S-gfX1pLerapNXiHZ8lvPYoV7sgwSX2_NCZ6xfzDUHM,267
279
+ dmart-1.4.20.dist-info/RECORD,,
dmart.py CHANGED
@@ -19,6 +19,26 @@ from hypercorn.config import Config
19
19
  from hypercorn.run import run
20
20
 
21
21
  try:
22
+ # Try to import alembic
23
+ import alembic
24
+
25
+ # Check if we are importing the local alembic directory which is likely a leftover
26
+ if hasattr(alembic, '__path__'):
27
+ local_alembic_path = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'alembic'))
28
+ for p in alembic.__path__:
29
+ if os.path.abspath(p) == local_alembic_path:
30
+ # Check if it is a namespace package (no __init__.py)
31
+ if not os.path.exists(os.path.join(p, '__init__.py')):
32
+ # It is a leftover directory
33
+ try:
34
+ shutil.rmtree(p)
35
+ # Force reload
36
+ if 'alembic' in sys.modules:
37
+ del sys.modules['alembic']
38
+ import alembic
39
+ except Exception:
40
+ pass
41
+
22
42
  from alembic import command as alembic_command
23
43
  from alembic.config import Config as AlembicConfig
24
44
  HAS_ALEMBIC = True
@@ -565,6 +585,9 @@ def main():
565
585
  print("Error: 'alembic' library not found. Please install it with 'pip install alembic'.")
566
586
  if ALEMBIC_ERROR:
567
587
  print(f"Details: {ALEMBIC_ERROR}")
588
+ import sys
589
+ print(f"Python executable: {sys.executable}")
590
+ print(f"sys.path: {sys.path}")
568
591
  sys.exit(1)
569
592
 
570
593
  alembic_cfg = AlembicConfig(str(original_ini_path))
File without changes