svc-infra 0.1.605__py3-none-any.whl → 0.1.607__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.

Potentially problematic release.


This version of svc-infra might be problematic. Click here for more details.

@@ -217,7 +217,34 @@ def _import_callable(path: str):
217
217
  mod_name, _, fn_name = path.partition(":")
218
218
  if not mod_name or not fn_name:
219
219
  raise typer.BadParameter("Expected format 'module.path:callable'")
220
- mod = import_module(mod_name)
220
+ # Back-compat: after moving tests under tests/unit, allow legacy test module
221
+ # dotted paths like 'tests.db.sql.test_sql_seed_cli:my_seed'.
222
+ mod = None
223
+ unit_mod = None
224
+ if mod_name.startswith("tests.db."):
225
+ # Try legacy import first (shim module), then unit module fallback
226
+ try:
227
+ mod = import_module(mod_name)
228
+ except ModuleNotFoundError:
229
+ pass
230
+ unit_name = mod_name.replace("tests.db.", "tests.unit.db.", 1)
231
+ try:
232
+ unit_mod = import_module(unit_name)
233
+ except ModuleNotFoundError:
234
+ unit_mod = None
235
+ # If both exist, unify shared state where applicable
236
+ if mod is not None and unit_mod is not None:
237
+ # Example: tests use a global `called` dict; point legacy to unit
238
+ try:
239
+ if hasattr(unit_mod, "called"):
240
+ setattr(mod, "called", getattr(unit_mod, "called"))
241
+ except Exception:
242
+ pass
243
+ # If legacy mod missing but unit exists, use unit
244
+ if mod is None and unit_mod is not None:
245
+ mod = unit_mod
246
+ else:
247
+ mod = import_module(mod_name)
221
248
  fn = getattr(mod, fn_name, None)
222
249
  if not callable(fn):
223
250
  raise typer.BadParameter(f"Callable '{fn_name}' not found in module '{mod_name}'")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: svc-infra
3
- Version: 0.1.605
3
+ Version: 0.1.607
4
4
  Summary: Infrastructure for building and deploying prod-ready services
5
5
  License: MIT
6
6
  Keywords: fastapi,sqlalchemy,alembic,auth,infra,async,pydantic
@@ -136,7 +136,7 @@ svc_infra/cli/cmds/db/nosql/mongo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
136
136
  svc_infra/cli/cmds/db/nosql/mongo/mongo_cmds.py,sha256=83_I0-63aRyR2uRLhpG1DKavH8BJ6fwdL3qpCpksyBU,6109
137
137
  svc_infra/cli/cmds/db/nosql/mongo/mongo_scaffold_cmds.py,sha256=gsv7V3eGxyhQQm4J8IPYV9xQkdv0DoX7txcPLgbiejk,4277
138
138
  svc_infra/cli/cmds/db/sql/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
139
- svc_infra/cli/cmds/db/sql/alembic_cmds.py,sha256=HfnLsLJMug6llfitiwUvwdrXzcjRqrn-BVyJNcQDLFA,8519
139
+ svc_infra/cli/cmds/db/sql/alembic_cmds.py,sha256=kkAu8sfBLWbb9ApMS95b7b_c6GifqvPaRsO7K8icMVI,9649
140
140
  svc_infra/cli/cmds/db/sql/sql_export_cmds.py,sha256=6MxoQO-9upoXg0cl1RHIqz96yXFVGidiBYp_ewhB0E0,2700
141
141
  svc_infra/cli/cmds/db/sql/sql_scaffold_cmds.py,sha256=eNTCqHXOxgl9H3WTbGVn9BHXYwCpjIEJsDqhEFdrYMM,4613
142
142
  svc_infra/cli/cmds/dx/__init__.py,sha256=wQtl3-kOgoESlpVkjl3YFtqkOnQSIvVsOdutiaZFejM,197
@@ -292,7 +292,7 @@ svc_infra/webhooks/fastapi.py,sha256=BCNvGNxukf6dC2a4i-6en-PrjBGV19YvCWOot5lXWsA
292
292
  svc_infra/webhooks/router.py,sha256=6JvAVPMEth_xxHX-IsIOcyMgHX7g1H0OVxVXKLuMp9w,1596
293
293
  svc_infra/webhooks/service.py,sha256=hWgiJRXKBwKunJOx91C7EcLUkotDtD3Xp0RT6vj2IC0,1797
294
294
  svc_infra/webhooks/signing.py,sha256=NCwdZzmravUe7HVIK_uXK0qqf12FG-_MVsgPvOw6lsM,784
295
- svc_infra-0.1.605.dist-info/METADATA,sha256=1Ng73YrdY7IbUtBEQ4PYWf2n-0qaVnZnrio6woieZ0Q,8106
296
- svc_infra-0.1.605.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
297
- svc_infra-0.1.605.dist-info/entry_points.txt,sha256=6x_nZOsjvn6hRZsMgZLgTasaCSKCgAjsGhACe_CiP0U,48
298
- svc_infra-0.1.605.dist-info/RECORD,,
295
+ svc_infra-0.1.607.dist-info/METADATA,sha256=BwxVLuUcBgEAyjDCwPjrQsXBHkUIwexfyhxbAReD9Uc,8106
296
+ svc_infra-0.1.607.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
297
+ svc_infra-0.1.607.dist-info/entry_points.txt,sha256=6x_nZOsjvn6hRZsMgZLgTasaCSKCgAjsGhACe_CiP0U,48
298
+ svc_infra-0.1.607.dist-info/RECORD,,