@@ -194,7 +194,7 @@ def _create(
194194 manifest ["manifest" ]["manifest_version" ] = "1.0"
195195
196196 logger .info (f"Creating conda environment { slug } " )
197- conda_dep ["manifest" ] = manifest ["manifest" ]
197+ conda_dep ["manifest" ]. update ({ k : manifest [ "manifest" ][ k ] for k in manifest ["manifest" ] if manifest [ "manifest" ][ k ]})
198198
199199 if is_in_notebook_session () or NO_CONTAINER :
200200 command = f"conda env create --prefix { pack_folder_path } --file { os .path .abspath (os .path .expanduser (env_file ))} "
@@ -671,14 +671,17 @@ def _publish(
671671 str (manifest ["version" ]),
672672 publish_slug ,
673673 )
674- manifest ["pack_path" ] = os .path .join (
675- prefix ,
676- manifest .get ("arch_type" , "CPU" ).lower (),
677- manifest ["name" ],
678- str (manifest ["version" ]),
679- publish_slug ,
680- )
681- manifest ["pack_uri" ] = pack_uri
674+ if os .environ .get ("CONDA_PUBLISH_TYPE" ) != "service" :
675+ # Set these values only for
676+ manifest ["pack_path" ] = os .path .join (
677+ prefix ,
678+ manifest .get ("arch_type" , "CPU" ).lower (),
679+ manifest ["name" ],
680+ str (manifest ["version" ]),
681+ publish_slug ,
682+ )
683+ manifest ["pack_uri" ] = pack_uri
684+ manifest ["type" ] = "published"
682685 with open (manifest_location , "w" ) as f :
683686 yaml .safe_dump (env , f )
684687 if pack_size > 100 :
0 commit comments