-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (54 loc) · 2 KB
/
setup.py
File metadata and controls
58 lines (54 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python3
"""
Setup script for the PDF OCR Pipeline.
"""
from setuptools import setup, find_packages
# Read version from package __init__.py
with open("src/pdf_ocr_pipeline/__init__.py", "r", encoding="utf-8") as f:
for line in f:
if line.startswith("__version__"):
version = line.split("=")[1].strip().strip('"').strip("'")
break
# Read long description from README.md
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="pdf-ocr-pipeline",
version=version,
author="PDF OCR Pipeline Contributors",
author_email="your.email@example.com",
description="A tool to extract text from PDF documents using OCR",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/yourusername/pdf-ocr-pipeline",
project_urls={
"Bug Tracker": "https://github.com/yourusername/pdf-ocr-pipeline/issues",
"Documentation": "https://github.com/yourusername/pdf-ocr-pipeline#readme",
"Source Code": "https://github.com/yourusername/pdf-ocr-pipeline",
},
package_dir={"": "src"},
packages=find_packages(where="src"),
python_requires=">=3.8",
install_requires=[
"openai>=1.75.0", # Required for GPT-4o integration
],
entry_points={
"console_scripts": [
"pdf-ocr=pdf_ocr_pipeline.cli:main",
"pdf-ocr-summarize=pdf_ocr_pipeline.summarize:main",
],
},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Text Processing :: Linguistic",
"Topic :: Utilities",
"Operating System :: OS Independent",
],
)