def set_attributes(self, subject, repo, package, version=None, attributes=None):
        """ Associate attributes with the specified package or version, overriding all previous
            attributes.

            Optionally, specify an attribute type. Otherwise, type will be inferred from the