-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (38 loc) · 1.31 KB
/
setup.py
File metadata and controls
44 lines (38 loc) · 1.31 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
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
def read_text_file(path):
with open(path, encoding="utf-8") as f:
return f.read().strip()
here = os.path.abspath(os.path.dirname(__file__))
version = read_text_file(os.path.join(here, "mathtranslate", "version.txt"))
author = read_text_file(os.path.join(here, "mathtranslate", "author.txt"))
setuptools.setup(
name="mathtranslate",
version=version,
author=author,
author_email="susyustc@gmail.com",
description="Translate math-heavy papers",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/SUSYUSTC/MathTranslate",
packages=setuptools.find_packages(),
include_package_data=True,
install_requires=["mtranslate",
"charset-normalizer",
"requests",
"regex",
"tqdm",
"appdata"
],
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
entry_points={
'console_scripts': [
'translate_tex=mathtranslate.translate_tex:main',
'translate_arxiv=mathtranslate.translate_arxiv:main',
]
},
)