Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve README file list handling and add Markdown to the current list #1133

Merged
merged 2 commits into from Sep 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.rst
Expand Up @@ -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
-------

Expand Down
3 changes: 2 additions & 1 deletion setuptools/command/sdist.py
Expand Up @@ -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')
Expand Down