dmart 1.4.10__py3-none-any.whl → 1.4.11__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.10
3
+ Version: 1.4.11
4
4
  Requires-Python: >=3.11
5
5
  Requires-Dist: fastapi
6
6
  Requires-Dist: pydantic
@@ -1,7 +1,7 @@
1
1
  alembic.ini,sha256=zs8d8VhH9TRwZrPK697EZPBCfaKvI4SqTuGuG0FAm2Y,3747
2
2
  bundler.py,sha256=so8ZJResb1PcOH5vboa_mpFAdYr_T8u8DbbFXd570Lg,1704
3
3
  data_generator.py,sha256=CnE-VHEeX7-lAXtqCgbRqR9WHjTuOgeiZcviYrHAmho,2287
4
- dmart.py,sha256=_eXSPzHwdjlPG_v5rvVQslj7ny68-ll6HZ1jCvCKswI,25808
4
+ dmart.py,sha256=aijL1fFhuW0dqM_qjGRgDvtQYExlKHqTybeYOmZfKLk,24551
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.10.dist-info/METADATA,sha256=1JEg-JLqBDSHLzH8bkIzY4p1gDKbX9bWYcsKc3cIfHQ,2069
286
- dmart-1.4.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
287
- dmart-1.4.10.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
288
- dmart-1.4.10.dist-info/top_level.txt,sha256=XELQhaIfj-qupnyBrir39qFRh8ncu1RXkCHeitzqLLg,275
289
- dmart-1.4.10.dist-info/RECORD,,
285
+ dmart-1.4.11.dist-info/METADATA,sha256=H6WXlEAIYs4GFh9qa0UghPXHb6dTRlMgWkTi8MHfR_o,2069
286
+ dmart-1.4.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
287
+ dmart-1.4.11.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
288
+ dmart-1.4.11.dist-info/top_level.txt,sha256=XELQhaIfj-qupnyBrir39qFRh8ncu1RXkCHeitzqLLg,275
289
+ dmart-1.4.11.dist-info/RECORD,,
dmart.py CHANGED
@@ -536,27 +536,8 @@ def main():
536
536
  case "migrate":
537
537
  pkg_dir = Path(__file__).resolve().parent
538
538
 
539
- # Check for shadowing alembic directory and rename it if necessary
540
- shadowing_alembic = pkg_dir / "alembic"
541
- target_migrations = pkg_dir / "dmart_migrations"
542
-
543
- if shadowing_alembic.exists() and shadowing_alembic.is_dir():
544
- if target_migrations.exists():
545
- print(f"Warning: Both {shadowing_alembic} and {target_migrations} exist.")
546
- backup_path = pkg_dir / "alembic_backup"
547
- if not backup_path.exists():
548
- print(f"Renaming {shadowing_alembic} to {backup_path} to avoid shadowing 'alembic' library.")
549
- shutil.move(str(shadowing_alembic), str(backup_path))
550
- else:
551
- print(f"Error: {shadowing_alembic} exists and shadows 'alembic' library, but {target_migrations} and {backup_path} also exist.")
552
- print("Please manually remove or rename the 'alembic' directory.")
553
- sys.exit(1)
554
- else:
555
- print(f"Renaming {shadowing_alembic} to {target_migrations} to avoid shadowing 'alembic' library.")
556
- shutil.move(str(shadowing_alembic), str(target_migrations))
557
-
558
539
  # Try to find migrations directory
559
- alembic_dir = target_migrations
540
+ alembic_dir = pkg_dir / "dmart_migrations"
560
541
  if not alembic_dir.exists():
561
542
  alembic_dir = pkg_dir / "alembic"
562
543
 
File without changes