aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command
diff options
context:
space:
mode:
authorSamuel Gaist <samuel.gaist@edeltech.ch>2017-08-22 00:22:54 +0200
committerSamuel Gaist <samuel.gaist@edeltech.ch>2017-09-01 00:16:55 +0200
commit500bb9a161e810523c48825491b853c5fbe595cc (patch)
tree0276aef23f4ad05eb620b1108de192e70ead3b32 /setuptools/command
parentb4d58d4929dd4e19870b5eafa48046a0a0c2bf07 (diff)
downloadexternal_python_setuptools-500bb9a161e810523c48825491b853c5fbe595cc.tar.gz
external_python_setuptools-500bb9a161e810523c48825491b853c5fbe595cc.tar.bz2
external_python_setuptools-500bb9a161e810523c48825491b853c5fbe595cc.zip
Improve README file list handling and add Markdown to the current list
Markdown is a widely used format to write README files and documentation. This patch aims to simplify adding new formats and at the same time adds that one to the list.
Diffstat (limited to 'setuptools/command')
-rwxr-xr-xsetuptools/command/sdist.py3
1 files changed, 2 insertions, 1 deletions
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')