From 6b798310860c8b9e86f325a193d07fbeeccfae35 Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Mon, 17 Oct 2022 18:19:00 +0200 Subject: [PATCH] install type hints --- HISTORY.md | 4 ++++ docs/conf.py | 2 +- setup.py | 5 ++++- src/Levenshtein/__init__.py | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 0c7c53b..e479c42 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,9 @@ ## Changelog +### v0.20.7 +#### Fixed +- type hints did not get installed + ### v0.20.6 #### Fixed - fix incorrect result normalization in `setratio` and `seqratio` diff --git a/docs/conf.py b/docs/conf.py index 6bc6015..b5233c5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,7 @@ author = 'Max Bachmann' # The full version, including alpha/beta/rc tags -release = '0.20.6' +release = '0.20.7' # -- General configuration --------------------------------------------------- diff --git a/setup.py b/setup.py index f0a8c9c..85493a8 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="Levenshtein", - version="0.20.6", + version="0.20.7", url="https://github.com/maxbachmann/Levenshtein", author="Max Bachmann", install_requires=["rapidfuzz >= 2.3.0, < 3.0.0"], @@ -29,5 +29,8 @@ packages=["Levenshtein"], package_dir={'':'src'}, + package_data={ + "Levenshtein": ["*.pyi", "py.typed"] + }, python_requires=">=3.6" ) diff --git a/src/Levenshtein/__init__.py b/src/Levenshtein/__init__.py index f50e038..891333a 100644 --- a/src/Levenshtein/__init__.py +++ b/src/Levenshtein/__init__.py @@ -16,7 +16,7 @@ __author__: str = "Max Bachmann" __license__: str = "GPL" -__version__: str = "0.20.6" +__version__: str = "0.20.7" import rapidfuzz.distance.Levenshtein as _Levenshtein import rapidfuzz.distance.Indel as _Indel