From 82a29a11195044c2138685f5fb2b4b738de65d8e Mon Sep 17 00:00:00 2001 From: Gabo Date: Fri, 1 Nov 2024 12:07:38 +0100 Subject: [PATCH] Test pyproject --- pyproject.toml | 34 ++++++++++++++++++++++++++++++++++ setup.py | 23 ----------------------- 2 files changed, 34 insertions(+), 23 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..6c8d828 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,34 @@ +[project] +name = "pdf-document-layout-analysis" +version = "2024.11.1.1001" +description = "This tool is for PDF document layout analysis" +license = { file = "LICENSE" } +authors = [{ name = "HURIDOCS" }] +requires-python = ">= 3.11" +dependencies = [ + "fastapi==0.111.1", + "python-multipart==0.0.9", + "uvicorn==0.30.3", + "gunicorn==22.0.0", + "requests==2.32.3", + "torch==2.4.0", + "torchvision==0.19.0", + "timm==1.0.8", + "Pillow==10.4.0", + "pdf-annotate==0.12.0", + "requests==2.32.3", + "scipy==1.14.0", + "opencv-python==4.10.0.84", + "Shapely==2.0.5", + "transformers==4.40.2", + "huggingface_hub==0.23.5", + "pdf2image==1.17.0", + "lxml==5.2.2", + "lightgbm==4.5.0", + "setuptools==75.3.0", + "roman==4.2", + "hydra-core==1.3.2", + "pypandoc==1.13", + "rapid-latex-ocr==0.0.8", + "pip @ git+https://github.com/UniModal4Reasoning/StructEqTable-Deploy.git@fd06078bfa9364849eb39330c075dd63cbed73ff" +] \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 9777628..0000000 --- a/setup.py +++ /dev/null @@ -1,23 +0,0 @@ -from pathlib import Path - -from setuptools import setup - - -requirements_path = Path("requirements.txt") -requirements = [r for r in requirements_path.read_text().splitlines() if not r.startswith("git+")] -dependency_links = [r for r in requirements_path.read_text().splitlines() if r.startswith("git+")] - -PROJECT_NAME = "pdf-document-layout-analysis" - -setup( - name=PROJECT_NAME, - packages=["pdf_tokens_type_trainer", "pdf_features", "pdf_token_type_labels", "fast_trainer"], - package_dir={"": "src"}, - version="0.19", - url="https://github.com/huridocs/pdf-document-layout-analysis", - author="HURIDOCS", - description="This tool is for PDF document layout analysis", - install_requires=requirements, - setup_requires=requirements, - dependency_links=dependency_links, -)