packflow 0.4.1__tar.gz → 0.4.2__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.
- {packflow-0.4.1 → packflow-0.4.2}/PKG-INFO +1 -1
- {packflow-0.4.1 → packflow-0.4.2}/pyproject.toml +1 -1
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/loaders/config.py +10 -7
- {packflow-0.4.1 → packflow-0.4.2}/LICENSE +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/README.md +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/__init__.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/_frames.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/_splash.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/backend/__init__.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/backend/base.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/backend/configuration.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/backend/metrics.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/backend/preprocessors.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/backend/validation.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/cli.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/constants.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/data/templates/minimal/LICENSE.txt +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/data/templates/minimal/MODEL_CARD.md +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/data/templates/minimal/README.md +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/data/templates/minimal/inference.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/data/templates/minimal/packflow.yaml +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/data/templates/minimal/requirements.txt +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/data/templates/minimal/tests.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/exceptions.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/loaders/__init__.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/loaders/base.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/loaders/local.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/loaders/module.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/loaders/utils.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/logger.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/project.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/utils/__init__.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/utils/data.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/utils/normalize/__init__.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/utils/normalize/base.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/utils/normalize/handlers.py +0 -0
- {packflow-0.4.1 → packflow-0.4.2}/src/packflow/utils/normalize/normalize.py +0 -0
|
@@ -112,7 +112,8 @@ def apply_env_vars(config: "PackflowConfig") -> None:
|
|
|
112
112
|
"""
|
|
113
113
|
Apply environment variables from the packflow.yaml env section.
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
Existing environment variables take precedence; packflow.yaml values serve
|
|
116
|
+
as defaults when a key is not already defined in the environment.
|
|
116
117
|
"""
|
|
117
118
|
from packflow.logger import get_logger
|
|
118
119
|
|
|
@@ -120,12 +121,14 @@ def apply_env_vars(config: "PackflowConfig") -> None:
|
|
|
120
121
|
|
|
121
122
|
for key, value in config.env.items():
|
|
122
123
|
existing = os.environ.get(key)
|
|
123
|
-
if existing is not None
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
if existing is not None:
|
|
125
|
+
if existing != value:
|
|
126
|
+
logger.debug(
|
|
127
|
+
f"Preserving existing environment variable '{key}' "
|
|
128
|
+
f"(current: '{existing}', packflow.yaml default: '{value}')"
|
|
129
|
+
)
|
|
130
|
+
else:
|
|
131
|
+
os.environ[key] = str(value)
|
|
129
132
|
|
|
130
133
|
|
|
131
134
|
def validate_for_export(
|
|
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
|