pytaskwarrior 2.0.0__tar.gz → 2.0.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.
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/PKG-INFO +2 -2
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/pyproject.toml +2 -2
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/pytaskwarrior.egg-info/PKG-INFO +2 -2
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/main.py +1 -1
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/services/uda_service.py +2 -1
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/LICENSE +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/PYPI_README.md +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/README.md +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/setup.cfg +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/__init__.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/pytaskwarrior.egg-info/SOURCES.txt +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/pytaskwarrior.egg-info/dependency_links.txt +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/pytaskwarrior.egg-info/requires.txt +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/pytaskwarrior.egg-info/top_level.txt +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/__init__.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/adapters/__init__.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/adapters/taskwarrior_adapter.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/config/config_store.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/config/uda_parser.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/dto/__init__.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/dto/annotation_dto.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/dto/context_dto.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/dto/task_dto.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/dto/uda_dto.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/enums.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/exceptions.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/py.typed +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/registry/__init__.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/registry/uda_registry.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/services/__init__.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/services/context_service.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/utils/__init__.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/utils/conversions.py +0 -0
- {pytaskwarrior-2.0.0 → pytaskwarrior-2.0.2}/src/taskwarrior/utils/dto_converter.py +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytaskwarrior
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Taskwarrior wrapper python module
|
|
5
5
|
Author-email: sznicolas <sznicolas@users.noreply.github.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://
|
|
7
|
+
Project-URL: Homepage, https://pytaskwarrior.readthedocs.io/en/latest/
|
|
8
8
|
Project-URL: Repository, https://github.com/sznicolas/pytaskwarrior/
|
|
9
9
|
Project-URL: Issues, https://github.com/sznicolas/pytaskwarrior/issues
|
|
10
10
|
Project-URL: Changelog, https://github.com/sznicolas/pytaskwarrior/blob/main/CHANGELOG.md
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pytaskwarrior"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.2"
|
|
4
4
|
description = "Taskwarrior wrapper python module"
|
|
5
5
|
readme = "PYPI_README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
@@ -37,7 +37,7 @@ docs = [
|
|
|
37
37
|
]
|
|
38
38
|
|
|
39
39
|
[project.urls]
|
|
40
|
-
Homepage = "https://
|
|
40
|
+
Homepage = "https://pytaskwarrior.readthedocs.io/en/latest/"
|
|
41
41
|
Repository = "https://github.com/sznicolas/pytaskwarrior/"
|
|
42
42
|
Issues = "https://github.com/sznicolas/pytaskwarrior/issues"
|
|
43
43
|
Changelog = "https://github.com/sznicolas/pytaskwarrior/blob/main/CHANGELOG.md"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytaskwarrior
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Taskwarrior wrapper python module
|
|
5
5
|
Author-email: sznicolas <sznicolas@users.noreply.github.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://
|
|
7
|
+
Project-URL: Homepage, https://pytaskwarrior.readthedocs.io/en/latest/
|
|
8
8
|
Project-URL: Repository, https://github.com/sznicolas/pytaskwarrior/
|
|
9
9
|
Project-URL: Issues, https://github.com/sznicolas/pytaskwarrior/issues
|
|
10
10
|
Project-URL: Changelog, https://github.com/sznicolas/pytaskwarrior/blob/main/CHANGELOG.md
|
|
@@ -322,7 +322,7 @@ class TaskWarrior:
|
|
|
322
322
|
"""
|
|
323
323
|
self.adapter.annotate_task(task_id_or_uuid, annotation)
|
|
324
324
|
|
|
325
|
-
def define_context(self, context) -> None:
|
|
325
|
+
def define_context(self, context: ContextDTO) -> None:
|
|
326
326
|
"""Define a new context from a ContextDTO.
|
|
327
327
|
|
|
328
328
|
The context argument must be a ContextDTO instance containing
|
|
@@ -69,7 +69,8 @@ class UdaService:
|
|
|
69
69
|
for field_name in field_names:
|
|
70
70
|
value = getattr(uda, field_name)
|
|
71
71
|
if value is not None and value != "":
|
|
72
|
-
|
|
72
|
+
value_str = ",".join(map(str, value)) if field_name == "values" else str(value)
|
|
73
|
+
commands.append(["config", f"uda.{uda.name}.{field_name}", value_str])
|
|
73
74
|
|
|
74
75
|
# Execute commands via adapter; if any fail, raise and do not modify registry
|
|
75
76
|
for cmd in commands:
|
|
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
|