class Dependabot::Uv::FileParser::SetupFileParser

def parsed_sanitized_setup_file

def parsed_sanitized_setup_file
  SharedHelpers.in_a_temporary_directory do
    write_sanitized_setup_file
    requirements = SharedHelpers.run_helper_subprocess(
      command: "pyenv exec python3 #{NativeHelpers.python_helper_path}",
      function: "parse_setup",
      args: [Dir.pwd]
    )
    check_requirements(requirements)
    requirements
  end
rescue SharedHelpers::HelperSubprocessFailed
  # Assume there are no dependencies in setup.py files that fail to
  # parse. This isn't ideal, and we should continue to improve
  # parsing, but there are a *lot* of things that can go wrong at
  # the moment!
  []
end