skrift 0.1.0a6__py3-none-any.whl → 0.1.0a7__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.
skrift/asgi.py CHANGED
@@ -11,6 +11,7 @@ import asyncio
11
11
  import hashlib
12
12
  import importlib
13
13
  import os
14
+ import sys
14
15
  from datetime import datetime
15
16
  from pathlib import Path
16
17
 
@@ -57,16 +58,17 @@ def load_controllers() -> list:
57
58
  if not config:
58
59
  return []
59
60
 
61
+ # Add working directory to sys.path for local controller imports
62
+ cwd = os.getcwd()
63
+ if cwd not in sys.path:
64
+ sys.path.insert(0, cwd)
65
+
60
66
  controllers = []
61
67
  for controller_spec in config.get("controllers", []):
62
- try:
63
- module_path, class_name = controller_spec.split(":")
64
- module = importlib.import_module(module_path)
65
- controller_class = getattr(module, class_name)
66
- controllers.append(controller_class)
67
- except Exception:
68
- # Skip controllers that can't be loaded during setup
69
- pass
68
+ module_path, class_name = controller_spec.split(":")
69
+ module = importlib.import_module(module_path)
70
+ controller_class = getattr(module, class_name)
71
+ controllers.append(controller_class)
70
72
 
71
73
  return controllers
72
74
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: skrift
3
- Version: 0.1.0a6
3
+ Version: 0.1.0a7
4
4
  Summary: A lightweight async Python CMS for crafting modern websites
5
5
  Requires-Python: >=3.13
6
6
  Requires-Dist: advanced-alchemy>=0.26.0
@@ -1,7 +1,7 @@
1
1
  skrift/__init__.py,sha256=eXE5PFVkJpH5XsV_ZlrTIeFPUPrmcHYAj4GpRS3R5PY,29
2
2
  skrift/__main__.py,sha256=wt6JZL9nBhKU36vdyurhOEtWy7w3C9zohyy24PLcKho,164
3
3
  skrift/alembic.ini,sha256=mYguI6CbMCTyfHctsGiTyf9Z5gv21FdeI3qtfgOHO3A,1815
4
- skrift/asgi.py,sha256=PQRC1tyPT4iYNbrTusvLlLQ9rbsDp8w8V2scsNWM7qY,19874
4
+ skrift/asgi.py,sha256=Y4cOH4bgGaRcDZiXgNH0DAnWurFQGsOgYqtNwHYDGTI,19900
5
5
  skrift/cli.py,sha256=aT-7pXvOuuZC-Eypx1h-xCiqaBKhIFjSqd5Ky_dHna0,4214
6
6
  skrift/config.py,sha256=_fXfdRdy03yJWUhijthC4cNgOXLJ0jhB__C-VwVYaxc,7398
7
7
  skrift/admin/__init__.py,sha256=x81Cj_ilVmv6slaMl16HHyT_AgrnLxKEWkS0RPa4V9s,289
@@ -66,7 +66,7 @@ skrift/templates/setup/configuring.html,sha256=2KHW9h2BrJgL_kO5IizbAYs4pnFLyRf76
66
66
  skrift/templates/setup/database.html,sha256=gU4-315-QraHa2Eq4Fh3b55QpOM2CkJzh27_Yz13frA,5495
67
67
  skrift/templates/setup/restart.html,sha256=GHg31F_e2uLFhWUzJoalk0Y0oYLqsFWyZXWKX3mblbY,1355
68
68
  skrift/templates/setup/site.html,sha256=PSOH-q1-ZBl47iSW9-Ad6lEfJn_fzdGD3Pk4vb3xgK4,1680
69
- skrift-0.1.0a6.dist-info/METADATA,sha256=TAXajlBybDa-iLbvVsiERUoP9xrjDj636dNpE2auDto,6435
70
- skrift-0.1.0a6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
71
- skrift-0.1.0a6.dist-info/entry_points.txt,sha256=uquZ5Mumqr0xwYTpTcNiJtFSITGfF6_QCCy2DZJSZig,42
72
- skrift-0.1.0a6.dist-info/RECORD,,
69
+ skrift-0.1.0a7.dist-info/METADATA,sha256=mTu2DH5_wI0epJniULyf2Txwp7I_MzwoKCukUASlUwg,6435
70
+ skrift-0.1.0a7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
71
+ skrift-0.1.0a7.dist-info/entry_points.txt,sha256=uquZ5Mumqr0xwYTpTcNiJtFSITGfF6_QCCy2DZJSZig,42
72
+ skrift-0.1.0a7.dist-info/RECORD,,