@classmethod<EOL><INDENT>def from_pipfile_entry(cls, package_name: str, entry: dict, develop: bool, meta: "<STR_LIT>"):<DEDENT>
_LOGGER.debug("<STR_LIT>", package_name, entry)<EOL>index = None<EOL>if isinstance(entry, str):<EOL><INDENT>package_version = entry<EOL><DEDENT>else:<EOL><INDENT>if any(vcs in entry for vcs in ("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>")):<EOL><INDENT>raise UnsupportedConfiguration(<EOL>f"<STR_LIT>"<EOL>)<EOL><DEDENT>package_version = entry.pop("<STR_LIT:version>")<EOL>index = entry.pop("<STR_LIT:index>", None)<EOL>if entry:<EOL><INDENT>_LOGGER.warning("<STR_LIT>", entry)<EOL><DEDENT><DEDENT>instance = cls(<EOL>name=package_name,<EOL>version=package_version,<EOL>index=cls._get_index_from_meta(meta, package_name, index),<EOL>develop=develop,<EOL>)<EOL>return instance<EOL>
Construct PackageVersion instance from representation as stated in Pipfile.