summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2012-07-14 09:44:46 -0500
committerMonty Taylor <mordred@inaugust.com>2012-07-15 09:01:45 -0700
commit398ab2ebcad5368df064a8cb5a77295de5465d44 (patch)
tree9ea4bc686b6ca2d949e9d2ee728f11a9bfd66122
parent722e1be062aea89461d958591fef1ea3023bf688 (diff)
downloadpbr-398ab2ebcad5368df064a8cb5a77295de5465d44.tar.gz
Add README.rst to the list of valid READMEs.
This is in the lastest distribute already, but the earlier versions still warn about README.rst, which is annoying. Change-Id: I30688fd11bb6871b4b51ef6f0090c0418b8394d6
-rw-r--r--pbr/cmdclass.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/pbr/cmdclass.py b/pbr/cmdclass.py
index 8f8a6aa..8dbd918 100644
--- a/pbr/cmdclass.py
+++ b/pbr/cmdclass.py
@@ -107,6 +107,17 @@ def get_cmdclass(versioninfo_path):
class LocalSDist(sdist.sdist):
"""Builds the ChangeLog and Authors files from VC first."""
+ def check_readme(self):
+ alts = ("README.rst", "README", "README.txt")
+ for f in alts:
+ if os.path.exists(f):
+ return
+ else:
+ self.warn(
+ "standard file not found: should have one of " +
+ ', '.join(alts)
+ )
+
def run(self):
write_git_changelog()
generate_authors()