-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
68 lines (61 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
import os
from os import environ
from setuptools import setup, find_packages
from setuptools.command.install import install
from pathlib import Path
version = '0.7.56'
try:
if not os.getenv('RELEASE'):
from datetime import date
today = date.today()
day = today.strftime("b%Y%m%d")
version += day
except Exception:
pass
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
if __name__ == '__main__':
setup_requires = [
'numpy>=1.5.0'
]
install_requires = [
'optuna',
'mantichora>=0.9.5',
'transformers[torch]',
'torcheval',
## pyLDAvis dependencies expressed here to avoid long dep search
'pyLDAvis==3.4.0',
'MarkupSafe>=2.0',
'joblib>=0.8.4',
'future>=0.18.2',
'funcy>=1.16',
'pandas>=2.0.0',
'pyOpenSSL==18.0.0',
'PySocks==1.6.8',
'sacremoses>=0.0.38',
'sentence-splitter==1.4',
'umap-learn[plot]>=0.5.5',
'numba',
'scipy==1.12.0',
'tabulate>=0.8.7',
'torch>=2.1.2',
'torchtext>=0.13.0'
]
setup(name=("tmnt"),
version=version,
author="The MITRE Corporation",
author_email="wellner@mitre.org",
description="Topic modeling neural toolkit",
long_description=long_description,
long_description_content_type='text/markdown',
url="https://github.com/mitre/tmnt.git",
license='Apache',
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent"
],
python_requires='>=3.10',
setup_requires=setup_requires,
install_requires=install_requires,
packages=find_packages())