@@ -176,11 +176,13 @@ def _create(
176
176
177
177
os .makedirs (pack_folder_path , exist_ok = True )
178
178
179
+ logger .info (f"Preparing manifest. Manifest in the environment: { conda_dep .get ('manifest' )} " )
179
180
manifest = _fetch_manifest_template ()
180
181
if not "name" in conda_dep ["manifest" ]:
181
182
manifest ["manifest" ]["name" ] = name
182
183
manifest ["manifest" ]["slug" ] = slug
183
184
if not "type" in conda_dep ["manifest" ]:
185
+ logger .info (f"Setting manifest to published" )
184
186
manifest ["manifest" ]["type" ] = "published"
185
187
if not "version" in conda_dep ["manifest" ]:
186
188
manifest ["manifest" ]["version" ] = version
@@ -195,6 +197,7 @@ def _create(
195
197
196
198
logger .info (f"Creating conda environment { slug } " )
197
199
conda_dep ["manifest" ].update ({k : manifest ["manifest" ][k ] for k in manifest ["manifest" ] if manifest ["manifest" ][k ]})
200
+ logger .info (f"Updated conda environment manifest: { conda_dep .get ('manifest' )} " )
198
201
199
202
if is_in_notebook_session () or NO_CONTAINER :
200
203
command = f"conda env create --prefix { pack_folder_path } --file { os .path .abspath (os .path .expanduser (env_file ))} "
@@ -681,6 +684,8 @@ def _publish(
681
684
publish_slug ,
682
685
)
683
686
manifest ["pack_uri" ] = pack_uri
687
+ else :
688
+ manifest ["type" ] = "published"
684
689
685
690
with open (manifest_location , "w" ) as f :
686
691
yaml .safe_dump (env , f )
0 commit comments