From 2bde0da1dcfe76f52c74e49bb1249c03a275bb6f Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Fri, 27 Nov 2015 16:44:08 +0000 Subject: [PATCH] Ensure we transform doc names, add support for CHANGES.rst Signed-off-by: Ikey Doherty --- docs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs.py b/docs.py index 07cba4b..0048518 100644 --- a/docs.py +++ b/docs.py @@ -23,6 +23,7 @@ import sys transforms = { 'changelog': 'ChangeLog', + 'changes.rst': 'ChangeLog', 'news': 'NEWS' } interests = transforms.keys() @@ -35,7 +36,7 @@ def scan_for_changes(download_path, dir): hits = [x for x in files if x.lower() in interests and x.lower() not in found] for item in hits: source = os.path.join(dirpath, item) - target = os.path.join(download_path, item) + target = os.path.join(download_path, transforms[item.lower()]) try: shutil.copy(source, target) except Exception as e: