Skip to content

Commit 31bf4bd

Browse files
authored
Merge pull request #14 from fingerprintjs/fix-pypi-docs-links
fix: add correct links to documentation from PyPI
2 parents f390299 + af8264f commit 31bf4bd

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ Python 2.7 and 3.4+
4646
## Installation & Usage
4747
### pip install
4848

49-
You can install the package directly from Github
49+
You can install the package directly from the Github
5050

5151
```sh
5252
pip install git+https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk.git
5353
```
5454

55-
Or from PyPI
55+
Or from the PyPI
5656

5757
```sh
5858
pip install fingerprint_pro_server_api_sdk

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
here = pathlib.Path(__file__).parent.resolve()
3636
long_description = (here / 'README.md').read_text(encoding='utf-8')
3737
long_description = re.sub("<source[^>]*>\n", '', long_description.replace("<picture>\n", "").replace("</picture>\n", ""))
38+
long_description = re.sub(r"(?P<prefix>\[[^]]*]\()(?P<postfix>docs/[^)]*\))", '\g<prefix>https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/blob/main/\g<postfix>', long_description)
3839

3940
setup(
4041
name=NAME,

template/setup.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ REQUIRES.append("tornado")
3636
here = pathlib.Path(__file__).parent.resolve()
3737
long_description = (here / 'README.md').read_text(encoding='utf-8')
3838
long_description = re.sub("<source[^>]*>\n", '', long_description.replace("<picture>\n", "").replace("</picture>\n", ""))
39+
long_description = re.sub(r"(?P<prefix>\[[^]]*]\()(?P<postfix>docs/[^)]*\))", '\g<prefix>https://github.com/{{{gitUserId}}}/{{{gitRepoId}}}/blob/main/\g<postfix>', long_description)
3940

4041
setup(
4142
name=NAME,

0 commit comments

Comments
 (0)