Fix links in PyPi
This commit is contained in:
parent
6bb37ec7a1
commit
9835819b16
2 changed files with 13 additions and 4 deletions
|
@ -75,12 +75,15 @@ t.insert(b"Helo", "Welsh")
|
||||||
|
|
||||||
print("Where to say 'Hi' with 'He'?")
|
print("Where to say 'Hi' with 'He'?")
|
||||||
print(f"{[(n.key(), n.value()) for n in t.find(b'He')]}")
|
print(f"{[(n.key(), n.value()) for n in t.find(b'He')]}")
|
||||||
|
# [(b'Hei', ['Romanian']), (b'Hej', ['Swedish', 'Polish']), (b'Helo', ['Welsh']), (b'Hello', ['English'])]
|
||||||
|
|
||||||
print("Where to say 'Hi' with 'Ha'?")
|
print("Where to say 'Hi' with 'Ha'?")
|
||||||
print(f"{[(n.key().decode('utf-8'), n.value()) for n in t.find(b'Ha')]}")
|
print(f"{[(n.key().decode(), n.value()) for n in t.find(b'Ha')]}")
|
||||||
|
# [('Halló', ['Icelandic']), ('Hallo', ['German', 'Dutch'])]
|
||||||
|
|
||||||
print("Where to say 'Hi' with 'Hē'?")
|
print("Where to say 'Hi' with 'Hē'?")
|
||||||
print(f"Say 'Hi' with utf-8: {[(n.key().decode('utf-8'), n.value()) for n in t.find('Hē'.encode('utf-8'))]}")
|
print(f"Say 'Hi' with utf-8: {[(n.key().decode(), n.value()) for n in t.find('Hē'.encode())]}")
|
||||||
|
# [('Hē', ['Hindi'])]
|
||||||
```
|
```
|
||||||
|
|
||||||
# Contribute
|
# Contribute
|
||||||
|
|
10
setup.py
10
setup.py
|
@ -1,18 +1,24 @@
|
||||||
import setuptools
|
import setuptools
|
||||||
|
import re
|
||||||
|
|
||||||
|
|
||||||
with open("README.md", "r") as fh:
|
with open("README.md", "r") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
|
# prepend all relative links with
|
||||||
|
# https://git.friedl.net/incubator/bytetrie/raw/branch/master/
|
||||||
|
# to make them absolute
|
||||||
|
long_description = re.sub("\[(.*)\]\((?!http)(.*)\)", r"[\1](https://git.friedl.net/incubator/bytetrie/raw/branch/master/\2)", long_description)
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="bytetrie",
|
name="bytetrie",
|
||||||
version="0.0.5",
|
version="0.0.7",
|
||||||
url="https://git.friedl.net/incubator/bytetrie",
|
url="https://git.friedl.net/incubator/bytetrie",
|
||||||
license="MIT",
|
license="MIT",
|
||||||
author="Armin Friedl",
|
author="Armin Friedl",
|
||||||
author_email="dev@friedl.net",
|
author_email="dev@friedl.net",
|
||||||
|
|
||||||
description="A self-compressing radix trie with radix 256 in pure python",
|
description="A self-compressing, dependency-free radix trie",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue