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.
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/PKG-INFO +1 -1
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/slack.py +10 -3
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils.egg-info/PKG-INFO +1 -1
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/setup.py +1 -1
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/LICENSE +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/README.md +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/__init__.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/cloud.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/cloudpath_hail_az.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/config.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/constants.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/cromwell.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/cromwell_model.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/dataproc.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/git.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/hail_batch.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/membership.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils/py.typed +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils.egg-info/SOURCES.txt +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils.egg-info/dependency_links.txt +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils.egg-info/requires.txt +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/cpg_utils.egg-info/top_level.txt +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/pyproject.toml +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/setup.cfg +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/test/__init__.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/test/test_config.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/test/test_cromwell.py +0 -0
- {cpg_utils-5.4.2 → cpg_utils-5.4.3}/test/test_doctests.py +0 -0
|
@@ -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(
|
|
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.
|
|
74
|
-
|
|
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}')
|
|
@@ -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.
|
|
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
|
|
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
|