mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Added set sources to DEFAULT_SOURCE if the section does not exist in the PIPFILE
This commit is contained in:
+3
-1
@@ -821,8 +821,10 @@ class Project(object):
|
||||
from .vendor.plette.lockfiles import PIPFILE_SPEC_CURRENT
|
||||
if self.lockfile_exists:
|
||||
sources = self.lockfile_content.get("_meta", {}).get("sources", [])
|
||||
else:
|
||||
elif "source" in self.parsed_pipfile:
|
||||
sources = [dict(source) for source in self.parsed_pipfile["source"]]
|
||||
else:
|
||||
sources = self.pipfile_sources
|
||||
if not isinstance(sources, list):
|
||||
sources = [sources]
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user