dcicutils 8.16.4__tar.gz → 8.16.5__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {dcicutils-8.16.4 → dcicutils-8.16.5}/PKG-INFO +1 -1
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/scripts/publish_to_pypi.py +19 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/pyproject.toml +1 -1
- {dcicutils-8.16.4 → dcicutils-8.16.5}/LICENSE.txt +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/README.rst +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/__init__.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/base.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/beanstalk_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/bundle_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/captured_output.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/cloudformation_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/codebuild_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/command_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/common.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/contribution_scripts.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/contribution_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/creds_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/data_readers.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/data_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/datetime_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/deployment_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/diff_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/docker_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/ecr_scripts.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/ecr_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/ecs_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/env_base.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/env_manager.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/env_scripts.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/env_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/env_utils_legacy.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/es_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/exceptions.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/ff_mocks.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/ff_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/file_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/function_cache_decorator.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/glacier_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/hack_for_elasticsearch_numpy_usage.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/http_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/jh_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/kibana/dashboards.json +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/kibana/readme.md +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/lang_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/license_policies/c4-infrastructure.jsonc +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/license_policies/c4-python-infrastructure.jsonc +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/license_policies/park-lab-common-server.jsonc +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/license_policies/park-lab-common.jsonc +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/license_policies/park-lab-pipeline.jsonc +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/license_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/log_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/misc_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/obfuscation_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/opensearch_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/portal_object_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/portal_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/progress_bar.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/project_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/qa_checkers.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/qa_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/redis_tools.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/redis_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/s3_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/schema_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/scripts/run_license_checker.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/scripts/update_portal_object.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/scripts/view_portal_object.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/secrets_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/sheet_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/snapshot_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/ssl_certificate_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/structured_data.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/submitr/progress_constants.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/submitr/ref_lookup_strategy.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/task_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/tmpfile_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/trace_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/validation_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/variant_utils.py +0 -0
- {dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/zip_utils.py +0 -0
@@ -213,6 +213,25 @@ def verify_untracked_files() -> bool:
|
|
213
213
|
|
214
214
|
|
215
215
|
def verify_not_already_published(package_name: str, package_version: str) -> bool:
|
216
|
+
"""
|
217
|
+
If the given package and version has NOT already been published to PyPi then returns True,
|
218
|
+
otherwise prints an error message and returns False.
|
219
|
+
"""
|
220
|
+
url = f"{PYPI_BASE_URL}/pypi/{package_name}/json"
|
221
|
+
DEBUG_PRINT(f"curl {url}")
|
222
|
+
try:
|
223
|
+
response = requests.get(url).json()["releases"]
|
224
|
+
except Exception:
|
225
|
+
WARNING_PRINT(f"Cannot determine if this package ({package_name} {package_version})"
|
226
|
+
f" has already been published or not; ASSUMING NOT.")
|
227
|
+
return True
|
228
|
+
if response.get(package_version):
|
229
|
+
ERROR_PRINT(f"Package {package_name} {package_version} has already been published to PyPi.")
|
230
|
+
return False
|
231
|
+
return True
|
232
|
+
|
233
|
+
|
234
|
+
def verify_not_already_published_obsolete_no_longer_works_20250110(package_name: str, package_version: str) -> bool:
|
216
235
|
"""
|
217
236
|
If the given package and version has not already been published to PyPi then returns True,
|
218
237
|
otherwise prints an error message and returns False.
|
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
|
{dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/license_policies/c4-python-infrastructure.jsonc
RENAMED
File without changes
|
{dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/license_policies/park-lab-common-server.jsonc
RENAMED
File without changes
|
File without changes
|
{dcicutils-8.16.4 → dcicutils-8.16.5}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc
RENAMED
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
|