@@ -182,13 +182,13 @@ def _create(
182
182
f"Preparing manifest. Manifest in the environment: { conda_dep .get ('manifest' )} "
183
183
)
184
184
manifest = _fetch_manifest_template ()
185
- if not "name" in manifest :
185
+ if "name" not in manifest :
186
186
manifest ["manifest" ]["name" ] = name
187
187
manifest ["manifest" ]["slug" ] = slug
188
- if not "type" in conda_dep [ " manifest" ] :
189
- logger .info (f "Setting manifest to published" )
188
+ if "type" not in manifest :
189
+ logger .info ("Setting manifest to published" )
190
190
manifest ["manifest" ]["type" ] = "published"
191
- if not "version" in conda_dep [ " manifest" ] :
191
+ if "version" not in manifest :
192
192
manifest ["manifest" ]["version" ] = version
193
193
manifest ["manifest" ]["arch_type" ] = "GPU" if gpu else "CPU"
194
194
@@ -655,7 +655,7 @@ def _publish(
655
655
if is_in_notebook_session () or NO_CONTAINER :
656
656
# Set the CONDA_PUBLISH_TYPE environment variable so that the `type` attribute inside the manifest is not changed
657
657
publish_type = os .environ .get ("CONDA_PUBLISH_TYPE" )
658
- command = "python {pack_script} --conda-path {pack_folder_path}"
658
+ command = f "python { pack_script } --conda-path { pack_folder_path } "
659
659
if publish_type :
660
660
command = f"CONDA_PUBLISH_TYPE={ publish_type } { command } "
661
661
run_command (command , shell = True )
0 commit comments