Class: PypiPackages

Inherits:
Object show all
Defined in:
pypi_packages.rb

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

Instance Method Summary collapse

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.

Parameters:



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

#dependenciesArray<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.

Returns:



17
18
19
# File 'pypi_packages.rb', line 17

def dependencies
  @dependencies
end

#exclude_packagesArray<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.

Returns:



14
15
16
# File 'pypi_packages.rb', line 14

def exclude_packages
  @exclude_packages
end

#extra_packagesArray<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.

Returns:



11
12
13
# File 'pypi_packages.rb', line 11

def extra_packages
  @extra_packages
end

#package_nameString? (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.

Returns:



8
9
10
# File 'pypi_packages.rb', line 8

def package_name
  @package_name
end