Class: Dependabot::Uv::FileUpdater::CompileFileUpdater
- Inherits:
-
Object
- Object
- Dependabot::Uv::FileUpdater::CompileFileUpdater
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/uv/file_updater/compile_file_updater.rb
Overview
rubocop:disable Metrics/ClassLength
Constant Summary collapse
- UNSAFE_PACKAGES =
%w(setuptools distribute pip).freeze
- INCOMPATIBLE_VERSIONS_REGEX =
/There are incompatible versions in the resolved dependencies:.*\z/m- WARNINGS =
/\s*# WARNING:.*\Z/m- UNSAFE_NOTE =
/\s*# The following packages are considered to be unsafe.*\Z/m- RESOLVER_REGEX =
/(?<=--resolver=)(\w+)/- NATIVE_COMPILATION_ERROR =
"pip._internal.exceptions.InstallationSubprocessError: Getting requirements to build wheel exited with 1"- PYTHON_VERSION_REGEX =
/--python-version[=\s]+(?<version>\d+\.\d+(?:\.\d+)?)/
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#dependency_files ⇒ Object
readonly
Returns the value of attribute dependency_files.
Instance Method Summary collapse
-
#initialize(dependencies:, dependency_files:, credentials:, index_urls: nil) ⇒ CompileFileUpdater
constructor
A new instance of CompileFileUpdater.
- #updated_dependency_files ⇒ Object
Constructor Details
#initialize(dependencies:, dependency_files:, credentials:, index_urls: nil) ⇒ CompileFileUpdater
Returns a new instance of CompileFileUpdater.
55 56 57 58 59 60 61 |
# File 'lib/dependabot/uv/file_updater/compile_file_updater.rb', line 55 def initialize(dependencies:, dependency_files:, credentials:, index_urls: nil) @dependencies = dependencies @dependency_files = dependency_files @credentials = credentials @index_urls = index_urls @build_isolation = T.let(true, T::Boolean) end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
45 46 47 |
# File 'lib/dependabot/uv/file_updater/compile_file_updater.rb', line 45 def credentials @credentials end |
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
39 40 41 |
# File 'lib/dependabot/uv/file_updater/compile_file_updater.rb', line 39 def dependencies @dependencies end |
#dependency_files ⇒ Object (readonly)
Returns the value of attribute dependency_files.
42 43 44 |
# File 'lib/dependabot/uv/file_updater/compile_file_updater.rb', line 42 def dependency_files @dependency_files end |
Instance Method Details
#updated_dependency_files ⇒ Object
64 65 66 67 68 69 |
# File 'lib/dependabot/uv/file_updater/compile_file_updater.rb', line 64 def updated_dependency_files @updated_dependency_files ||= T.let( fetch_updated_dependency_files, T.nilable(T::Array[Dependabot::DependencyFile]) ) end |