Class: PypiPackages
Overview
This class is part of an internal API. This class may only be used internally in repositories owned by Homebrew, except in casks or formulae. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Helper class for pypi_packages DSL.
Instance Attribute Summary collapse
- #dependencies ⇒ Array<String> readonly private
- #exclude_packages ⇒ Array<String> readonly private
- #extra_packages ⇒ Array<String> readonly private
- #package_name ⇒ String? readonly private
Instance Method Summary collapse
- #initialize(package_name: nil, extra_packages: [], exclude_packages: [], dependencies: []) ⇒ void constructor private
Constructor Details
#initialize(package_name: nil, extra_packages: [], exclude_packages: [], dependencies: []) ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'pypi_packages.rb', line 27 def initialize( package_name: nil, extra_packages: [], exclude_packages: [], dependencies: [] ) @package_name = T.let(package_name, T.nilable(String)) @extra_packages = T.let(extra_packages, T::Array[String]) @exclude_packages = T.let(exclude_packages, T::Array[String]) @dependencies = T.let(dependencies, T::Array[String]) end |
Instance Attribute Details
#dependencies ⇒ Array<String> (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
17 18 19 |
# File 'pypi_packages.rb', line 17 def dependencies @dependencies end |
#exclude_packages ⇒ Array<String> (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
14 15 16 |
# File 'pypi_packages.rb', line 14 def exclude_packages @exclude_packages end |
#extra_packages ⇒ Array<String> (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
11 12 13 |
# File 'pypi_packages.rb', line 11 def extra_packages @extra_packages end |
#package_name ⇒ String? (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
8 9 10 |
# File 'pypi_packages.rb', line 8 def package_name @package_name end |