gazu 0.10.11__tar.gz → 0.10.12__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 (55) hide show
  1. {gazu-0.10.11 → gazu-0.10.12}/PKG-INFO +1 -1
  2. gazu-0.10.12/gazu/__version__.py +1 -0
  3. {gazu-0.10.11 → gazu-0.10.12}/gazu/task.py +35 -1
  4. {gazu-0.10.11 → gazu-0.10.12}/gazu.egg-info/PKG-INFO +1 -1
  5. {gazu-0.10.11 → gazu-0.10.12}/tests/test_task.py +30 -0
  6. gazu-0.10.11/gazu/__version__.py +0 -1
  7. {gazu-0.10.11 → gazu-0.10.12}/LICENSE +0 -0
  8. {gazu-0.10.11 → gazu-0.10.12}/README.rst +0 -0
  9. {gazu-0.10.11 → gazu-0.10.12}/gazu/__init__.py +0 -0
  10. {gazu-0.10.11 → gazu-0.10.12}/gazu/asset.py +0 -0
  11. {gazu-0.10.11 → gazu-0.10.12}/gazu/cache.py +0 -0
  12. {gazu-0.10.11 → gazu-0.10.12}/gazu/casting.py +0 -0
  13. {gazu-0.10.11 → gazu-0.10.12}/gazu/client.py +0 -0
  14. {gazu-0.10.11 → gazu-0.10.12}/gazu/concept.py +0 -0
  15. {gazu-0.10.11 → gazu-0.10.12}/gazu/context.py +0 -0
  16. {gazu-0.10.11 → gazu-0.10.12}/gazu/edit.py +0 -0
  17. {gazu-0.10.11 → gazu-0.10.12}/gazu/encoder.py +0 -0
  18. {gazu-0.10.11 → gazu-0.10.12}/gazu/entity.py +0 -0
  19. {gazu-0.10.11 → gazu-0.10.12}/gazu/events.py +0 -0
  20. {gazu-0.10.11 → gazu-0.10.12}/gazu/exception.py +0 -0
  21. {gazu-0.10.11 → gazu-0.10.12}/gazu/files.py +0 -0
  22. {gazu-0.10.11 → gazu-0.10.12}/gazu/helpers.py +0 -0
  23. {gazu-0.10.11 → gazu-0.10.12}/gazu/person.py +0 -0
  24. {gazu-0.10.11 → gazu-0.10.12}/gazu/playlist.py +0 -0
  25. {gazu-0.10.11 → gazu-0.10.12}/gazu/project.py +0 -0
  26. {gazu-0.10.11 → gazu-0.10.12}/gazu/scene.py +0 -0
  27. {gazu-0.10.11 → gazu-0.10.12}/gazu/shot.py +0 -0
  28. {gazu-0.10.11 → gazu-0.10.12}/gazu/sorting.py +0 -0
  29. {gazu-0.10.11 → gazu-0.10.12}/gazu/sync.py +0 -0
  30. {gazu-0.10.11 → gazu-0.10.12}/gazu/user.py +0 -0
  31. {gazu-0.10.11 → gazu-0.10.12}/gazu.egg-info/SOURCES.txt +0 -0
  32. {gazu-0.10.11 → gazu-0.10.12}/gazu.egg-info/dependency_links.txt +0 -0
  33. {gazu-0.10.11 → gazu-0.10.12}/gazu.egg-info/not-zip-safe +0 -0
  34. {gazu-0.10.11 → gazu-0.10.12}/gazu.egg-info/requires.txt +0 -0
  35. {gazu-0.10.11 → gazu-0.10.12}/gazu.egg-info/top_level.txt +0 -0
  36. {gazu-0.10.11 → gazu-0.10.12}/pyproject.toml +0 -0
  37. {gazu-0.10.11 → gazu-0.10.12}/setup.cfg +0 -0
  38. {gazu-0.10.11 → gazu-0.10.12}/setup.py +0 -0
  39. {gazu-0.10.11 → gazu-0.10.12}/tests/test_asset.py +0 -0
  40. {gazu-0.10.11 → gazu-0.10.12}/tests/test_cache.py +0 -0
  41. {gazu-0.10.11 → gazu-0.10.12}/tests/test_casting.py +0 -0
  42. {gazu-0.10.11 → gazu-0.10.12}/tests/test_client.py +0 -0
  43. {gazu-0.10.11 → gazu-0.10.12}/tests/test_concept.py +0 -0
  44. {gazu-0.10.11 → gazu-0.10.12}/tests/test_context.py +0 -0
  45. {gazu-0.10.11 → gazu-0.10.12}/tests/test_edit.py +0 -0
  46. {gazu-0.10.11 → gazu-0.10.12}/tests/test_entity.py +0 -0
  47. {gazu-0.10.11 → gazu-0.10.12}/tests/test_files.py +0 -0
  48. {gazu-0.10.11 → gazu-0.10.12}/tests/test_helpers.py +0 -0
  49. {gazu-0.10.11 → gazu-0.10.12}/tests/test_person.py +0 -0
  50. {gazu-0.10.11 → gazu-0.10.12}/tests/test_playlist.py +0 -0
  51. {gazu-0.10.11 → gazu-0.10.12}/tests/test_project.py +0 -0
  52. {gazu-0.10.11 → gazu-0.10.12}/tests/test_scene.py +0 -0
  53. {gazu-0.10.11 → gazu-0.10.12}/tests/test_shot.py +0 -0
  54. {gazu-0.10.11 → gazu-0.10.12}/tests/test_sync.py +0 -0
  55. {gazu-0.10.11 → gazu-0.10.12}/tests/test_user.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gazu
3
- Version: 0.10.11
3
+ Version: 0.10.12
4
4
  Summary: Gazu is a client for Zou, the API to store the data of your CG production.
5
5
  Home-page: https://gazu.cg-wire.com/
6
6
  Author: CG Wire
@@ -0,0 +1 @@
1
+ __version__ = "0.10.12"
@@ -582,6 +582,40 @@ def remove_task_status(task_status, client=default):
582
582
  )
583
583
 
584
584
 
585
+ def update_task_type(task_type, client=default):
586
+ """
587
+ Update given task type into the API.
588
+
589
+ Args:
590
+ task_type (dict): The task type dict to update.
591
+
592
+ Returns:
593
+ dict: Updated task type.
594
+ """
595
+ return raw.put(
596
+ "data/task-types/%s" % task_type["id"],
597
+ task_type,
598
+ client=client,
599
+ )
600
+
601
+
602
+ def update_task_status(task_status, client=default):
603
+ """
604
+ Update given task status into the API.
605
+
606
+ Args:
607
+ task_status (dict): The task status dict to update.
608
+
609
+ Returns:
610
+ dict: Updated task status.
611
+ """
612
+ return raw.put(
613
+ "data/task-status/%s" % task_status["id"],
614
+ task_status,
615
+ client=client,
616
+ )
617
+
618
+
585
619
  @cache
586
620
  def get_task(task_id, client=default):
587
621
  """
@@ -1166,7 +1200,7 @@ def new_task_status(name, short_name, color, client=default):
1166
1200
 
1167
1201
  def update_task(task, client=default):
1168
1202
  """
1169
- Save given task data into the API. Metadata are fully replaced by the ones
1203
+ Update given task into the API. Metadata are fully replaced by the ones
1170
1204
  set on given task.
1171
1205
 
1172
1206
  Args:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gazu
3
- Version: 0.10.11
3
+ Version: 0.10.12
4
4
  Summary: Gazu is a client for Zou, the API to store the data of your CG production.
5
5
  Home-page: https://gazu.cg-wire.com/
6
6
  Author: CG Wire
@@ -846,6 +846,36 @@ class TaskTestCase(unittest.TestCase):
846
846
  )
847
847
  self.assertEqual(gazu.task.update_task(task), task)
848
848
 
849
+ def test_update_task_status(self):
850
+ with requests_mock.mock() as mock:
851
+ task_status = {
852
+ "id": fakeid("task-status-1"),
853
+ "archived": True,
854
+ }
855
+ mock_route(
856
+ mock,
857
+ "PUT",
858
+ "data/task-status/%s" % fakeid("task-status-1"),
859
+ text=task_status,
860
+ )
861
+ self.assertEqual(
862
+ gazu.task.update_task_status(task_status), task_status
863
+ )
864
+
865
+ def test_update_task_type(self):
866
+ with requests_mock.mock() as mock:
867
+ task_type = {
868
+ "id": fakeid("task-type-1"),
869
+ "archived": True,
870
+ }
871
+ mock_route(
872
+ mock,
873
+ "PUT",
874
+ "data/task-types/%s" % fakeid("task-type-1"),
875
+ text=task_type,
876
+ )
877
+ self.assertEqual(gazu.task.update_task_type(task_type), task_type)
878
+
849
879
  def test_update_task_data(self):
850
880
  with requests_mock.mock() as mock:
851
881
  mock.get(
@@ -1 +0,0 @@
1
- __version__ = "0.10.11"
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
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