parameters: (dist, attr, value)
docstring: Verify that install_requires is a valid requirements list
docstring_summary: Verify that install_requires is a valid requirements list
docstring_tokens: Verify that install_requires is a valid requirements list
function: def check_requirements(dist, attr, value):
      """Verify that install_requires is a valid requirements list"""
      try:
          list(pkg_resources.parse_requirements(value))
          if isinstance(value, (dict, set)):
              raise TypeError("Unordered types are not allowed")
      except (TypeError, ValueError) as error:
          tmpl = (
              "{attr!r} must be a string or list of strings "
              "containing valid project/version requirement specifiers; {error}"
          )
          raise DistutilsSetupError(tmpl.format(attr=attr, error=error))
function_tokens: def check_requirements ( dist , attr , value ) : try : list ( pkg_resources . parse_requirements ( value ) ) if isinstance ( value , ( dict , set ) ) : raise TypeError ( "Unordered types are not allowed" ) except ( TypeError , ValueError ) as error : tmpl = ( "{attr!r} must be a string or list of strings " "containing valid project/version requirement specifiers; {error}" ) raise DistutilsSetupError ( tmpl . format ( attr = attr , error = error ) )