Skip to content

Commit

Permalink
Only use --all-extras if optional-deps isn't empty
Browse files Browse the repository at this point in the history
  • Loading branch information
TheByronHimes committed Sep 14, 2023
1 parent 798afbb commit e934f4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/update_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ def main():

modified_pyproject = remove_self_dependencies(pyproject)

extras = "optional-dependencies" in modified_pyproject["project"]
extras = (
"optional-dependencies" in modified_pyproject["project"]
and modified_pyproject["project"]["optional-dependencies"]
)

with TemporaryDirectory() as temp_dir:
os.chdir(temp_dir)
Expand Down

0 comments on commit e934f4f

Please sign in to comment.