Skip to content

Commit b78c8b1

Browse files
Copilotharupy
andauthored
Fix parse_dependencies regex to handle package extras (#20342)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
1 parent b1b64ef commit b78c8b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/extract_deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def parse_dependencies(content: str) -> list[str]:
8-
pattern = r"dependencies\s*=\s*(\[[\s\S]*?\])"
8+
pattern = r"dependencies\s*=\s*(\[[\s\S]*?\])\n"
99
match = re.search(pattern, content)
1010
if match is None:
1111
raise ValueError("Could not find dependencies in pyproject.toml")

0 commit comments

Comments
 (0)