aboutsummaryrefslogtreecommitdiffstats
path: root/changelog.d
diff options
context:
space:
mode:
authorIan Wienand <iwienand@redhat.com>2018-04-30 19:08:58 +1000
committerIan Wienand <iwienand@redhat.com>2018-05-17 07:22:25 +1000
commit07cd2e4e716264fd51aededcb77cefe37aafb25a (patch)
tree08c8395e42ab13e3d66ea5f903840993909aefb6 /changelog.d
parent1252d1b3b34261acd6c8051c4fe97f206a7118b7 (diff)
downloadexternal_python_setuptools-07cd2e4e716264fd51aededcb77cefe37aafb25a.tar.gz
external_python_setuptools-07cd2e4e716264fd51aededcb77cefe37aafb25a.tar.bz2
external_python_setuptools-07cd2e4e716264fd51aededcb77cefe37aafb25a.zip
Allow setting long_description_content_type externally
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.
Diffstat (limited to 'changelog.d')
-rw-r--r--changelog.d/1343.misc.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/changelog.d/1343.misc.rst b/changelog.d/1343.misc.rst
new file mode 100644
index 00000000..644320f4
--- /dev/null
+++ b/changelog.d/1343.misc.rst
@@ -0,0 +1,4 @@
+The ``setuptools`` specific ``long_description_content_type``,
+``project_urls`` and ``provides_extras`` fields are now set
+consistently after any ``distutils`` ``setup_keywords`` calls,
+allowing them to override values.