@@ -194,7 +194,7 @@ def _create(
194
194
manifest ["manifest" ]["manifest_version" ] = "1.0"
195
195
196
196
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 ]})
198
198
199
199
if is_in_notebook_session () or NO_CONTAINER :
200
200
command = f"conda env create --prefix { pack_folder_path } --file { os .path .abspath (os .path .expanduser (env_file ))} "
@@ -671,14 +671,17 @@ def _publish(
671
671
str (manifest ["version" ]),
672
672
publish_slug ,
673
673
)
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"
682
685
with open (manifest_location , "w" ) as f :
683
686
yaml .safe_dump (env , f )
684
687
if pack_size > 100 :
0 commit comments