cpg-utils 5.7.0__tar.gz → 5.7.1__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.7.0 → cpg_utils-5.7.1}/PKG-INFO +1 -1
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/config.py +15 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils.egg-info/PKG-INFO +1 -1
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/setup.py +1 -1
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/LICENSE +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/README.md +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/__init__.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/cloud.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/cloudpath_hail_az.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/constants.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/cromwell.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/cromwell_model.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/dataproc.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/existence_checks.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/git.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/hail_batch.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/membership.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/metamist_registration.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/py.typed +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils/slack.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils.egg-info/SOURCES.txt +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils.egg-info/dependency_links.txt +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils.egg-info/requires.txt +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/cpg_utils.egg-info/top_level.txt +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/pyproject.toml +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/setup.cfg +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/test/__init__.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/test/test_config.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/test/test_cromwell.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/test/test_doctests.py +0 -0
- {cpg_utils-5.7.0 → cpg_utils-5.7.1}/test/test_get_google_identity_token.py +0 -0
|
@@ -570,3 +570,18 @@ def get_gcloud_set_project(gcp_project: str | None = None) -> str:
|
|
|
570
570
|
gcp_project = gcp_project or get_gcp_project()
|
|
571
571
|
command = ['gcloud', 'config', 'set', 'project', gcp_project]
|
|
572
572
|
return ' '.join([quote(c) for c in command])
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
def dataset_for_access_level(dataset_name: str) -> str:
|
|
576
|
+
"""
|
|
577
|
+
Checks access_level in config, modifying dataset with "-test" suffix if appropriate.
|
|
578
|
+
|
|
579
|
+
>>> dataset_for_access_level('dataset') # with access_level != 'test'
|
|
580
|
+
'dataset'
|
|
581
|
+
>>> dataset_for_access_level('dataset') # with access_level == 'test'
|
|
582
|
+
'dataset-test'
|
|
583
|
+
"""
|
|
584
|
+
access_level = config_retrieve(['workflow', 'access_level'], 'standard')
|
|
585
|
+
if access_level == 'test' and not dataset_name.endswith('-test'):
|
|
586
|
+
return f'{dataset_name}-test'
|
|
587
|
+
return dataset_name
|
|
@@ -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.7.
|
|
11
|
+
version='5.7.1',
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|