forked from bigdata-ustc/EduNLP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
82 lines (75 loc) · 1.88 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import logging
from setuptools import setup, find_packages
tutor_deps = [
"pillow",
"tqdm",
"ipython"
]
test_deps = [
'pytest>=4',
'pytest-cov>=2.6.0',
'pytest-flake8',
'flake8<5.0.0'
]
docs_deps = [
'sphinx',
'sphinx_rtd_theme',
'sphinx_toggleprompt',
'sphinx-gallery>=0.6',
'nbsphinx',
'm2r2'
]
dev_deps = ["requests"] + docs_deps + test_deps
try:
import torch
ml_pytorch_deps = []
except ModuleNotFoundError:
import sys
if 5 <= sys.version_info[1]:
ml_pytorch_deps = ["torch<=1.12.1"]
else:
ml_pytorch_deps = []
logging.warning("Current python version %s is not supported by pytorch", str(sys.version_info[:2]))
vec_deps = [
'gensim',
'transformers<4.29.0',
'torchvision',
'datasets'] + ml_pytorch_deps
setup(
name='EduNLP',
version='0.0.9',
extras_require={
'test': test_deps,
'doc': docs_deps,
'tutor': tutor_deps,
'dev': dev_deps,
'vec': vec_deps,
'full': vec_deps + tutor_deps
},
packages=find_packages(),
include_package_data=True,
install_requires=[
'networkx',
'numpy>=1.17.0',
'jieba',
'js2py',
'EduData>=0.0.16',
'PyBaize>=0.0.3'
], # And any other dependencies foo needs
entry_points={
"console_scripts": [
"edunlp = EduNLP.main:cli",
],
},
classifiers=[
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)