liminal-orm 4.3.1__py3-none-any.whl → 4.3.3__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/cli.py CHANGED
@@ -1,9 +1,8 @@
1
1
  #!/usr/bin/env python
2
2
  import warnings
3
3
  from pathlib import Path
4
-
4
+ from typing import Any
5
5
  import typer
6
- from click import Context
7
6
  from rich import print
8
7
  from typer.core import TyperGroup
9
8
 
@@ -25,7 +24,7 @@ from liminal.migrate.revisions_timeline import RevisionsTimeline
25
24
 
26
25
 
27
26
  class OrderCommands(TyperGroup):
28
- def list_commands(self, ctx: Context) -> list[str]:
27
+ def list_commands(self, *args: Any) -> list[str]:
29
28
  """Return list of commands in the order the commands are defined."""
30
29
  return list(self.commands)
31
30
 
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.3
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
@@ -15,11 +15,11 @@ liminal/base/str_enum.py,sha256=jF3d-Lo8zsHUe6GsctX2L-TSj92Y3qCYDrTD-saeJoc,210
15
15
  liminal/base/properties/base_field_properties.py,sha256=2I3L8mhoxOD1nzEAzwWJzUFemxNYFeAFiIgzvpfyY-M,4704
16
16
  liminal/base/properties/base_name_template.py,sha256=AOtaW4QEDRC-mjZOZk6jgc_mopUMsHS2Fj6VVsO07WY,3150
17
17
  liminal/base/properties/base_schema_properties.py,sha256=jm7dG218gzHITOPdnILY4BUnOCW-KA8yiQjgz5FgQUI,5906
18
- liminal/cli/cli.py,sha256=N1wTOpmfIFG1zCOyAKteSRTmKAdvZUUck-0pgCDSMUw,14383
18
+ liminal/cli/cli.py,sha256=t1eJ1ogQ3uyXPyrkADawQntwEt6AJK_NGf3YT3A7YsM,14377
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.3.dist-info/METADATA,sha256=KRue2Ed47vM9kOWbFGho65EdxGu99Q-FFfu8Y7zSo5Y,10733
81
+ liminal_orm-4.3.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
82
+ liminal_orm-4.3.3.dist-info/entry_points.txt,sha256=M9yndBmBWcZvlHQpZc1sEp-rRTXjsLFiz-pnsI4jy0g,48
83
+ liminal_orm-4.3.3.dist-info/licenses/LICENSE.md,sha256=oVA877F_D1AV44dpjsv4f-4k690uNGApX1EtzOo3T8U,11353
84
+ liminal_orm-4.3.3.dist-info/RECORD,,