cuneus 0.2.2__tar.gz → 0.2.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cuneus
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: ASGI application wrapper
5
5
  Project-URL: Homepage, https://github.com/rmyers/cuneus
6
6
  Project-URL: Documentation, https://github.com/rmyers/cuneus#readme
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cuneus"
3
- version = "0.2.2"
3
+ version = "0.2.3"
4
4
  description = "ASGI application wrapper"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Robert Myers", email = "robert@julython.org" }]
@@ -1,10 +1,13 @@
1
1
  """Base CLI that cuneus provides."""
2
2
 
3
- import click
3
+ from pathlib import Path
4
+
4
5
  import importlib
5
6
  import sys
6
7
  from typing import Any, cast
7
8
 
9
+ import click
10
+
8
11
  from .core.settings import Settings
9
12
 
10
13
 
@@ -37,6 +40,10 @@ def get_user_cli() -> click.Group | None:
37
40
  def cli(ctx: click.Context) -> None:
38
41
  """Cuneus CLI - FastAPI application framework."""
39
42
  ctx.ensure_object(dict)
43
+ # Ensure cwd is in path for local imports
44
+ cwd = str(Path.cwd())
45
+ if cwd not in sys.path:
46
+ sys.path.insert(0, cwd)
40
47
 
41
48
 
42
49
  @cli.command()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes