dmart 1.4.30__py3-none-any.whl → 1.4.32__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.30.dist-info → dmart-1.4.32.dist-info}/METADATA +1 -1
- {dmart-1.4.30.dist-info → dmart-1.4.32.dist-info}/RECORD +6 -6
- dmart.py +12 -5
- {dmart-1.4.30.dist-info → dmart-1.4.32.dist-info}/WHEEL +0 -0
- {dmart-1.4.30.dist-info → dmart-1.4.32.dist-info}/entry_points.txt +0 -0
- {dmart-1.4.30.dist-info → dmart-1.4.32.dist-info}/top_level.txt +0 -0
|
@@ -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=
|
|
3
|
+
dmart.py,sha256=9tM6DmJUzkngTYWdnG96-yuuqMmMmqxVrEYmvsFYLOE,24445
|
|
4
4
|
get_settings.py,sha256=Sbe2WCoiK398E7HY4SNLfDN_GmE8knR4M-YJWF31jcg,153
|
|
5
5
|
main.py,sha256=KZGhIL6AnEm5ZAPy4IvhBDpzSTjuodilV7NafNOyhzM,19676
|
|
6
6
|
migrate.py,sha256=hn1MZoVby_Jjqhc7y3CrLcGD619QmVZv3PONNvO7VKQ,665
|
|
@@ -271,8 +271,8 @@ utils/ticket_sys_utils.py,sha256=9QAlW2iiy8KyxQRBDj_WmzS5kKb0aYJmGwd4qzmGVqo,700
|
|
|
271
271
|
utils/web_notifier.py,sha256=QM87VVid2grC5lK3NdS1yzz0z1wXljr4GChJOeK86W4,843
|
|
272
272
|
utils/templates/activation.html.j2,sha256=XAMKCdoqONoc4ZQucD0yV-Pg5DlHHASZrTVItNS-iBE,640
|
|
273
273
|
utils/templates/reminder.html.j2,sha256=aoS8bTs56q4hjAZKsb0jV9c-PIURBELuBOpT_qPZNVU,639
|
|
274
|
-
dmart-1.4.
|
|
275
|
-
dmart-1.4.
|
|
276
|
-
dmart-1.4.
|
|
277
|
-
dmart-1.4.
|
|
278
|
-
dmart-1.4.
|
|
274
|
+
dmart-1.4.32.dist-info/METADATA,sha256=OsIWme8HRVz7FSh3qJ1M7SDkqX6XYcfmr-p_7PkoFFk,2149
|
|
275
|
+
dmart-1.4.32.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
276
|
+
dmart-1.4.32.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
|
|
277
|
+
dmart-1.4.32.dist-info/top_level.txt,sha256=S-gfX1pLerapNXiHZ8lvPYoV7sgwSX2_NCZ6xfzDUHM,267
|
|
278
|
+
dmart-1.4.32.dist-info/RECORD,,
|
dmart.py
CHANGED
|
@@ -31,7 +31,8 @@ def get_alembic():
|
|
|
31
31
|
from alembic.config import Config as AlembicConfig
|
|
32
32
|
return alembic_command, AlembicConfig
|
|
33
33
|
except ImportError as e:
|
|
34
|
-
|
|
34
|
+
import sys
|
|
35
|
+
ALEMBIC_ERROR = f"{e}\nDebug info: sys.path={sys.path}"
|
|
35
36
|
return None, None
|
|
36
37
|
|
|
37
38
|
from data_adapters.file.archive import archive
|
|
@@ -399,8 +400,6 @@ def hypercorn_main() -> int:
|
|
|
399
400
|
|
|
400
401
|
|
|
401
402
|
def main():
|
|
402
|
-
global sys
|
|
403
|
-
|
|
404
403
|
args = sys.argv[1:]
|
|
405
404
|
if len(args) == 0:
|
|
406
405
|
print("You must provide a command to run:")
|
|
@@ -557,9 +556,17 @@ def main():
|
|
|
557
556
|
|
|
558
557
|
# Try to find migrations directory
|
|
559
558
|
alembic_dir = pkg_dir / "dmart_migrations"
|
|
560
|
-
if not alembic_dir.exists():
|
|
559
|
+
if not (alembic_dir / "env.py").exists():
|
|
561
560
|
# Fallback to alembic for backward compatibility
|
|
562
|
-
|
|
561
|
+
# only if it contains env.py (to avoid picking up the alembic library itself)
|
|
562
|
+
fallback_dir = pkg_dir / "alembic"
|
|
563
|
+
if (fallback_dir / "env.py").exists():
|
|
564
|
+
alembic_dir = fallback_dir
|
|
565
|
+
|
|
566
|
+
if not alembic_dir.exists() or not (alembic_dir / "env.py").exists():
|
|
567
|
+
print(f"Error: Migration directory not found in {pkg_dir}")
|
|
568
|
+
print(f"Looked for 'dmart_migrations' or 'alembic' folder containing 'env.py'")
|
|
569
|
+
sys.exit(1)
|
|
563
570
|
|
|
564
571
|
# Look for alembic.ini in the package directory or migrations directory
|
|
565
572
|
ini_path = pkg_dir / "alembic.ini"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|