Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9f87f0

Browse files
kirbyfan64vstinner
authored andcommitted
bpo-11913: Add README.rst to the distutils standard READMEs list (#563)
1 parent 9476299 commit f9f87f0

4 files changed

Lines changed: 19 additions & 5 deletions

File tree

Doc/distutils/sourcedist.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ source distribution:
9595
distributions, but in the future there will be a standard for testing Python
9696
module distributions)
9797

98-
* :file:`README.txt` (or :file:`README`), :file:`setup.py` (or whatever you
99-
called your setup script), and :file:`setup.cfg`
98+
* Any of the standard README files (:file:`README`, :file:`README.txt`,
99+
or :file:`README.rst`), :file:`setup.py` (or whatever you called your setup
100+
script), and :file:`setup.cfg`.
100101

101102
* all files that matches the ``package_data`` metadata.
102103
See :ref:`distutils-installing-package-data`.
@@ -130,6 +131,9 @@ described above does not apply in this case.
130131
:command:`sdist` will read a :file:`MANIFEST` file if no :file:`MANIFEST.in`
131132
exists, like it used to do.
132133

134+
.. versionchanged:: 3.7
135+
:file:`README.rst` is now included in the list of distutils standard READMEs.
136+
133137

134138
The manifest template has one command per line, where each command specifies a
135139
set of files to include or exclude from the source distribution. For an

Doc/whatsnew/3.7.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ New Modules
9595
Improved Modules
9696
================
9797

98+
distutils
99+
---------
100+
101+
README.rst is now included in the list of distutils standard READMEs and
102+
therefore included in source distributions.
103+
(Contributed by Ryan Gonzalez in :issue:`11913`.)
104+
98105
http.server
99106
-----------
100107

Lib/distutils/command/sdist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def checking_metadata(self):
9696

9797
sub_commands = [('check', checking_metadata)]
9898

99-
READMES = 'README', 'README.txt'
99+
READMES = ('README', 'README.txt', 'README.rst')
100100

101101
def initialize_options(self):
102102
# 'template' and 'manifest' are, respectively, the names of

Misc/NEWS

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ What's New in Python 3.7.0 alpha 1?
1010
Core and Builtins
1111
-----------------
1212

13+
- bpo-11913: README.rst is now included in the list of distutils standard
14+
READMEs and therefore included in source distributions.
15+
1316
- bpo-29914: Fixed default implementations of __reduce__ and __reduce_ex__().
1417
object.__reduce__() no longer takes arguments, object.__reduce_ex__() now
1518
requires one argument.
@@ -310,12 +313,12 @@ Library
310313
- bpo-29694: Fixed race condition in pathlib mkdir with flags
311314
parents=True. Patch by Armin Rigo.
312315

313-
- bpo-29692: Fixed arbitrary unchaining of RuntimeError exceptions in
316+
- bpo-29692: Fixed arbitrary unchaining of RuntimeError exceptions in
314317
contextlib.contextmanager.
315318
Patch by Siddharth Velankar.
316319

317320
- bpo-26187: Test that sqlite3 trace callback is not called multiple
318-
times when schema is changing. Indirectly fixed by switching to
321+
times when schema is changing. Indirectly fixed by switching to
319322
use sqlite3_prepare_v2() in bpo-9303. Patch by Aviv Palivoda.
320323

321324
- bpo-30017: Allowed calling the close() method of the zip entry writer object

0 commit comments

Comments
 (0)