Skip to content

Commit

Permalink
fix: cyclic import (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjoDiaz authored Aug 12, 2024
1 parent 4c775a3 commit e1fb6a0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
8 changes: 1 addition & 7 deletions simplemma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
"""

__title__ = "simplemma"
__author__ = "Adrien Barbaresi, Juanjo Diaz and contributors"
__email__ = "[email protected]"
__license__ = "MIT"
__version__ = "1.1.1"


from .__metadata__ import __title__, __author__, __email__, __license__, __version__
from .language_detector import LanguageDetector, in_target_language, langdetect
from .lemmatizer import Lemmatizer, is_known, lemma_iterator, lemmatize, text_lemmatizer
from .token_sampler import (
Expand Down
18 changes: 18 additions & 0 deletions simplemma/__metadata__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
Package Metadata
This module contains metadata information for the simplemma package.
Attributes:
__title__ (str): The title of the package.
__author__ (str): The authors of the package.
__email__ (str): The contact email for the package.
__license__ (str): The license under which the package is distributed.
__version__ (str): The current version of the package.
"""

__title__ = "simplemma"
__author__ = "Adrien Barbaresi, Juanjo Diaz and contributors"
__email__ = "[email protected]"
__license__ = "MIT"
__version__ = "1.1.1"
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self) -> None:
raise ImportError("marisa_trie and platformdirs packages not installed")


from simplemma import __version__ as SIMPLEMMA_VERSION
from simplemma.__metadata__ import __version__ as SIMPLEMMA_VERSION
from simplemma.strategies.dictionaries.dictionary_factory import (
DefaultDictionaryFactory,
DictionaryFactory,
Expand Down

0 comments on commit e1fb6a0

Please sign in to comment.