diff --git a/MANIFEST.in b/MANIFEST.in index 241db3f..c9d8af0 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -graft rules \ No newline at end of file +include libindic/normalizer/rules/*.rules \ No newline at end of file diff --git a/libindic/normalizer/core.py b/libindic/normalizer/core.py index 6eb648f..0171a31 100755 --- a/libindic/normalizer/core.py +++ b/libindic/normalizer/core.py @@ -26,7 +26,7 @@ class Normalizer: def __init__(self): - self.rules_file = files('rules').joinpath('normalizer_ml.rules') + self.rules_file = files('libindic.normalizer.rules').joinpath('normalizer_ml.rules') self.rulesDict = self.LoadRules() pattern = "|".join(map(re.escape, self.rulesDict.keys())) self.regex = re.compile(pattern) diff --git a/rules/normalizer_ml.rules b/libindic/normalizer/rules/normalizer_ml.rules similarity index 100% rename from rules/normalizer_ml.rules rename to libindic/normalizer/rules/normalizer_ml.rules diff --git a/pyproject.toml b/pyproject.toml index e649069..851b23a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,9 +36,6 @@ Homepage = "https://libindic.org/normalizer" requires = ["setuptools", "setuptools-scm"] build-backend = "setuptools.build_meta" -[tool.setuptools.packages.find] -where = ["libindic"] - [project.entry-points."libindic.api.rest"] normalize = "normalizer.expose:normalize"