Skip to content

Commit

Permalink
Merge pull request #1186 from therefromhere/path_spec
Browse files Browse the repository at this point in the history
missing support for ~= in check? - see comment in #1183
  • Loading branch information
kennethreitz committed Dec 18, 2017
2 parents 58e5fee + a5f6e9d commit 376896f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipenv/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,8 @@ def is_installable_file(path):
if not isinstance(path, six.string_types) or path == '*':
return False
# If the string starts with a valid specifier operator, test if it is a valid
# specifier set before making a path object (to avoid breakng windows)
if any(path.startswith(spec) for spec in '!=<>'):
# specifier set before making a path object (to avoid breaking windows)
if any(path.startswith(spec) for spec in '!=<>~'):
try:
pip.utils.packaging.specifiers.SpecifierSet(path)
# If this is not a valid specifier, just move on and try it as a path
Expand Down

0 comments on commit 376896f

Please sign in to comment.