dmart 1.4.11__py3-none-any.whl → 1.4.13__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.
- alembic.ini +1 -1
- {dmart-1.4.11.dist-info → dmart-1.4.13.dist-info}/METADATA +1 -1
- {dmart-1.4.11.dist-info → dmart-1.4.13.dist-info}/RECORD +9 -9
- dmart.py +5 -1
- dmart_migrations/__pycache__/__init__.cpython-314.pyc +0 -0
- dmart_migrations/env.py +6 -0
- {dmart-1.4.11.dist-info → dmart-1.4.13.dist-info}/WHEEL +0 -0
- {dmart-1.4.11.dist-info → dmart-1.4.13.dist-info}/entry_points.txt +0 -0
- {dmart-1.4.11.dist-info → dmart-1.4.13.dist-info}/top_level.txt +0 -0
alembic.ini
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[alembic]
|
|
4
4
|
# path to migration scripts
|
|
5
5
|
# Use forward slashes (/) also on windows to provide an os agnostic path
|
|
6
|
-
script_location =
|
|
6
|
+
script_location = alembic
|
|
7
7
|
|
|
8
8
|
# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
|
|
9
9
|
# Uncomment the line below if you want the files to be prepended with date and time
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
alembic.ini,sha256=
|
|
1
|
+
alembic.ini,sha256=wQweByyHQm-EI8BQkE0SHNRjULJ6Xn5jqgvv88IT5Sg,3738
|
|
2
2
|
bundler.py,sha256=so8ZJResb1PcOH5vboa_mpFAdYr_T8u8DbbFXd570Lg,1704
|
|
3
3
|
data_generator.py,sha256=CnE-VHEeX7-lAXtqCgbRqR9WHjTuOgeiZcviYrHAmho,2287
|
|
4
|
-
dmart.py,sha256=
|
|
4
|
+
dmart.py,sha256=dGBsl6j-cWD91aEeyw4VgHAG8Xh6sYrPXVKKUMRLMtk,24794
|
|
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
|
|
@@ -175,10 +175,10 @@ data_adapters/sql/json_to_db_migration.py,sha256=KaubDrRZ3MfPLc-CNGPpsEccPELKr1V
|
|
|
175
175
|
data_adapters/sql/update_query_policies.py,sha256=LUpkyzDAkiwwVWnXxPdVAU6atehW72ECAazj3mEYHK0,3857
|
|
176
176
|
dmart_migrations/README,sha256=MVlc9TYmr57RbhXET6QxgyCcwWP7w-vLkEsirENqiIQ,38
|
|
177
177
|
dmart_migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
178
|
-
dmart_migrations/env.py,sha256=
|
|
178
|
+
dmart_migrations/env.py,sha256=P1gnJRIUrP2jLHZ7HDbfkzkpuZJ_LMWqw05HIqOUJHo,3110
|
|
179
179
|
dmart_migrations/notes.txt,sha256=X7LYSNmulLRiAUXvw07Z85bSGRTnx4NUpoNC9D2DfO8,395
|
|
180
180
|
dmart_migrations/script.py.mako,sha256=u-ABdYW1tcIILgJFJdQZYLxoAI8Awd6wZbx30rY6fxU,680
|
|
181
|
-
dmart_migrations/__pycache__/__init__.cpython-314.pyc,sha256=
|
|
181
|
+
dmart_migrations/__pycache__/__init__.cpython-314.pyc,sha256=BB6R74YhUmoPWg2dYz2gTIM0CE7sMcOt0dsgqEEPza4,174
|
|
182
182
|
dmart_migrations/__pycache__/env.cpython-314.pyc,sha256=9L-2pPlUSIrHh1JLQilY0TDxqo7_ikqfKhFwImuCuwk,3935
|
|
183
183
|
dmart_migrations/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
184
184
|
dmart_migrations/scripts/calculate_checksums.py,sha256=v2NLEvReA9V3noJE-BWANgKDdhc8Mqg1ZmJJ8nc8sGI,3443
|
|
@@ -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.
|
|
286
|
-
dmart-1.4.
|
|
287
|
-
dmart-1.4.
|
|
288
|
-
dmart-1.4.
|
|
289
|
-
dmart-1.4.
|
|
285
|
+
dmart-1.4.13.dist-info/METADATA,sha256=0d3-SkAFxQeeKVN8VClBRVNVJapIVbCXbvT8bwFV5fQ,2069
|
|
286
|
+
dmart-1.4.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
287
|
+
dmart-1.4.13.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
|
|
288
|
+
dmart-1.4.13.dist-info/top_level.txt,sha256=XELQhaIfj-qupnyBrir39qFRh8ncu1RXkCHeitzqLLg,275
|
|
289
|
+
dmart-1.4.13.dist-info/RECORD,,
|
dmart.py
CHANGED
|
@@ -537,6 +537,7 @@ def main():
|
|
|
537
537
|
pkg_dir = Path(__file__).resolve().parent
|
|
538
538
|
|
|
539
539
|
# Try to find migrations directory
|
|
540
|
+
# When installed via PyPI, it's renamed to dmart_migrations to avoid conflict with alembic library
|
|
540
541
|
alembic_dir = pkg_dir / "dmart_migrations"
|
|
541
542
|
if not alembic_dir.exists():
|
|
542
543
|
alembic_dir = pkg_dir / "alembic"
|
|
@@ -562,10 +563,13 @@ def main():
|
|
|
562
563
|
# Check if alembic is installed
|
|
563
564
|
check = subprocess.run(
|
|
564
565
|
[sys.executable, "-c", "import alembic"],
|
|
565
|
-
capture_output=True
|
|
566
|
+
capture_output=True,
|
|
567
|
+
env=env
|
|
566
568
|
)
|
|
567
569
|
if check.returncode != 0:
|
|
568
570
|
print("Error: 'alembic' library not found. Please install it with 'pip install alembic'.")
|
|
571
|
+
if check.stderr:
|
|
572
|
+
print(f"Stderr: {check.stderr.decode()}")
|
|
569
573
|
sys.exit(1)
|
|
570
574
|
|
|
571
575
|
import tempfile
|
|
Binary file
|
dmart_migrations/env.py
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
import os
|
|
3
|
+
# Add the parent directory (backend) to sys.path to allow importing modules from it
|
|
4
|
+
# This is done here to avoid adding it to PYTHONPATH globally which causes shadowing of 'alembic' library
|
|
5
|
+
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
6
|
+
|
|
1
7
|
from logging.config import fileConfig
|
|
2
8
|
|
|
3
9
|
from sqlalchemy import engine_from_config
|
|
File without changes
|
|
File without changes
|
|
File without changes
|