Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def write_updated_dependency_files
end

def install_required_python
return if run_command("pyenv versions").include?("#{python_version}\n")
return if run_command("pyenv versions").include?("\ #{python_version}")

run_command("pyenv install -s #{python_version}")
run_command("pyenv exec pip install --upgrade pip")
Expand Down
2 changes: 2 additions & 0 deletions python/lib/dependabot/python/metadata_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ def pypi_listing
return @pypi_listing
rescue JSON::ParserError
next
rescue Excon::Error::Timeout
next
end

@pypi_listing = {} # No listing found
Expand Down
2 changes: 2 additions & 0 deletions python/lib/dependabot/python/update_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ def poetry_library?

pypi_info = JSON.parse(index_response.body)["info"] || {}
pypi_info["summary"] == details["description"]
rescue Excon::Error::Timeout
false
rescue URI::InvalidURIError
false
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def write_original_manifest_files
end

def install_required_python
return if run_command("pyenv versions").include?("#{python_version}\n")
return if run_command("pyenv versions").include?("\ #{python_version}")

run_command("pyenv install -s #{python_version}")
run_command("pyenv exec pip install --upgrade pip")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def install_required_python
nil
end

return if run_command("pyenv versions").include?("#{python_version}\n")
return if run_command("pyenv versions").include?("\ #{python_version}")

requirements_path = NativeHelpers.python_requirements_path
run_command("pyenv install -s #{python_version}")
Expand Down