diff --git a/pyproject.toml b/pyproject.toml index 795d9b4..1b308c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "reynir-correct" version = "4.0.0" description = "Spelling and grammar correction for Icelandic" -authors = [{ name = "Miðeind ehf", email = "mideind@mideind.is" }] +authors = [{ name = "Miðeind ehf.", email = "mideind@mideind.is" }] readme = { file = "README.rst", content-type = "text/x-rst" } license = { file = "LICENSE.txt" } # For classifier list see: https://pypi.org/pypi?%3Aaction=list_classifiers diff --git a/src/reynir_correct/__init__.py b/src/reynir_correct/__init__.py index 49d6b3e..5e90595 100644 --- a/src/reynir_correct/__init__.py +++ b/src/reynir_correct/__init__.py @@ -28,8 +28,9 @@ """ -# Expose the reynir-correct API +import importlib.metadata +# Expose the reynir-correct API from reynir import Greynir, Paragraph, Sentence, correct_spaces, mark_paragraphs from tokenizer import detokenize @@ -47,7 +48,7 @@ __author__ = "Miðeind ehf" __copyright__ = "(C) 2023 Miðeind ehf." -__version__ = "4.0.0" # Remember to update in pyproject.toml as well +__version__ = importlib.metadata.version("reynir-correct") __all__ = ( "Greynir",