cpg-utils 5.4.2__tar.gz → 5.4.3__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 (28) hide show
  1. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/PKG-INFO +1 -1
  2. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/slack.py +10 -3
  3. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils.egg-info/PKG-INFO +1 -1
  4. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/setup.py +1 -1
  5. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/LICENSE +0 -0
  6. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/README.md +0 -0
  7. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/__init__.py +0 -0
  8. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/cloud.py +0 -0
  9. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/cloudpath_hail_az.py +0 -0
  10. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/config.py +0 -0
  11. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/constants.py +0 -0
  12. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/cromwell.py +0 -0
  13. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/cromwell_model.py +0 -0
  14. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/dataproc.py +0 -0
  15. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/git.py +0 -0
  16. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/hail_batch.py +0 -0
  17. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/membership.py +0 -0
  18. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/py.typed +0 -0
  19. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils.egg-info/SOURCES.txt +0 -0
  20. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils.egg-info/dependency_links.txt +0 -0
  21. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils.egg-info/requires.txt +0 -0
  22. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils.egg-info/top_level.txt +0 -0
  23. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/pyproject.toml +0 -0
  24. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/setup.cfg +0 -0
  25. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/test/__init__.py +0 -0
  26. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/test/test_config.py +0 -0
  27. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/test/test_cromwell.py +0 -0
  28. {cpg_utils-5.4.2 → cpg_utils-5.4.3}/test/test_doctests.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cpg-utils
3
- Version: 5.4.2
3
+ Version: 5.4.3
4
4
  Summary: Library of convenience functions specific to the CPG
5
5
  Home-page: https://github.com/populationgenomics/cpg-utils
6
6
  License: MIT
@@ -66,14 +66,21 @@ def send_message(text: str) -> None:
66
66
  logging.error(f'Error posting to Slack: {err}')
67
67
 
68
68
 
69
- def upload_file(content: bytes, comment: str) -> None:
69
+ def upload_file(
70
+ content: bytes,
71
+ comment: str,
72
+ title: str | None = None,
73
+ filename: str | None = None,
74
+ ) -> None:
70
75
  """Uploads `content` to Slack with the given text `comment`, reading credentials from the config."""
71
76
  slack_client = _get_slack_sdk().WebClient(token=_get_token())
72
77
  try:
73
- slack_client.files_upload(
74
- channels=_get_channel(),
78
+ slack_client.files_upload_v2(
79
+ channel=_get_channel(),
75
80
  content=content,
76
81
  initial_comment=comment,
82
+ title=title,
83
+ filename=filename,
77
84
  )
78
85
  except _get_slack_sdk().errors.SlackApiError as err:
79
86
  logging.error(f'Error posting to Slack: {err}')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cpg-utils
3
- Version: 5.4.2
3
+ Version: 5.4.3
4
4
  Summary: Library of convenience functions specific to the CPG
5
5
  Home-page: https://github.com/populationgenomics/cpg-utils
6
6
  License: MIT
@@ -8,7 +8,7 @@ with open('README.md') as f:
8
8
  setup(
9
9
  name='cpg-utils',
10
10
  # This tag is automatically updated by bumpversion
11
- version='5.4.2',
11
+ version='5.4.3',
12
12
  description='Library of convenience functions specific to the CPG',
13
13
  long_description=long_description,
14
14
  long_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
File without changes
File without changes