2021-06-08 01:23:25 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Packages
|
|
|
|
module Pypi
|
|
|
|
class PackagesFinder < ::Packages::GroupOrProjectPackageFinder
|
2021-10-27 15:23:28 +05:30
|
|
|
def execute
|
2022-07-23 23:45:48 +05:30
|
|
|
return packages unless @params[:package_name]
|
|
|
|
|
2021-10-27 15:23:28 +05:30
|
|
|
packages.with_normalized_pypi_name(@params[:package_name])
|
2021-06-08 01:23:25 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def packages
|
|
|
|
base.pypi.has_version
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|