• Ian Wienand's avatar
    Allow setting long_description_content_type externally · 07cd2e4e
    Ian Wienand authored
    Some tools, such as PBR, might want to set
    long_description_content_type during the parent object's
    Distribution.__init__() call (during distutils setup_keywords entry
    points).  However, that field is currently unconditionally overwritten
    after these calls, erasing the value.
    
    We would rather not duplicate the existing method of copying into
    dist.metadata as done with project_urls.
    
    This preserves the fields within Distribution.metadata described by
    self._DISTUTIULS_UNUPPORTED_METADATA, or otherwise takes it from
    arguments.
    
    A test case that simulates setting the long description and overriding
    the arguments is added.
    07cd2e4e
1343.misc.rst 220 Bytes