Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/mlops_codex/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def __upload_script(
token: str,
) -> None:
"""
Upload python script to MLOps.
Upload a python script to MLOps.
Comment thread
64J0 marked this conversation as resolved.

Parameters
----------
Expand Down Expand Up @@ -430,6 +430,7 @@ def create(
schema_files_path: Optional[
Union[Tuple[str, str], List[Tuple[str, str]]]
] = None,
env_file: Optional[str] = None,
Comment thread
64J0 marked this conversation as resolved.
schema_datasets: Optional[Union[str, List[str]]] = None,
extra_files: Union[Tuple[str, str], List[Tuple[str, str]]] = None,
wait_read: bool = False,
Expand Down Expand Up @@ -556,6 +557,18 @@ def create(
)
logger.info("Requirements file uploaded")

if env_file:
make_request(
url=f"{self.base_url}/v2/preprocessing/{preprocessing_script_hash}/env-file",
method='PATCH',
success_code=201,
files={'env': open(env_file, 'rb')},
headers={
"Authorization": f"Bearer {token}",
},
)
Comment thread
64J0 marked this conversation as resolved.
logger.info("Environment file uploaded")

logger.info("Hosting preprocessing script")

if extra_files is not None:
Expand Down Expand Up @@ -2417,6 +2430,7 @@ def create(
requirements_path=requirements_file,
python_version=python_version,
schema_files_path=schema,
env_file=env,
extra_files=extra_files,
wait_read=wait_complete,
)
Expand Down
2 changes: 1 addition & 1 deletion src/mlops_codex/shared/constants.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CODEX_VERSION = "2.2.10"
CODEX_VERSION = "2.2.11"