From a5f6e9d836f3da3fd16a65e83762a6d07bae4cfc Mon Sep 17 00:00:00 2001 From: John Carter Date: Sun, 10 Dec 2017 13:09:09 +1300 Subject: [PATCH] missing support for ~= in check? also fixed comment typo --- pipenv/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipenv/utils.py b/pipenv/utils.py index f433287b..6f234601 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -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