From b09c1ce09af6d600cbf0f279a0b182a2c29f048d Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Wed, 31 Mar 2021 11:22:31 +0800 Subject: [PATCH] fix whl package push pypi (#31585) * fix whl package push pypi * add rst --- python/paddle/{README.md => README.rst} | 0 python/setup.py.in | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename python/paddle/{README.md => README.rst} (100%) diff --git a/python/paddle/README.md b/python/paddle/README.rst similarity index 100% rename from python/paddle/README.md rename to python/paddle/README.rst diff --git a/python/setup.py.in b/python/setup.py.in index 5876ac19d46..73c773bab49 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -511,10 +511,10 @@ else: # Log for PYPI if sys.version_info > (3,0): - with open("@PADDLE_BINARY_DIR@/python/paddle/README.md", "r", encoding='UTF-8') as f: + with open("@PADDLE_BINARY_DIR@/python/paddle/README.rst", "r", encoding='UTF-8') as f: long_description = f.read() else: - with open("@PADDLE_BINARY_DIR@/python/paddle/README.md", "r")as f: + with open("@PADDLE_BINARY_DIR@/python/paddle/README.rst", "r")as f: long_description = unicode(f.read(), 'UTF-8') with redirect_stdout(): -- GitLab