commit 39f1fb61cb6142cce43ee3a1e5d8c4df0b7fff0a parent cb452f061da90ac2bab39ab00a684164790b73a5 Author: Stefan Koch <programming@stefan-koch.name> Date: Mon, 3 Jul 2023 18:45:04 +0200 switch to pyproject.toml Diffstat:
17 files changed, 17 insertions(+), 21 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml @@ -0,0 +1,17 @@ +[project] +name = "alphadistill" +version = "0.0.1" +dependencies = [ + 'classla', + 'pyphen', + 'spacy', + 'stanza', + 'sudachipy', + 'sudachidict_core', +] + +[tool.setuptools] +package-dir = {"" = "src"} + +[tool.setuptools.packages.find] +where = ["src"] diff --git a/setup.py b/setup.py @@ -1,21 +0,0 @@ -from setuptools import setup - -setup( - name='alphadistill', - version='0.1', - description='Language learning tools NLP server', - author='Stefan Koch', - author_email='programming@stefan-koch.name', - packages=[ - 'alphadistill', - 'alphadistill.tokenization', - ], - install_requires=[ - 'classla', - 'pyphen', - 'spacy', - 'stanza', - 'sudachipy', - 'sudachidict_core', - ], -) diff --git a/alphadistill/__init__.py b/src/alphadistill/__init__.py diff --git a/alphadistill/detection.py b/src/alphadistill/detection.py diff --git a/alphadistill/grammartree/__init__.py b/src/alphadistill/grammartree/__init__.py diff --git a/alphadistill/grammartree/croatian.py b/src/alphadistill/grammartree/croatian.py diff --git a/alphadistill/grammartree/engines.py b/src/alphadistill/grammartree/engines.py diff --git a/alphadistill/grammartree/factory.py b/src/alphadistill/grammartree/factory.py diff --git a/alphadistill/grammartree/japanese.py b/src/alphadistill/grammartree/japanese.py diff --git a/alphadistill/readability/__init__.py b/src/alphadistill/readability/__init__.py diff --git a/alphadistill/readability/flesch_reading_ease.py b/src/alphadistill/readability/flesch_reading_ease.py diff --git a/alphadistill/server.py b/src/alphadistill/server.py diff --git a/alphadistill/tokenization/__init__.py b/src/alphadistill/tokenization/__init__.py diff --git a/alphadistill/tokenization/croatian.py b/src/alphadistill/tokenization/croatian.py diff --git a/alphadistill/tokenization/factory.py b/src/alphadistill/tokenization/factory.py diff --git a/alphadistill/tokenization/generic.py b/src/alphadistill/tokenization/generic.py diff --git a/alphadistill/tokenization/japanese.py b/src/alphadistill/tokenization/japanese.py