Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error due to blank lines in exported requirements #320

Merged
merged 3 commits into from
Mar 15, 2021

Conversation

cjolowicz
Copy link
Owner

@cjolowicz cjolowicz commented Mar 15, 2021

When converting exported requirements to constraints format, blank lines were not accounted for, resulting in an error like below when invoking session.install. Blank lines are now ignored.

RuntimeError: line 2: '': Parse error at "''": Expected W:(abcd...)

This builds on @matteosantama's work in #319
Supercedes #319
Related to #314

cjolowicz and others added 3 commits March 15, 2021 21:32
Co-authored-by: Matteo Santamaria <matteosantama@gmail.com>
Co-authored-by: Matteo Santamaria <matteosantama@gmail.com>
@cjolowicz cjolowicz added the bug Something isn't working label Mar 15, 2021
@cjolowicz cjolowicz merged commit be7409c into main Mar 15, 2021
@cjolowicz cjolowicz deleted the ignore-blank-lines branch March 15, 2021 22:00
This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants