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.
- wt_task-0.1.2/CHANGELOG.md +13 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/PKG-INFO +4 -4
- {wt_task-0.1.0 → wt_task-0.1.2}/README.md +1 -1
- {wt_task-0.1.0 → wt_task-0.1.2}/pyproject.toml +3 -3
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/_version.py +3 -3
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/tracing/_config.py +19 -7
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task.egg-info/PKG-INFO +4 -4
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task.egg-info/SOURCES.txt +1 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/setup.cfg +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/__init__.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/async_task.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/base.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/decorator.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/exceptions.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/executors/__init__.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/executors/base.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/executors/python.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/py.typed +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/skip.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/sync_task.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/testing.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/tracing/__init__.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task/tracing/_decorator.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task.egg-info/dependency_links.txt +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task.egg-info/requires.txt +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/src/wt_task.egg-info/top_level.txt +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_decorator.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_exceptions.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_executors.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_map.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_mapvalues.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_partial.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_skip.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_testing.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_tracing.py +0 -0
- {wt_task-0.1.0 → wt_task-0.1.2}/tests/test_validation.py +0 -0
- {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.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Task decorator and execution features for wt ecosystem
|
|
5
5
|
Author: Ecoscope Workflows Team
|
|
6
|
-
License:
|
|
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 ::
|
|
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
|
-
|
|
200
|
+
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 = "
|
|
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 ::
|
|
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.
|
|
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.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 1,
|
|
31
|
+
__version__ = version = '0.1.2'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 1, 2)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
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
|
-
|
|
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
|
-
|
|
112
|
-
|
|
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
|
-
|
|
181
|
-
|
|
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
|
-
|
|
191
|
-
|
|
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.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Task decorator and execution features for wt ecosystem
|
|
5
5
|
Author: Ecoscope Workflows Team
|
|
6
|
-
License:
|
|
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 ::
|
|
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
|
-
|
|
200
|
+
BSD-3-Clause
|
|
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
|
|
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
|