def __init__(self, org, name, repo, publication_metadata=None):
    """
    :param string org: Organization of this artifact, or groupId in maven parlance.
    :param string name: Name of the artifact, or artifactId in maven parlance.
    :param repo: The ``repo`` this artifact is published to.
    :param publication_metadata: Optional extra publication metadata required by the ``repo``.
    """
    if not isinstance(org, string_types):
      raise ValueError("org must be {} but was {}".format(string_types, org))
    if not isinstance(name, string_types):
      raise ValueError("name must be {} but was {}".format(string_types, name))
    if not isinstance(repo, Repository):
      raise ValueError("repo must be an instance of Repository")

    if (publication_metadata is not None
        and not isinstance(publication_metadata, PublicationMetadata)):
      raise ValueError("publication_metadata must be a {} but was a {}"
                       .format(PublicationMetadata, type(publication_metadata)))

    self.org = org
    self._base_name = name
    self.repo = repo
    self.publication_metadata = publication_metadata
def __init__ ( self , org , name , repo , publication_metadata = None ) : if not isinstance ( org , string_types ) : raise ValueError ( "org must be {} but was {}" . format ( string_types , org ) ) if not isinstance ( name , string_types ) : raise ValueError ( "name must be {} but was {}" . format ( string_types , name ) ) if not isinstance ( repo , Repository ) : raise ValueError ( "repo must be an instance of Repository" ) if ( publication_metadata is not None and not isinstance ( publication_metadata , PublicationMetadata ) ) : raise ValueError ( "publication_metadata must be a {} but was a {}" . format ( PublicationMetadata , type ( publication_metadata ) ) ) self . org = org self . _base_name = name self . repo = repo self . publication_metadata = publication_metadata
:param string org: Organization of this artifact, or groupId in maven parlance.
    :param string name: Name of the artifact, or artifactId in maven parlance.
    :param repo: The ``repo`` this artifact is published to.
    :param publication_metadata: Optional extra publication metadata required by the ``repo``.