wt-task 0.1.0__tar.gz → 0.1.2__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 (37) hide show
  1. wt_task-0.1.2/CHANGELOG.md +13 -0
  2. {wt_task-0.1.0 → wt_task-0.1.2}/PKG-INFO +4 -4
  3. {wt_task-0.1.0 → wt_task-0.1.2}/README.md +1 -1
  4. {wt_task-0.1.0 → wt_task-0.1.2}/pyproject.toml +3 -3
  5. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/_version.py +3 -3
  6. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/tracing/_config.py +19 -7
  7. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task.egg-info/PKG-INFO +4 -4
  8. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task.egg-info/SOURCES.txt +1 -0
  9. {wt_task-0.1.0 → wt_task-0.1.2}/setup.cfg +0 -0
  10. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/__init__.py +0 -0
  11. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/async_task.py +0 -0
  12. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/base.py +0 -0
  13. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/decorator.py +0 -0
  14. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/exceptions.py +0 -0
  15. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/executors/__init__.py +0 -0
  16. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/executors/base.py +0 -0
  17. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/executors/python.py +0 -0
  18. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/py.typed +0 -0
  19. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/skip.py +0 -0
  20. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/sync_task.py +0 -0
  21. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/testing.py +0 -0
  22. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/tracing/__init__.py +0 -0
  23. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/tracing/_decorator.py +0 -0
  24. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task.egg-info/dependency_links.txt +0 -0
  25. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task.egg-info/requires.txt +0 -0
  26. {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task.egg-info/top_level.txt +0 -0
  27. {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_decorator.py +0 -0
  28. {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_exceptions.py +0 -0
  29. {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_executors.py +0 -0
  30. {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_map.py +0 -0
  31. {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_mapvalues.py +0 -0
  32. {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_partial.py +0 -0
  33. {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_skip.py +0 -0
  34. {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_testing.py +0 -0
  35. {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_tracing.py +0 -0
  36. {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_validation.py +0 -0
  37. {wt_task-0.1.0 → wt_task-0.1.2}/uv.lock +0 -0
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ ## v0.1.2 — 2026-03-13
4
+
5
+ - `configure_tracer()` and `attach_context()` now warn instead of raising `ImportError` when tracing deps are missing ([#60](https://github.com/wildlife-dynamics/wt/pull/60))
6
+
7
+ ## v0.1.1 — 2026-03-05
8
+
9
+ - Fix incorrect license metadata
10
+
11
+ ## v0.1.0 — 2026-03-05
12
+
13
+ - Initial release
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wt-task
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Task decorator and execution features for wt ecosystem
5
5
  Author: Ecoscope Workflows Team
6
- License: Apache-2.0
6
+ License: BSD-3-Clause
7
7
  Keywords: workflow,task,execution,decorator
8
8
  Classifier: Development Status :: 3 - Alpha
9
9
  Classifier: Intended Audience :: Developers
10
- Classifier: License :: OSI Approved :: Apache Software License
10
+ Classifier: License :: OSI Approved :: BSD License
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
@@ -197,4 +197,4 @@ uv run pytest tests/test_decorator.py
197
197
 
198
198
  ## License
199
199
 
200
- Apache-2.0
200
+ BSD-3-Clause
@@ -173,4 +173,4 @@ uv run pytest tests/test_decorator.py
173
173
 
174
174
  ## License
175
175
 
176
- Apache-2.0
176
+ BSD-3-Clause
@@ -8,7 +8,7 @@ dynamic = ["version"]
8
8
  description = "Task decorator and execution features for wt ecosystem"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
11
- license = { text = "Apache-2.0" }
11
+ license = { text = "BSD-3-Clause" }
12
12
  authors = [
13
13
  { name = "Ecoscope Workflows Team" }
14
14
  ]
@@ -16,7 +16,7 @@ keywords = ["workflow", "task", "execution", "decorator"]
16
16
  classifiers = [
17
17
  "Development Status :: 3 - Alpha",
18
18
  "Intended Audience :: Developers",
19
- "License :: OSI Approved :: Apache Software License",
19
+ "License :: OSI Approved :: BSD License",
20
20
  "Programming Language :: Python :: 3",
21
21
  "Programming Language :: Python :: 3.10",
22
22
  "Programming Language :: Python :: 3.11",
@@ -123,7 +123,7 @@ ignore = [
123
123
 
124
124
  [tool.pixi.package]
125
125
  name = "wt-task"
126
- version = "0.1.0"
126
+ version = "0.1.2"
127
127
 
128
128
  [tool.pixi.package.build]
129
129
  backend = { name = "pixi-build-python", version = "*", channels = ["conda-forge", "https://prefix.dev/pixi-build-backends"] }
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.1.0'
32
- __version_tuple__ = version_tuple = (0, 1, 0)
31
+ __version__ = version = '0.1.2'
32
+ __version_tuple__ = version_tuple = (0, 1, 2)
33
33
 
34
- __commit_id__ = commit_id = 'gfa96100'
34
+ __commit_id__ = commit_id = 'geecefd3'
@@ -97,7 +97,9 @@ def configure_tracer(
97
97
 
98
98
  Raises:
99
99
  ValueError: If an unknown exporter type is specified
100
- ImportError: If tracing dependencies are not installed
100
+
101
+ Warns:
102
+ UserWarning: If tracing dependencies are not installed (tracing is silently disabled)
101
103
 
102
104
  Examples:
103
105
  >>> # Configure with console exporter to stdout
@@ -108,9 +110,14 @@ def configure_tracer(
108
110
  >>> configure_tracer("my-service", "1.0.0", "console", kws)
109
111
  """
110
112
  if not TRACING_AVAILABLE:
111
- raise ImportError(
112
- "OpenTelemetry dependencies not installed. Install with: pip install wt-task[gcp]"
113
+ import warnings
114
+
115
+ warnings.warn(
116
+ "OpenTelemetry dependencies not installed. Tracing is disabled. "
117
+ "Install with: pip install wt-task[gcp]",
118
+ stacklevel=2,
113
119
  )
120
+ return
114
121
 
115
122
  resource = Resource.create(
116
123
  {
@@ -177,8 +184,8 @@ def attach_context(traceparent: str, tracestate: str | None = None) -> None:
177
184
  traceparent: W3C traceparent header value
178
185
  tracestate: Optional W3C tracestate header value
179
186
 
180
- Raises:
181
- ImportError: If tracing dependencies are not installed
187
+ Warns:
188
+ UserWarning: If tracing dependencies are not installed (context attachment is skipped)
182
189
 
183
190
  Examples:
184
191
  >>> # In a distributed system, receive headers and attach context
@@ -187,9 +194,14 @@ def attach_context(traceparent: str, tracestate: str | None = None) -> None:
187
194
  ... )
188
195
  """
189
196
  if not TRACING_AVAILABLE:
190
- raise ImportError(
191
- "OpenTelemetry dependencies not installed. Install with: pip install wt-task[gcp]"
197
+ import warnings
198
+
199
+ warnings.warn(
200
+ "OpenTelemetry dependencies not installed. Cannot attach trace context. "
201
+ "Install with: pip install wt-task[gcp]",
202
+ stacklevel=2,
192
203
  )
204
+ return
193
205
 
194
206
  carrier: dict[str, str] = {"traceparent": traceparent}
195
207
  if tracestate:
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wt-task
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Task decorator and execution features for wt ecosystem
5
5
  Author: Ecoscope Workflows Team
6
- License: Apache-2.0
6
+ License: BSD-3-Clause
7
7
  Keywords: workflow,task,execution,decorator
8
8
  Classifier: Development Status :: 3 - Alpha
9
9
  Classifier: Intended Audience :: Developers
10
- Classifier: License :: OSI Approved :: Apache Software License
10
+ Classifier: License :: OSI Approved :: BSD License
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
@@ -197,4 +197,4 @@ uv run pytest tests/test_decorator.py
197
197
 
198
198
  ## License
199
199
 
200
- Apache-2.0
200
+ BSD-3-Clause
@@ -1,3 +1,4 @@
1
+ CHANGELOG.md
1
2
  README.md
2
3
  pyproject.toml
3
4
  uv.lock
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes