forked from PDFMathTranslate/PDFMathTranslate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (44 loc) · 1.11 KB
/
setup.py
File metadata and controls
46 lines (44 loc) · 1.11 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
from pathlib import Path
from pdf2zh import __version__, __author__
from setuptools import setup
root_dir = Path(__file__).parent
with open(root_dir / "README.md", encoding='utf-8') as f:
readme = f.read()
setup(
name="pdf2zh",
long_description=readme,
long_description_content_type="text/markdown",
description="Latex PDF Translator",
license="AGPLv3",
version=__version__,
author=__author__,
author_email="byaidux@gmail.com",
url="https://github.com/Byaidu/PDFMathTranslate",
packages=["pdf2zh"],
install_requires=[
"charset-normalizer",
"cryptography",
"requests",
"pymupdf",
"tqdm",
"tenacity",
"doclayout-yolo",
"numpy",
"ollama",
"deepl<1.19.1",
"openai",
"azure-ai-translation-text<=1.0.1",
"gradio",
"huggingface_hub",
"torch",
],
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
entry_points={
'console_scripts': [
'pdf2zh=pdf2zh.pdf2zh:main',
]
},
)