dmart 1.4.24__py3-none-any.whl → 1.4.26__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.24.dist-info → dmart-1.4.26.dist-info}/METADATA +1 -1
- {dmart-1.4.24.dist-info → dmart-1.4.26.dist-info}/RECORD +6 -7
- dmart.py +10 -51
- info.json +0 -1
- {dmart-1.4.24.dist-info → dmart-1.4.26.dist-info}/WHEEL +0 -0
- {dmart-1.4.24.dist-info → dmart-1.4.26.dist-info}/entry_points.txt +0 -0
- {dmart-1.4.24.dist-info → dmart-1.4.26.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=s56hBfeEOKqdtUosLGi9MY76bRfRLHDvWKXT2i_Y8qw,23689
|
|
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.26.dist-info/METADATA,sha256=qhwJ1zV-khUXfFD7kr6-z-m-iqg_yR2YnJPqH0Rh0gE,2149
|
|
275
|
+
dmart-1.4.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
276
|
+
dmart-1.4.26.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
|
|
277
|
+
dmart-1.4.26.dist-info/top_level.txt,sha256=S-gfX1pLerapNXiHZ8lvPYoV7sgwSX2_NCZ6xfzDUHM,267
|
|
278
|
+
dmart-1.4.26.dist-info/RECORD,,
|
dmart.py
CHANGED
|
@@ -20,28 +20,6 @@ from pathlib import Path
|
|
|
20
20
|
from hypercorn.config import Config
|
|
21
21
|
from hypercorn.run import run
|
|
22
22
|
|
|
23
|
-
# Try to import alembic
|
|
24
|
-
try:
|
|
25
|
-
import alembic
|
|
26
|
-
# Check if we are importing the local alembic directory which is likely a leftover
|
|
27
|
-
if hasattr(alembic, '__path__'):
|
|
28
|
-
local_alembic_path = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'alembic'))
|
|
29
|
-
for p in alembic.__path__:
|
|
30
|
-
if os.path.abspath(p) == local_alembic_path:
|
|
31
|
-
# Check if it is a namespace package (no __init__.py)
|
|
32
|
-
if not os.path.exists(os.path.join(p, '__init__.py')):
|
|
33
|
-
# It is a leftover directory
|
|
34
|
-
try:
|
|
35
|
-
shutil.rmtree(p)
|
|
36
|
-
# Force reload
|
|
37
|
-
if 'alembic' in sys.modules:
|
|
38
|
-
del sys.modules['alembic']
|
|
39
|
-
import alembic
|
|
40
|
-
except Exception:
|
|
41
|
-
pass
|
|
42
|
-
except ImportError:
|
|
43
|
-
pass
|
|
44
|
-
|
|
45
23
|
try:
|
|
46
24
|
from alembic import command as alembic_command
|
|
47
25
|
from alembic.config import Config as AlembicConfig
|
|
@@ -578,42 +556,23 @@ def main():
|
|
|
578
556
|
# Fallback to alembic for backward compatibility
|
|
579
557
|
alembic_dir = pkg_dir / "alembic"
|
|
580
558
|
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
559
|
+
# Look for alembic.ini in the package directory or migrations directory
|
|
560
|
+
ini_path = pkg_dir / "alembic.ini"
|
|
561
|
+
if not ini_path.exists():
|
|
562
|
+
ini_path = alembic_dir / "alembic.ini"
|
|
584
563
|
|
|
585
|
-
if not
|
|
564
|
+
if not ini_path.exists():
|
|
586
565
|
print(f"Error: 'alembic.ini' not found in {pkg_dir} or {alembic_dir}")
|
|
587
566
|
sys.exit(1)
|
|
588
567
|
|
|
589
568
|
try:
|
|
590
569
|
# Check if alembic library is installed
|
|
591
570
|
if not HAS_ALEMBIC:
|
|
592
|
-
print("
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
config.read(str(original_ini_path))
|
|
598
|
-
if not config.has_section('alembic'):
|
|
599
|
-
config.add_section('alembic')
|
|
600
|
-
config.set('alembic', 'script_location', alembic_dir.as_posix())
|
|
601
|
-
config.write(tmp)
|
|
602
|
-
|
|
603
|
-
try:
|
|
604
|
-
subprocess.run([sys.executable, "-m", "alembic", "-c", temp_ini_path, "upgrade", "head"], check=True)
|
|
605
|
-
except Exception as e:
|
|
606
|
-
print(f"Error running alembic CLI: {e}")
|
|
607
|
-
print("Please install 'alembic' library with 'pip install alembic'.")
|
|
608
|
-
if ALEMBIC_ERROR:
|
|
609
|
-
print(f"Details: {ALEMBIC_ERROR}")
|
|
610
|
-
sys.exit(1)
|
|
611
|
-
finally:
|
|
612
|
-
if os.path.exists(temp_ini_path):
|
|
613
|
-
os.unlink(temp_ini_path)
|
|
614
|
-
return
|
|
615
|
-
|
|
616
|
-
alembic_cfg = AlembicConfig(str(original_ini_path))
|
|
571
|
+
print(f"Error: 'alembic' library not found. {ALEMBIC_ERROR}")
|
|
572
|
+
print("Please install 'alembic' library with 'pip install alembic'.")
|
|
573
|
+
sys.exit(1)
|
|
574
|
+
|
|
575
|
+
alembic_cfg = AlembicConfig(str(ini_path))
|
|
617
576
|
alembic_cfg.set_main_option("script_location", alembic_dir.as_posix())
|
|
618
577
|
|
|
619
578
|
# 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
|