From e66f237cfdf80ff8dce5246193072dab5ea1fff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E6=B4=8B=E4=B8=89=E6=B4=8B?= <1258009915@qq.com> Date: Tue, 28 May 2024 07:31:32 +0000 Subject: [PATCH] Added releasing file --- MANIFEST.in | 1 + setup.py | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 MANIFEST.in create mode 100644 setup.py diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..bb3ec5f --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include README.md diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..8721ff9 --- /dev/null +++ b/setup.py @@ -0,0 +1,47 @@ +from setuptools import setup, find_packages +import platform + +# Define the base dependencies +install_requires = [ + "torch", + "torchvision", + "torchaudio", + "transformers", + "datasets", + "evaluate", + "opencv-python", + "ray[serve]", + "accelerate", + "tensorboardX", + "nltk", + "python-multipart", + "augraphy", + "streamlit==1.30", + "streamlit-paste-button", + "shapely", + "pyclipper", +] + +# Add platform-specific dependencies +if platform.system() == "Darwin": + install_requires.append("onnxruntime") +else: + install_requires.append("onnxruntime-gpu") + +setup( + name="texteller", + version="0.1.0", + author="OleehyO", + author_email="1258009915@qq.com", + description="A meta-package for installing dependencies", + long_description=open('README.md').read(), + long_description_content_type="text/markdown", + url="https://github.com/OleehyO/TexTeller", + packages=find_packages(), + install_requires=install_requires, + classifiers=[ + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", + ], + python_requires='>=3.10', +)