python-sdk-remote 0.0.228b4608__tar.gz → 0.0.229b4640__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.
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/PKG-INFO +1 -1
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/pyproject.toml +1 -1
- python_sdk_remote-0.0.229b4640/python_sdk_remote/src/mandatory_environment_variables.py +18 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote.egg-info/SOURCES.txt +1 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/setup.py +1 -1
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/README.md +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/constants.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/constants_src_mini_logger_and_logger.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/datetime_range.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/dot_env_files.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/environment.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/environment_variable_exception.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/filename.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/filesystem.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/generic_crud.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/http_response.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/is_test_data.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/masking.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/mini_logger.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/our_environment_variable.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/our_environment_variable_exception.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/our_obfuscation.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/our_objects.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/our_objects_local.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/our_objects_remote.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/our_request.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/our_request_old.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/personal_repo.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/username.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/utilities.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/version.py +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/setup.cfg +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "python-sdk-local"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.229b4640" # https://pypi.org/project/python-sdk-local
|
|
8
8
|
description = "python-sdk-local Python Package"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Checks that a repo's mandatory variables and secrets are set, e.g. in the first step of a workflow job."""
|
|
2
|
+
from collections.abc import Iterable
|
|
3
|
+
|
|
4
|
+
from .our_environment_variable import our_get_env
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def get_missing_environment_variables(mandatory_environment_variables: Iterable[str]) -> list[str]:
|
|
8
|
+
"""Returns the mandatory variables and secrets which are missing or empty in the environment"""
|
|
9
|
+
missing_environment_variables = [name for name in mandatory_environment_variables
|
|
10
|
+
if not our_get_env(name, default="", raise_if_not_found=False)]
|
|
11
|
+
return missing_environment_variables
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def check_mandatory_environment_variables(mandatory_environment_variables: Iterable[str]) -> None:
|
|
15
|
+
"""Stops the program (SystemExit) with the names of all the missing or empty variables and secrets"""
|
|
16
|
+
missing_environment_variables = get_missing_environment_variables(mandatory_environment_variables)
|
|
17
|
+
if missing_environment_variables:
|
|
18
|
+
raise SystemExit(f"Missing mandatory variables or secrets: {', '.join(missing_environment_variables)}")
|
|
@@ -19,6 +19,7 @@ python_sdk_remote/src/generic_crud.py
|
|
|
19
19
|
python_sdk_remote/src/http_response.py
|
|
20
20
|
python_sdk_remote/src/is_test_data.py
|
|
21
21
|
python_sdk_remote/src/item.py
|
|
22
|
+
python_sdk_remote/src/mandatory_environment_variables.py
|
|
22
23
|
python_sdk_remote/src/masking.py
|
|
23
24
|
python_sdk_remote/src/mini_logger.py
|
|
24
25
|
python_sdk_remote/src/our_environment_variable.py
|
|
@@ -8,7 +8,7 @@ package_dir = PACKAGE_NAME.replace("-", "_")
|
|
|
8
8
|
setuptools.setup(
|
|
9
9
|
license='MIT',
|
|
10
10
|
name=PACKAGE_NAME,
|
|
11
|
-
version="0.0.
|
|
11
|
+
version="0.0.229b4640", # https://pypi.org/project/python-sdk-remote#history
|
|
12
12
|
author="Circles",
|
|
13
13
|
author_email="info@circlez.ai",
|
|
14
14
|
description="PyPI Package for Circles Python SDK Local Python",
|
|
File without changes
|
{python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/__init__.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/filename.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/item.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/masking.py
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
|
{python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/username.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/utilities.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.228b4608 → python_sdk_remote-0.0.229b4640}/python_sdk_remote/src/version.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|