-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
52 lines (45 loc) · 1.36 KB
/
setup.py
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
import os
import setuptools
from doctree import __version__
readme_filepath = os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md")
with open(readme_filepath, "r") as fh:
long_description = fh.read()
extras_require_packages = {
"dev": ["pytest", "coverage", "black", "flake8"],
"demo": [
"jinja2",
"uvicorn",
"fastapi",
"python-multipart",
],
}
extras_require_packages["all"] = (
extras_require_packages["dev"] + extras_require_packages["demo"]
)
setuptools.setup(
name="pytorch-doctree",
version=__version__,
author="Tong Zhu",
author_email="[email protected]",
description="A toolkit for text segment concatenation and doc tree construction",
long_description_content_type="text/markdown",
long_description=long_description,
packages=setuptools.find_packages(
exclude=["tests", "tests.*", "docs", "docs.*", "data"]
),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
install_requires=[
"omegaconf>=2.0.6",
"tqdm>=4.61.1",
"pytorch-rex==0.0.15",
"lxml>=4.6.3",
"transformers>=4.12.5",
"jieba>=0.42.1",
],
extras_require=extras_require_packages,
)