parameters: (self)
docstring: Ensure that project metadata is available.
  
          Under PEP 517, call the backend hook to prepare the metadata.
          Under legacy processing, call setup.py egg-info.
docstring_summary: Ensure that project metadata is available.
docstring_tokens: Ensure that project metadata is available .
function: def prepare_metadata(self):
          # type: () -> None
          """Ensure that project metadata is available.
  
          Under PEP 517, call the backend hook to prepare the metadata.
          Under legacy processing, call setup.py egg-info.
          """
          assert self.source_dir
  
          with indent_log():
              self.metadata_directory = self._generate_metadata()
  
          # Act on the newly generated metadata, based on the name and version.
          if not self.name:
              self._set_requirement()
          else:
              self.warn_on_mismatching_name()
  
          self.assert_source_matches_version()
function_tokens: def prepare_metadata ( self ) : # type: () -> None assert self . source_dir with indent_log ( ) : self . metadata_directory = self . _generate_metadata ( ) # Act on the newly generated metadata, based on the name and version. if not self . name : self . _set_requirement ( ) else : self . warn_on_mismatching_name ( ) self . assert_source_matches_version ( )