Commit 2a6a96a
committed
Fix #100: strip lines before parsing with Requirement()
packaging 26.3 made requirement parsing strict: a trailing newline now
raises InvalidRequirement. process_line() parsed the raw line straight
from file iteration, the error was silently swallowed, and source
packages stayed pinned in the generated constraints.
Parse the stripped line instead, and log unparseable lines at debug
level so parser-behavior changes surface under -v instead of silently
producing downstream resolver errors.1 parent 6af9854 commit 2a6a96a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
0 commit comments