Commit 1623bb0
HalaAli198
Fix: Parse unquoted dependencies in setup.py with .split() pattern
- Fixed bug where file was read twice, causing second regex to fail
- Added support for multiline string dependencies using .split()
- Stores file content in variable and reuses it for both patterns
- Maintains backward compatibility with list-style dependencies
- Filters out empty lines and comments from multiline strings
- Handles both triple double-quotes and triple single-quotes
Tested with mayan-edms==4.9.2 which uses this pattern.
Before fix: 0 dependencies detected
After fix: 56 dependencies correctly parsed1 parent 2ec02e5 commit 1623bb0
1 file changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
| 692 | + | |
692 | 693 | | |
693 | | - | |
| 694 | + | |
694 | 695 | | |
695 | 696 | | |
696 | 697 | | |
| |||
699 | 700 | | |
700 | 701 | | |
701 | 702 | | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
702 | 720 | | |
703 | 721 | | |
704 | 722 | | |
| |||
0 commit comments