Skip to content

Commit

Permalink
add default False to pypi decorator "disabled" (#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikonen committed Nov 3, 2023
1 parent 79b6908 commit 190b504
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions metaflow/plugins/pypi/pypi_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def step_init(self, flow, graph, step, decos, environment, flow_datastore, logge
else super_attributes["disabled"]
)

# Set default for `disabled` argument.
if not self.attributes["disabled"]:
self.attributes["disabled"] = False

# At the moment, @pypi uses a conda environment as a virtual environment. This
# is to ensure that we can have a dedicated Python interpreter within the
# virtual environment. The conda environment is currently created through
Expand Down

0 comments on commit 190b504

Please sign in to comment.