diff --git a/README-en.md b/README-en.md index 00cd908..f6dbe05 100644 --- a/README-en.md +++ b/README-en.md @@ -33,10 +33,10 @@ WxPusher.query_user('', '', '') Configuration is necessary since the tests depend on VALID `appToken` and `uids`. -Frist, copy the configuration sample `config.sample.py` under `python/wxpusher/tests/` to `config.py` +Frist, copy the configuration sample `config.sample.py` under `wxpusher/tests/` to `config.py` ```shell -cd python/wxpusher/tests +cd wxpusher/tests cp config.sample.py config.py ``` diff --git a/README.md b/README.md index 7e76eb7..7a3456f 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ WxPusher.query_user('', '', '') 首先,将 `wxpusher/tests/` 文件夹下的配置样例 `config.sample.py` 复制并命名为 `config.py`。 ```shell -cd python/wxpusher/tests +cd wxpusher/tests cp config.sample.py config.py ``` diff --git a/VERSION b/VERSION index 7ec1d6d..3e3c2f1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.0 +2.1.1 diff --git a/setup.py b/setup.py index 242b07a..a8c7a5b 100644 --- a/setup.py +++ b/setup.py @@ -41,15 +41,21 @@ 'WxPusher Python SDK.' ) +VERSION = open('VERSION').read().strip() +PROJECT_URL = 'https://github.com/wxpusher/wxpusher-sdk-python' +BASE_URL = f'{PROJECT_URL}/blob/v{VERSION}' + def readme(): """Parse README for long_description.""" - with open('README.md') as fin: - return fin.read() + content = open('README.md').read() + content = content.replace('README.md', f'{BASE_URL}/README.md', 1) + content = content.replace('README-en.md', f'{BASE_URL}/README-en.md', 1) + return content setup(name='wxpusher', - version=open('VERSION').read().strip(), + version=VERSION, description=DESCRIPTION, long_description=readme(), long_description_content_type='text/markdown',