nebu 0.1.12__tar.gz → 0.1.14__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.
Files changed (26) hide show
  1. {nebu-0.1.12/src/nebu.egg-info → nebu-0.1.14}/PKG-INFO +1 -1
  2. {nebu-0.1.12 → nebu-0.1.14}/pyproject.toml +1 -1
  3. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/__init__.py +3 -0
  4. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/processors/consumer.py +2 -0
  5. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/processors/decorate.py +3 -8
  6. {nebu-0.1.12 → nebu-0.1.14/src/nebu.egg-info}/PKG-INFO +1 -1
  7. {nebu-0.1.12 → nebu-0.1.14}/LICENSE +0 -0
  8. {nebu-0.1.12 → nebu-0.1.14}/README.md +0 -0
  9. {nebu-0.1.12 → nebu-0.1.14}/setup.cfg +0 -0
  10. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/auth.py +0 -0
  11. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/config.py +0 -0
  12. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/containers/container.py +0 -0
  13. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/containers/decorator.py +0 -0
  14. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/containers/models.py +0 -0
  15. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/containers/server.py +0 -0
  16. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/meta.py +0 -0
  17. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/processors/default.py +0 -0
  18. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/processors/models.py +0 -0
  19. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/processors/processor.py +0 -0
  20. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/redis/models.py +0 -0
  21. {nebu-0.1.12 → nebu-0.1.14}/src/nebu/services/service.py +0 -0
  22. {nebu-0.1.12 → nebu-0.1.14}/src/nebu.egg-info/SOURCES.txt +0 -0
  23. {nebu-0.1.12 → nebu-0.1.14}/src/nebu.egg-info/dependency_links.txt +0 -0
  24. {nebu-0.1.12 → nebu-0.1.14}/src/nebu.egg-info/requires.txt +0 -0
  25. {nebu-0.1.12 → nebu-0.1.14}/src/nebu.egg-info/top_level.txt +0 -0
  26. {nebu-0.1.12 → nebu-0.1.14}/tests/test_containers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.12
3
+ Version: 0.1.14
4
4
  Summary: A globally distributed container runtime
5
5
  Requires-Python: >=3.10.14
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nebu"
3
- version = "0.1.12"
3
+ version = "0.1.14"
4
4
  description = "A globally distributed container runtime"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10.14"
@@ -7,3 +7,6 @@ from .config import *
7
7
  from .containers.container import Container
8
8
  from .containers.models import *
9
9
  from .meta import *
10
+ from .processors.decorate import *
11
+ from .processors.models import *
12
+ from .processors.processor import *
@@ -94,6 +94,8 @@ try:
94
94
  local_namespace,
95
95
  )
96
96
  exec("T = TypeVar('T')", local_namespace)
97
+ exec("from nebu.processors.models import *", local_namespace)
98
+ exec("from nebu.processors.processor import *", local_namespace)
97
99
 
98
100
  # First try to import the module to get any needed dependencies
99
101
  # This is a fallback in case the module is available
@@ -187,14 +187,9 @@ def processor(
187
187
  if stripped_line.startswith("def "):
188
188
  func_def_index = i
189
189
  break
190
- elif stripped_line.startswith("@") or not stripped_line:
191
- # Skip decorator lines and empty lines before 'def'
192
- continue
193
- else:
194
- # Found something unexpected before 'def'
195
- raise ValueError(
196
- f"Unexpected content found before 'def' in source for {func.__name__}. Cannot reliably strip decorators."
197
- )
190
+ # Simply continue if it's not the def line.
191
+ # This skips decorators and their arguments, regardless of multi-line formatting.
192
+ continue
198
193
 
199
194
  if func_def_index != -1:
200
195
  # Keep lines from the 'def' line onwards
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.12
3
+ Version: 0.1.14
4
4
  Summary: A globally distributed container runtime
5
5
  Requires-Python: >=3.10.14
6
6
  Description-Content-Type: text/markdown
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes