Skip to content

Commit

Permalink
Add support for local version specs in PYPI installed packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwardrop committed Jul 30, 2019
1 parent 553637b commit bc7b4e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conda/common/pkg_formats/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
\s?
(\[(?P<extras>.*)\])?
\s?
(?P<constraints>\(? \s? ([\w\d<>=!~,\s\.\*-]*) \s? \)? )?
(?P<constraints>\(? \s? ([\w\d<>=!~,\s\.\*+-]*) \s? \)? )?
\s?
''', re.VERBOSE | re.IGNORECASE)
PY_FILE_RE = re.compile(r'^[^\t\n\r\f\v]+/site-packages/[^\t\n\r\f\v]+\.py$')
Expand Down
2 changes: 2 additions & 0 deletions tests/common/pkg_formats/test_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ def test_parse_specification():
PySpec('', [], '>=2.7,!=3.0.*,!=3.1.*,!=3.2.*', '', ''),
'name>=1.0.0-beta.1,<2.0.0':
PySpec('name', [], '>=1.0.0.beta.1,<2.0.0', '', ''),
'name==1.0.0+localhash':
PySpec('name', [], '==1.0.0+localhash', '', ''),
}
for req, expected_req in test_reqs.items():
parsed_req = parse_specification(req)
Expand Down

0 comments on commit bc7b4e1

Please sign in to comment.