mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 06:46:15 +00:00
@@ -769,7 +769,13 @@ class Environment:
|
||||
None,
|
||||
)
|
||||
if match is not None:
|
||||
if req.editable and req.link and req.link.is_file:
|
||||
if req.specifier is not None:
|
||||
return SpecifierSet(str(req.specifier)).contains(
|
||||
match.version, prereleases=True
|
||||
)
|
||||
if req.link is None:
|
||||
return True
|
||||
elif req.editable and req.link.is_file:
|
||||
requested_path = req.link.file_path
|
||||
if os.path.exists(requested_path):
|
||||
local_path = requested_path
|
||||
@@ -794,12 +800,8 @@ class Environment:
|
||||
and vcs_ref == requested_revision
|
||||
and direct_url_metadata["url"] == pipfile_part[req.link.scheme]
|
||||
)
|
||||
elif req.link and req.link.is_vcs:
|
||||
elif req.link.is_vcs:
|
||||
return False
|
||||
elif req.specifier is not None:
|
||||
return SpecifierSet(str(req.specifier)).contains(
|
||||
match.version, prereleases=True
|
||||
)
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user