ob-metaflow-extensions 1.1.123rc1__py2.py3-none-any.whl → 1.1.123rc2__py2.py3-none-any.whl

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.

Potentially problematic release.


This version of ob-metaflow-extensions might be problematic. Click here for more details.

@@ -93,6 +93,17 @@ class WorkstationAppDeployDecorator(StepDecorator):
93
93
  ):
94
94
  deploy_dir = self._deploy_dir
95
95
 
96
+ # By default we assume that the user has a __main__.py file in their app directory.
97
+ # They can always override this behavior.
98
+ user_provided_entrypoint = getattr(flow, "entrypoint", None)
99
+
100
+ if user_provided_entrypoint is not None and not isinstance(
101
+ user_provided_entrypoint, str
102
+ ):
103
+ raise MetaflowException(
104
+ f"@app_deploy requires entrypoint to be set to a string. The current value of entrypoint {user_provided_entrypoint} is not valid."
105
+ )
106
+
96
107
  flow_directory = os.path.dirname(os.path.abspath(sys.argv[0]))
97
108
 
98
109
  # By default, we assume that the layout of the flow directory is:
@@ -103,11 +114,13 @@ class WorkstationAppDeployDecorator(StepDecorator):
103
114
  # - other_files
104
115
  # - other_dirs/
105
116
  # This can be overridden by the user by setting the app_dir attribute.
117
+ # None of this matters if the user provides a custom entrypoint, since in that case we don't copy
118
+ # anything anywhere.
106
119
  app_location = getattr(
107
120
  flow, "app_dir", os.path.join(flow_directory, self.attributes["app_name"])
108
121
  )
109
122
 
110
- if not os.path.exists(app_location):
123
+ if user_provided_entrypoint is None and not os.path.exists(app_location):
111
124
  raise MetaflowException(f"App directory {app_location} does not exist.")
112
125
 
113
126
  wait_time_for_app_start = getattr(
@@ -116,17 +129,6 @@ class WorkstationAppDeployDecorator(StepDecorator):
116
129
  DEFAULT_WAIT_TIME_SECONDS_FOR_PROCESS_TO_START,
117
130
  )
118
131
 
119
- # By default we assume that the user has a __main__.py file in their app directory.
120
- # They can always override this behavior.
121
- user_provided_entrypoint = getattr(flow, "entrypoint", None)
122
-
123
- if user_provided_entrypoint is not None and not isinstance(
124
- user_provided_entrypoint, str
125
- ):
126
- raise MetaflowException(
127
- f"@app_deploy requires entrypoint to be set to a string. The current value of entrypoint {user_provided_entrypoint} is not valid."
128
- )
129
-
130
132
  try:
131
133
  supervisor_client = SupervisorClient(
132
134
  wait_time_seconds_for_app_start=wait_time_for_app_start
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ob-metaflow-extensions
3
- Version: 1.1.123rc1
3
+ Version: 1.1.123rc2
4
4
  Summary: Outerbounds Platform Extensions for Metaflow
5
5
  Author: Outerbounds, Inc.
6
6
  License: Commercial
@@ -6,7 +6,7 @@ metaflow_extensions/outerbounds/plugins/auth_server.py,sha256=_Q9_2EL0Xy77bCRphk
6
6
  metaflow_extensions/outerbounds/plugins/perimeters.py,sha256=QXh3SFP7GQbS-RAIxUOPbhPzQ7KDFVxZkTdKqFKgXjI,2697
7
7
  metaflow_extensions/outerbounds/plugins/apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  metaflow_extensions/outerbounds/plugins/apps/app_utils.py,sha256=JrVKlbRx8-nSmI4cRrB7F8BQGDHleABIYZudK4P-XFE,7905
9
- metaflow_extensions/outerbounds/plugins/apps/deploy_decorator.py,sha256=4-42GwYdOGQahWo4qdersfnT-WcO5U9JVtO9kovKlQA,5686
9
+ metaflow_extensions/outerbounds/plugins/apps/deploy_decorator.py,sha256=oHCkcXHYIoCi9LujhBsJsktZM44Zkf4d_g4RHLsiW18,5858
10
10
  metaflow_extensions/outerbounds/plugins/apps/supervisord_utils.py,sha256=QDM7s-iVKnnmE7fM8K-nFoLojQvL_cT8hUj1LF1JOBs,8372
11
11
  metaflow_extensions/outerbounds/plugins/fast_bakery/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  metaflow_extensions/outerbounds/plugins/fast_bakery/docker_environment.py,sha256=i6F3FXwvEhkmUCTHDJ4VmSoL6vKyQhC_YRCtY6F4EkA,14209
@@ -48,7 +48,7 @@ metaflow_extensions/outerbounds/toplevel/plugins/azure/__init__.py,sha256=WUuhz2
48
48
  metaflow_extensions/outerbounds/toplevel/plugins/gcp/__init__.py,sha256=BbZiaH3uILlEZ6ntBLKeNyqn3If8nIXZFq_Apd7Dhco,70
49
49
  metaflow_extensions/outerbounds/toplevel/plugins/kubernetes/__init__.py,sha256=5zG8gShSj8m7rgF4xgWBZFuY3GDP5n1T0ktjRpGJLHA,69
50
50
  metaflow_extensions/outerbounds/toplevel/plugins/snowflake/__init__.py,sha256=LptpH-ziXHrednMYUjIaosS1SXD3sOtF_9_eRqd8SJw,50
51
- ob_metaflow_extensions-1.1.123rc1.dist-info/METADATA,sha256=xjw9rSyiPjv7obcoDP91AKMcw2B8dgqBAYD68rrkeuI,523
52
- ob_metaflow_extensions-1.1.123rc1.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
53
- ob_metaflow_extensions-1.1.123rc1.dist-info/top_level.txt,sha256=NwG0ukwjygtanDETyp_BUdtYtqIA_lOjzFFh1TsnxvI,20
54
- ob_metaflow_extensions-1.1.123rc1.dist-info/RECORD,,
51
+ ob_metaflow_extensions-1.1.123rc2.dist-info/METADATA,sha256=JYsmhOhSHRHULTOGp9b7wA3UE-KKMg6b4x-9BMcfHGc,523
52
+ ob_metaflow_extensions-1.1.123rc2.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
53
+ ob_metaflow_extensions-1.1.123rc2.dist-info/top_level.txt,sha256=NwG0ukwjygtanDETyp_BUdtYtqIA_lOjzFFh1TsnxvI,20
54
+ ob_metaflow_extensions-1.1.123rc2.dist-info/RECORD,,