def build_target(package_name, version=None, build=None, tag=None):
 if (tag is not None):
  assert (version is None)
  assert (build is None)
  (version, build) = split_tag(tag)
 return Target(package_name, version, build)

def build_target ( package_name , version = None , build = None , tag = None ) : if ( tag is not None ) : assert ( version is None ) assert ( build is None ) ( version , build ) = split_tag ( tag ) return Target ( package_name , version , build )
use supplied arguments to build a :class:target object .