Commit 500bb9a1 authored by Samuel Gaist's avatar Samuel Gaist

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.
parent b4d58d49
v36.3.1
* Improved handling of README files extensions and added
Markdown to the list of searched READMES.
v36.3.0 v36.3.0
------- -------
......
...@@ -37,7 +37,8 @@ class sdist(sdist_add_defaults, orig.sdist): ...@@ -37,7 +37,8 @@ class sdist(sdist_add_defaults, orig.sdist):
negative_opt = {} 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): def run(self):
self.run_command('egg_info') self.run_command('egg_info')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment