liminal-orm 4.3.1__py3-none-any.whl → 4.3.2__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.
liminal/cli/utils.py CHANGED
@@ -1,6 +1,7 @@
1
1
  import importlib.util
2
2
  from logging import Logger
3
3
  from pathlib import Path
4
+ import sys
4
5
 
5
6
  from liminal.connection.benchling_connection import BenchlingConnection
6
7
 
@@ -47,7 +48,18 @@ def _read_local_env_file(
47
48
  if spec is None or spec.loader is None:
48
49
  raise Exception(f"Could not find {env_file_path}.")
49
50
  module = importlib.util.module_from_spec(spec)
50
- spec.loader.exec_module(module)
51
+
52
+ parent_dir = str(module_path.parent.parent)
53
+ sys_path_modified = False
54
+ if parent_dir not in sys.path:
55
+ sys.path.insert(0, parent_dir)
56
+ sys_path_modified = True
57
+ try:
58
+ spec.loader.exec_module(module)
59
+ finally:
60
+ if sys_path_modified:
61
+ sys.path.remove(parent_dir)
62
+
51
63
  for attr_name in dir(module):
52
64
  bc = getattr(module, attr_name)
53
65
  if isinstance(bc, BenchlingConnection):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: liminal-orm
3
- Version: 4.3.1
3
+ Version: 4.3.2
4
4
  Summary: An ORM and toolkit that builds on top of Benchling's platform to keep your schemas and downstream code dependencies in sync.
5
5
  Project-URL: Homepage, https://github.com/dynotx/liminal-orm
6
6
  Project-URL: Repository, https://github.com/dynotx/liminal-orm
@@ -19,7 +19,7 @@ liminal/cli/cli.py,sha256=N1wTOpmfIFG1zCOyAKteSRTmKAdvZUUck-0pgCDSMUw,14383
19
19
  liminal/cli/controller.py,sha256=2eRP-SDapjDsTYaipxhQyXwBYKtoJcbKNbd4rZCQNlk,11501
20
20
  liminal/cli/live_test_dropdown_migration.py,sha256=XLeFZaR4acLOQ6LmTMWjZHIIUnB6ysZMUu6kaSRcQiA,2913
21
21
  liminal/cli/live_test_entity_schema_migration.py,sha256=N3A_GALm3ITP3Vej_gXtCdW7OTIlsrPM9BezUzhPP64,5523
22
- liminal/cli/utils.py,sha256=zaUkNW0P3ZU2qgtSbIwW6pE7DSlrrijv8NG7v21_5xw,4588
22
+ liminal/cli/utils.py,sha256=oxh6B3JeDaHrnFxQWa5VsmsAsX17hO1Rm4PVD52a51s,4882
23
23
  liminal/connection/__init__.py,sha256=60SyUzDxiTv9wn7cNyoqB4b9BuI3E6susqanYGvLnG8,212
24
24
  liminal/connection/benchling_connection.py,sha256=PLiaI4v9EcJDNBEO5ZF3jERuI6AYo8NAYpqPYLxVYdQ,3237
25
25
  liminal/connection/benchling_service.py,sha256=gpZLGd7SwqyddWHLSoAd6PBxGqjdfQKYWhtVdpFnMeU,12425
@@ -77,8 +77,8 @@ liminal/tests/test_entity_schema_compare.py,sha256=asKDU4uO1PFdWCKU-78xqSzNN90L6
77
77
  liminal/unit_dictionary/utils.py,sha256=o3K06Yyt33iIUSMHPT8f1vSuUSgWjZLf51p78lx4SZs,1817
78
78
  liminal/validation/__init__.py,sha256=NsjzmivSRwGki1k9ykJgjtcYNcILR_PHSf6RkI1w2n0,5290
79
79
  liminal/validation/validation_severity.py,sha256=ib03PTZCQHcbBDc01v4gJF53YtA-ANY6QSFnhTV-FbU,259
80
- liminal_orm-4.3.1.dist-info/METADATA,sha256=3WSCahs9Ec6V-C7fY2Mh6I2zFX3k1f2WSCSbAcIlkx4,10733
81
- liminal_orm-4.3.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
82
- liminal_orm-4.3.1.dist-info/entry_points.txt,sha256=M9yndBmBWcZvlHQpZc1sEp-rRTXjsLFiz-pnsI4jy0g,48
83
- liminal_orm-4.3.1.dist-info/licenses/LICENSE.md,sha256=oVA877F_D1AV44dpjsv4f-4k690uNGApX1EtzOo3T8U,11353
84
- liminal_orm-4.3.1.dist-info/RECORD,,
80
+ liminal_orm-4.3.2.dist-info/METADATA,sha256=UIx-DwkM7AXZaFEpdWWCvq32PDBDagzJnXuXGoRyLgY,10733
81
+ liminal_orm-4.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
82
+ liminal_orm-4.3.2.dist-info/entry_points.txt,sha256=M9yndBmBWcZvlHQpZc1sEp-rRTXjsLFiz-pnsI4jy0g,48
83
+ liminal_orm-4.3.2.dist-info/licenses/LICENSE.md,sha256=oVA877F_D1AV44dpjsv4f-4k690uNGApX1EtzOo3T8U,11353
84
+ liminal_orm-4.3.2.dist-info/RECORD,,