summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.rst3
-rwxr-xr-xsetuptools/command/sdist.py3
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index c4eb0e41..ced6630c 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -16,6 +16,9 @@ v36.4.0
distributions (e.g. when using ``setup_requires`` with a conflicting
transitive dependency, fix #1124).
+* #1133: Improved handling of README files extensions and added
+ Markdown to the list of searched READMES.
+
v36.3.0
-------
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index 84e29a1b..7b4d197d 100755
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -37,7 +37,8 @@ class sdist(sdist_add_defaults, orig.sdist):
negative_opt = {}
- READMES = 'README', 'README.rst', 'README.txt'
+ README_EXTENSIONS = ['', '.rst', '.txt', '.md']
+ READMES = tuple('README{}'.format(ext) for ext in README_EXTENSIONS)
def run(self):
self.run_command('egg_info')