triggerflow 0.1.7__tar.gz → 0.1.8__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: triggerflow
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: Utilities for ML models targeting hardware triggers
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "triggerflow"
7
- version = "0.1.7"
7
+ version = "0.1.8"
8
8
  description = "Utilities for ML models targeting hardware triggers"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -15,7 +15,8 @@ def setup_mlflow(mlflow_uri: str = None,
15
15
  run_name: str = None,
16
16
  experiment_id: str = None,
17
17
  run_id: str = None,
18
- save_env_file=True
18
+ save_env_file: bool = True,
19
+ auto_configure: bool = False
19
20
  ):
20
21
 
21
22
  # Set the MLflow tracking URI
@@ -110,13 +111,17 @@ def setup_mlflow(mlflow_uri: str = None,
110
111
  f.write(f"MLFLOW_EXPERIMENT_ID={experiment_id}\n")
111
112
  f.write(f"MLFLOW_RUN_ID={run_id}\n")
112
113
 
114
+ if auto_configure:
115
+ print("Auto_configure is set to true. Exporting AUTO_CONFIGURE=true")
116
+ f.write(f"AUTO_CONFIGURE=true\n")
117
+
113
118
  return experiment_name, run_name, experiment_id, run_id
114
119
 
115
- if os.getenv("MLFLOW_TRACKING_PASSWORD") is not None and os.getenv("MLFLOW_TRACKING_USERNAME") is not None and os.getenv('CI') == 'true':
116
- print("Setup mlflow run")
120
+ if os.getenv("AUTO_CONFIGURE") == "true":
121
+ print("AUTO_CONFIGURE is true and running in CI environment. Setting up mlflow...")
117
122
  setup_mlflow()
118
123
  else:
119
- print("MLFLOW_TRACKING_PASSWORD and MLFLOW_TRACKING_USERNAME not set. Skipping mlflow run setup")
124
+ print("AUTO_CONFIGURE is not set. Skipping mlflow run setup")
120
125
 
121
126
  class MLflowWrapper(mlflow.pyfunc.PythonModel):
122
127
  """PyFunc wrapper for TriggerModel; backend can be set at runtime."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: triggerflow
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: Utilities for ML models targeting hardware triggers
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: MIT License
File without changes
File without changes
File without changes