-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathsetup.py
72 lines (67 loc) · 1.9 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
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
# Heavy dependencies
heavy_dependencies = [
"torch==1.11.0",
"transformers==4.47.1",
"pytorch-transformers==1.2.0",
"tf-estimator-nightly==2.8.0.dev2021122109",
"supar==1.1.2",
]
# Base dependencies for lightweight installation
base_dependencies = [
"bpemb==0.3.6",
"nltk==3.9.1",
"folium==0.19.3",
"h5py==3.12.1",
"Deprecated==1.2.6",
"hyperopt==0.2.7",
"pyconll==3.2.0",
"segtok>=1.5.7",
"tabulate==0.9.0",
"gensim==4.3.3",
"conllu==6.0.0",
"gdown==5.2.0",
"py7zr==0.22.0",
"html2text==2024.2.26",
"scikit-learn==1.6.0",
"numpy==1.26.4",
"protobuf==5.29.2",
"requests==2.32.3",
"tqdm==4.67.1",
"langid==1.1.6",
"filelock==3.16.1",
"tokenizers==0.21.0",
"regex==2024.11.6",
"packaging==24.2",
"sentencepiece==0.2.0",
"sacremoses==0.1.1",
"emoji==2.10.0",
"pandas==2.2.3",
]
# Combine base and heavy dependencies for the default installation
default_dependencies = base_dependencies + heavy_dependencies
setuptools.setup(
name="dadmatools",
version="2.1.8",
author="Dadmatech AI Company",
author_email="[email protected]",
description="DadmaTools is a Persian NLP toolkit",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Dadmatech/DadmaTools",
packages=setuptools.find_packages(),
install_requires=default_dependencies, # Default to all dependencies
extras_require={
"light": base_dependencies, # Lightweight installation option
},
dependency_links=[
"git+https://github.com/kpu/kenlm@master#egg=kenlm",
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
)