diff --git a/README.md b/README.md index c4b41fed..73dc5fab 100644 --- a/README.md +++ b/README.md @@ -46,13 +46,13 @@ Python 2.7 and 3.4+ ## Installation & Usage ### pip install -You can install the package directly from Github +You can install the package directly from the Github ```sh pip install git+https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk.git ``` -Or from PyPI +Or from the PyPI ```sh pip install fingerprint_pro_server_api_sdk diff --git a/setup.py b/setup.py index 2a5d7f7e..9a754cf2 100644 --- a/setup.py +++ b/setup.py @@ -35,6 +35,7 @@ here = pathlib.Path(__file__).parent.resolve() long_description = (here / 'README.md').read_text(encoding='utf-8') long_description = re.sub("]*>\n", '', long_description.replace("\n", "").replace("\n", "")) +long_description = re.sub(r"(?P\[[^]]*]\()(?Pdocs/[^)]*\))", '\ghttps://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/blob/main/\g', long_description) setup( name=NAME, diff --git a/template/setup.mustache b/template/setup.mustache index c8970700..5892ccf7 100644 --- a/template/setup.mustache +++ b/template/setup.mustache @@ -36,6 +36,7 @@ REQUIRES.append("tornado") here = pathlib.Path(__file__).parent.resolve() long_description = (here / 'README.md').read_text(encoding='utf-8') long_description = re.sub("]*>\n", '', long_description.replace("\n", "").replace("\n", "")) +long_description = re.sub(r"(?P\[[^]]*]\()(?Pdocs/[^)]*\))", '\ghttps://github.com/{{{gitUserId}}}/{{{gitRepoId}}}/blob/main/\g', long_description) setup( name=NAME,