dmart 1.4.24__py3-none-any.whl → 1.4.25__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.24
3
+ Version: 1.4.25
4
4
  Requires-Python: >=3.11
5
5
  Requires-Dist: fastapi
6
6
  Requires-Dist: pydantic
@@ -1,8 +1,7 @@
1
1
  bundler.py,sha256=MDTUTVS0WL7gb-i1rDcS4i37KTqaW88TluL4L3rwjRw,1817
2
2
  data_generator.py,sha256=CnE-VHEeX7-lAXtqCgbRqR9WHjTuOgeiZcviYrHAmho,2287
3
- dmart.py,sha256=_WzBKm8T24re0R7eofvwAby5mKvrM6V_czFoKjDND-M,25710
3
+ dmart.py,sha256=EKr0YX1j4yoDrvc1LLHiXqBTKUtJAGvnDkIy3O9JdlA,25719
4
4
  get_settings.py,sha256=Sbe2WCoiK398E7HY4SNLfDN_GmE8knR4M-YJWF31jcg,153
5
- info.json,sha256=hXQWl19lfMkEj_zXdehGeKjiKGNJ7emY4S7d4pIqJ1E,123
6
5
  main.py,sha256=KZGhIL6AnEm5ZAPy4IvhBDpzSTjuodilV7NafNOyhzM,19676
7
6
  migrate.py,sha256=hn1MZoVby_Jjqhc7y3CrLcGD619QmVZv3PONNvO7VKQ,665
8
7
  password_gen.py,sha256=xjx8wi105ZYvhLBBQj7_rugACpxifGXHse6f7YlGXWQ,196
@@ -272,8 +271,8 @@ utils/ticket_sys_utils.py,sha256=9QAlW2iiy8KyxQRBDj_WmzS5kKb0aYJmGwd4qzmGVqo,700
272
271
  utils/web_notifier.py,sha256=QM87VVid2grC5lK3NdS1yzz0z1wXljr4GChJOeK86W4,843
273
272
  utils/templates/activation.html.j2,sha256=XAMKCdoqONoc4ZQucD0yV-Pg5DlHHASZrTVItNS-iBE,640
274
273
  utils/templates/reminder.html.j2,sha256=aoS8bTs56q4hjAZKsb0jV9c-PIURBELuBOpT_qPZNVU,639
275
- dmart-1.4.24.dist-info/METADATA,sha256=HuxMQT5rahipsbnnlneZantm6I-S6UR_wy5kwxEZDMw,2149
276
- dmart-1.4.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
277
- dmart-1.4.24.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
278
- dmart-1.4.24.dist-info/top_level.txt,sha256=S-gfX1pLerapNXiHZ8lvPYoV7sgwSX2_NCZ6xfzDUHM,267
279
- dmart-1.4.24.dist-info/RECORD,,
274
+ dmart-1.4.25.dist-info/METADATA,sha256=1UTQWFfPUraoJmDrQI5DrLWcwSCPPHQHJaZ4LHa80-c,2149
275
+ dmart-1.4.25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
276
+ dmart-1.4.25.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
277
+ dmart-1.4.25.dist-info/top_level.txt,sha256=S-gfX1pLerapNXiHZ8lvPYoV7sgwSX2_NCZ6xfzDUHM,267
278
+ dmart-1.4.25.dist-info/RECORD,,
dmart.py CHANGED
@@ -578,11 +578,12 @@ def main():
578
578
  # Fallback to alembic for backward compatibility
579
579
  alembic_dir = pkg_dir / "alembic"
580
580
 
581
- original_ini_path = pkg_dir / "dmart_migrations" / "alembic.ini"
582
- if not original_ini_path.exists():
583
- original_ini_path = alembic_dir / "alembic.ini"
581
+ # Look for alembic.ini in the package directory or migrations directory
582
+ ini_path = pkg_dir / "alembic.ini"
583
+ if not ini_path.exists():
584
+ ini_path = alembic_dir / "alembic.ini"
584
585
 
585
- if not original_ini_path.exists():
586
+ if not ini_path.exists():
586
587
  print(f"Error: 'alembic.ini' not found in {pkg_dir} or {alembic_dir}")
587
588
  sys.exit(1)
588
589
 
@@ -594,7 +595,7 @@ def main():
594
595
  with tempfile.NamedTemporaryFile(mode='w', suffix='.ini', delete=False) as tmp:
595
596
  temp_ini_path = tmp.name
596
597
  config = configparser.ConfigParser()
597
- config.read(str(original_ini_path))
598
+ config.read(str(ini_path))
598
599
  if not config.has_section('alembic'):
599
600
  config.add_section('alembic')
600
601
  config.set('alembic', 'script_location', alembic_dir.as_posix())
@@ -613,7 +614,7 @@ def main():
613
614
  os.unlink(temp_ini_path)
614
615
  return
615
616
 
616
- alembic_cfg = AlembicConfig(str(original_ini_path))
617
+ alembic_cfg = AlembicConfig(str(ini_path))
617
618
  alembic_cfg.set_main_option("script_location", alembic_dir.as_posix())
618
619
 
619
620
  # Run alembic upgrade head
info.json DELETED
@@ -1 +0,0 @@
1
- {"branch": "pypi", "version": "2e6304dd", "tag": "v1.4.0-72-g2e6304dd", "version_date": "'Mon Jan 19 08:55:04 2026 +0000'"}
File without changes