Permalink
Browse files

PEP508 markers in requirements.txt have been broken since dfabe89 (#1464

  • Loading branch information...
fyfe authored and kryskool committed Apr 12, 2018
1 parent 3b4cf12 commit f604aacb61b0b1383bcb5c10943ae2a15f46f93e
Showing with 4 additions and 6 deletions.
  1. +4 −6 setup.py
@@ -27,12 +27,10 @@ def get_requirements(requirements_file):
requirements = []
if path.isfile(requirements_file):
for req in parse_requirements(requirements_file, session="hack"):
# check markers, such as
#
# rope_py3k ; python_version >= '3.0'
#
if req.match_markers():
requirements.append(str(req.req))
if req.markers:
requirements.append("%s;%s" % (req.req, req.markers))
else:
requirements.append("%s" % req.req)
return requirements

0 comments on commit f604aac

Please sign in to comment.