dmart 1.4.23__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.
- {dmart-1.4.23.dist-info → dmart-1.4.25.dist-info}/METADATA +1 -1
- {dmart-1.4.23.dist-info → dmart-1.4.25.dist-info}/RECORD +6 -7
- dmart.py +8 -7
- info.json +0 -1
- {dmart-1.4.23.dist-info → dmart-1.4.25.dist-info}/WHEEL +0 -0
- {dmart-1.4.23.dist-info → dmart-1.4.25.dist-info}/entry_points.txt +0 -0
- {dmart-1.4.23.dist-info → dmart-1.4.25.dist-info}/top_level.txt +0 -0
|
@@ -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=
|
|
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.
|
|
276
|
-
dmart-1.4.
|
|
277
|
-
dmart-1.4.
|
|
278
|
-
dmart-1.4.
|
|
279
|
-
dmart-1.4.
|
|
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
|
-
|
|
582
|
-
|
|
583
|
-
|
|
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
|
|
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,14 +595,14 @@ 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(
|
|
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())
|
|
601
602
|
config.write(tmp)
|
|
602
603
|
|
|
603
604
|
try:
|
|
604
|
-
subprocess.run(["alembic", "-c", temp_ini_path, "upgrade", "head"], check=True)
|
|
605
|
+
subprocess.run([sys.executable, "-m", "alembic", "-c", temp_ini_path, "upgrade", "head"], check=True)
|
|
605
606
|
except Exception as e:
|
|
606
607
|
print(f"Error running alembic CLI: {e}")
|
|
607
608
|
print("Please install 'alembic' library with 'pip install alembic'.")
|
|
@@ -613,7 +614,7 @@ def main():
|
|
|
613
614
|
os.unlink(temp_ini_path)
|
|
614
615
|
return
|
|
615
616
|
|
|
616
|
-
alembic_cfg = AlembicConfig(str(
|
|
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
|
|
File without changes
|
|
File without changes
|