iris-pex-embedded-python 4.0.0b15__py3-none-any.whl → 4.0.1b1__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.
iop/migration/utils.py CHANGED
@@ -546,7 +546,19 @@ def _build_migration_manifest(
546
546
 
547
547
 
548
548
  def _load_settings(filename):
549
- """Load settings module from file or default location.
549
+ """Load a migration settings module.
550
+
551
+ Purpose:
552
+ Resolve settings.py as a file-based module and keep imports local to the
553
+ settings file directory for this process.
554
+
555
+ Best practices:
556
+ Keep modules imported by settings.py in the same project/package rooted
557
+ near the settings file. Let IoP manage temporary import path setup.
558
+
559
+ Common mistakes:
560
+ Do not require users to set PYTHONPATH. Do not mutate environment
561
+ variables to force imports when module/package layout should be fixed.
550
562
 
551
563
  Returns:
552
564
  tuple: (settings_module, path_added_to_sys)
@@ -723,6 +735,20 @@ def _cleanup_sys_path(path):
723
735
 
724
736
 
725
737
  def import_module_from_path(module_name, file_path):
738
+ """Import one module from an absolute file path.
739
+
740
+ Purpose:
741
+ Execute a specific settings or component module by file location
742
+ without relying on global PYTHONPATH configuration.
743
+
744
+ Best practices:
745
+ Use absolute paths and stable module/package layout so imports resolve
746
+ from the project directory containing settings.py.
747
+
748
+ Common mistakes:
749
+ Do not patch PYTHONPATH or sys.path globally to make imports pass.
750
+ Keep import fixes in project structure and import statements.
751
+ """
726
752
  if not os.path.isabs(file_path):
727
753
  raise ValueError("The file path must be absolute")
728
754
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iris_pex_embedded_python
3
- Version: 4.0.0b15
3
+ Version: 4.0.1b1
4
4
  Summary: Iris Interoperability based on Embedded Python
5
5
  Author-email: grongier <guillaume.rongier@intersystems.com>
6
6
  License: MIT License
@@ -61,7 +61,7 @@ iop/migration/__init__.py,sha256=wp-RvjLKYW_Pi2AJLfiWe1bACxENzEgjXtP9UMNiSVY,36
61
61
  iop/migration/io.py,sha256=hAehtApFZFgGzjzgwBmDMxdA1xoRhE-okOcEzvgFdQ4,1822
62
62
  iop/migration/manifest.py,sha256=Bs4eC1_i-ZnovlgSW9FKu5WBwy_6Zwy5ZAcsi5A1szU,19351
63
63
  iop/migration/plans.py,sha256=5kx3aqQiPDJ3F8hU9pp9_mOO1_N6GA0Ps7--G1Iv6z8,2549
64
- iop/migration/utils.py,sha256=A3BlFpBGsDpF5DyA2DE1Oy52Ja7qC8QbFCxLFe_Xzg0,36867
64
+ iop/migration/utils.py,sha256=qJrp-Q3WjYxtzwTu7TqQppjUvQSYCUN-RJ5KPAu4M9M,37880
65
65
  iop/production/__init__.py,sha256=95VmJgC3lWtHpUJijLqyKKxFZa65OcRni8803kb4aHE,2148
66
66
  iop/production/actions.py,sha256=TLVAjPTPq21oLj9c-IG10qMNJ2hvPzueviMy_c1a0ZU,17199
67
67
  iop/production/common.py,sha256=IoUg9jkFzSQwDsHcXvkVAC4qxpWKs3kTfXFm_EP07EU,3091
@@ -91,9 +91,9 @@ iop/runtime/remote/director.py,sha256=bkie751GrYLgGs7ApRCowHpSnJA8KupxCOrFDQmjyO
91
91
  iop/runtime/remote/migration.py,sha256=Iboz-Ye7i9xif9bn433GazCF-gtD-HJW3wiUwWS5P6w,1831
92
92
  iop/runtime/remote/settings.py,sha256=P1Hsgld5o57HpSZgPVZzobyjlUmxJj6bstiWvR0JXnc,2144
93
93
  iop/runtime/remote/setup.py,sha256=Tr80F3JJTy7oSUso2jyx0iA_KZayd4MYt9vL0BvPpMA,2600
94
- iris_pex_embedded_python-4.0.0b15.dist-info/licenses/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
95
- iris_pex_embedded_python-4.0.0b15.dist-info/METADATA,sha256=FAs1I9jhJCMQabHY14tAR02X2fnv_DS7Yu-yrAZLVso,5284
96
- iris_pex_embedded_python-4.0.0b15.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
97
- iris_pex_embedded_python-4.0.0b15.dist-info/entry_points.txt,sha256=fzS8ZFsPe8cnpEx208X60DNugCPQmuSloPeg4pyyJDY,42
98
- iris_pex_embedded_python-4.0.0b15.dist-info/top_level.txt,sha256=BM54-OXQ6l2BDtmesWNXckh033s9gcjoO7bfjbwZbxU,4
99
- iris_pex_embedded_python-4.0.0b15.dist-info/RECORD,,
94
+ iris_pex_embedded_python-4.0.1b1.dist-info/licenses/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
95
+ iris_pex_embedded_python-4.0.1b1.dist-info/METADATA,sha256=wiQ5-SOMCjBKmcfgxkbkpCVsMM4bW9SgdRCaN--_PGM,5283
96
+ iris_pex_embedded_python-4.0.1b1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
97
+ iris_pex_embedded_python-4.0.1b1.dist-info/entry_points.txt,sha256=fzS8ZFsPe8cnpEx208X60DNugCPQmuSloPeg4pyyJDY,42
98
+ iris_pex_embedded_python-4.0.1b1.dist-info/top_level.txt,sha256=BM54-OXQ6l2BDtmesWNXckh033s9gcjoO7bfjbwZbxU,4
99
+ iris_pex_embedded_python-4.0.1b1.dist-info/RECORD,,