]> granicus.if.org Git - python/commitdiff
bpo-11913: Add README.rst to the distutils standard READMEs list (#563)
authorRyan Gonzalez <kirbyfan64@users.noreply.github.com>
Fri, 14 Apr 2017 09:00:25 +0000 (04:00 -0500)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 14 Apr 2017 09:00:25 +0000 (11:00 +0200)
Doc/distutils/sourcedist.rst
Doc/whatsnew/3.7.rst
Lib/distutils/command/sdist.py
Misc/NEWS

index cc289c9b2551cbdf256a6b29f4db7b0db170456e..0ac8ef41ddc20fd710466cf6ff93cc166be488be 100644 (file)
@@ -95,8 +95,9 @@ source distribution:
   distributions, but in the future there will be a standard for testing Python
   module distributions)
 
-* :file:`README.txt` (or :file:`README`), :file:`setup.py` (or whatever  you
-  called your setup script), and :file:`setup.cfg`
+* Any of the standard README files (:file:`README`, :file:`README.txt`,
+  or :file:`README.rst`), :file:`setup.py` (or whatever you called your setup
+  script), and :file:`setup.cfg`.
 
 * all files that matches the ``package_data`` metadata.
   See :ref:`distutils-installing-package-data`.
@@ -130,6 +131,9 @@ described above does not apply in this case.
    :command:`sdist` will read a :file:`MANIFEST` file if no :file:`MANIFEST.in`
    exists, like it used to do.
 
+.. versionchanged:: 3.7
+   :file:`README.rst` is now included in the list of distutils standard READMEs.
+
 
 The manifest template has one command per line, where each command specifies a
 set of files to include or exclude from the source distribution.  For an
index b5107eace4b58f85ca075ace736dc202f475b3c3..875fc556912cae7d0bd66ae2e853013d2e62df7c 100644 (file)
@@ -95,6 +95,13 @@ New Modules
 Improved Modules
 ================
 
+distutils
+---------
+
+README.rst is now included in the list of distutils standard READMEs and
+therefore included in source distributions.
+(Contributed by Ryan Gonzalez in :issue:`11913`.)
+
 http.server
 -----------
 
index 180e28626dcdc95651e925da78b0ee4fdefb54cc..52eaa15d4712c3198337633708bc68c4d096bc5b 100644 (file)
@@ -96,7 +96,7 @@ class sdist(Command):
 
     sub_commands = [('check', checking_metadata)]
 
-    READMES = 'README', 'README.txt'
+    READMES = ('README', 'README.txt', 'README.rst')
 
     def initialize_options(self):
         # 'template' and 'manifest' are, respectively, the names of
index 9b5150c834a8543660b5a6bf7ed5fd38409b42ea..c780241383ee38677957c4c5e5a7a15649220958 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@ What's New in Python 3.7.0 alpha 1?
 Core and Builtins
 -----------------
 
+- bpo-11913: README.rst is now included in the list of distutils standard
+  READMEs and therefore included in source distributions.
+
 - bpo-29914: Fixed default implementations of __reduce__ and __reduce_ex__().
   object.__reduce__() no longer takes arguments, object.__reduce_ex__() now
   requires one argument.
@@ -310,12 +313,12 @@ Library
 - bpo-29694: Fixed race condition in pathlib mkdir with flags
   parents=True.  Patch by Armin Rigo.
 
-- bpo-29692: Fixed arbitrary unchaining of RuntimeError exceptions in 
+- bpo-29692: Fixed arbitrary unchaining of RuntimeError exceptions in
   contextlib.contextmanager.
   Patch by Siddharth Velankar.
 
 - bpo-26187: Test that sqlite3 trace callback is not called multiple
-  times when schema is changing.  Indirectly fixed by switching to 
+  times when schema is changing.  Indirectly fixed by switching to
   use sqlite3_prepare_v2() in bpo-9303.  Patch by Aviv Palivoda.
 
 - bpo-30017: Allowed calling the close() method of the zip entry writer object