diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..4b67eb34d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,37 @@ +[project] +name = "easyocr" +version = "1.7.1" +description = "End-to-End Multi-Lingual Optical Character Recognition (OCR) Solution" +authors = [{name="Rakpong Kittinaradorn", email="r.kittinaradorn@gmail.com"}] +license = {text = "Apache-2.0"} +readme = "README.md" +classifiers = ["Development Status :: 5 - Production/Stable"] +keywords = ["ocr", "optical character recognition", "deep learning", "neural network"] +dependencies = [ + "ninja", + "numpy", + "opencv-python-headless", + "Pillow", + "pyclipper", + "python-bidi", + "PyYAML", + "scikit-image", + "scipy", + "Shapely", + "torch", + "torchvision >= 0.5", +] +scripts = {easyocr="easyocr.cli:main"} + +[project.urls] +Homepage = "https://github.com/JaidedAI/EasyOCR" +Documentation = "https://www.jaided.ai/easyocr/documentation/" +Repository = "https://github.com/JaidedAI/EasyOCR.git" +Changelog = "https://github.com/JaidedAI/EasyOCR/blob/master/releasenotes.md" + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[tool.setuptools.packages.find] +exclude = ["build*", "trainer*", "unit_test*"] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 9d0fb7b71..000000000 --- a/requirements.txt +++ /dev/null @@ -1,12 +0,0 @@ -torch -torchvision>=0.5 -opencv-python-headless -scipy -numpy -Pillow -scikit-image -python-bidi -PyYAML -Shapely -pyclipper -ninja diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 08aedd7e6..000000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[metadata] -description_file = README.md diff --git a/setup.py b/setup.py deleted file mode 100644 index c7d7c4bf6..000000000 --- a/setup.py +++ /dev/null @@ -1,35 +0,0 @@ -""" -End-to-End Multi-Lingual Optical Character Recognition (OCR) Solution -""" -from io import open -from setuptools import setup - -with open('requirements.txt', encoding="utf-8-sig") as f: - requirements = f.readlines() - -def readme(): - with open('README.md', encoding="utf-8-sig") as f: - README = f.read() - return README - -setup( - name='easyocr', - packages=['easyocr'], - include_package_data=True, - version='1.7.1', - install_requires=requirements, - entry_points={"console_scripts": ["easyocr= easyocr.cli:main"]}, - license='Apache License 2.0', - description='End-to-End Multi-Lingual Optical Character Recognition (OCR) Solution', - long_description=readme(), - long_description_content_type="text/markdown", - author='Rakpong Kittinaradorn', - author_email='r.kittinaradorn@gmail.com', - url='https://github.com/jaidedai/easyocr', - download_url='https://github.com/jaidedai/easyocr.git', - keywords=['ocr optical character recognition deep learning neural network'], - classifiers=[ - 'Development Status :: 5 - Production/Stable' - ], - -)