Skip to content

Commit

Permalink
Fix marker formatting
Browse files Browse the repository at this point in the history
- Fixes #173

Signed-off-by: Dan Ryan <dan@danryan.co>
  • Loading branch information
techalchemy committed Jun 27, 2019
1 parent 43c12db commit 59cec77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/173.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed quoting of markers when formatting requirements as pip-compatible lines.
1 change: 1 addition & 0 deletions src/requirementslib/models/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,7 @@ def line_is_installable(self):
def parse(self):
# type: () -> None
self.line, self.markers = split_markers_from_line(self.parse_hashes().line)
self.markers = self.markers.replace('"', "'")
self.parse_extras()
self.line = self.line.strip('"').strip("'").strip()
if self.line.startswith("git+file:/") and not self.line.startswith(
Expand Down

0 comments on commit 59cec77

Please sign in to comment.