witty-crayon-22786
11/30/2015, 9:48 PMclass Dependencies(Target):
"""A set of dependencies that may be depended upon,
as if depending upon the set of dependencies directly.
NB: This class is commonly referred to by the alias 'target' in BUILD files.
"""
class DeprecatedDependencies(Dependencies):
"""A subclass for Dependencies that warns that the 'dependencies' alias is deprecated."""
def __init__(self, *args, **kwargs):
logger.warn("For {0} : The alias 'dependencies(..)' has been deprecated in favor of "
"'target(..)'"
.format(kwargs['address'].spec))
super(DeprecatedDependencies, self).__init__(*args, **kwargs)