Skip to content

Commit

Permalink
revert moving rules to root to fix python issues
Browse files Browse the repository at this point in the history
  • Loading branch information
asdofindia committed Feb 19, 2024
1 parent 6d5b14f commit 2c640e4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
graft rules
include libindic/normalizer/rules/*.rules
2 changes: 1 addition & 1 deletion libindic/normalizer/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 2c640e4

Please sign in to comment.