-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
55 lines (49 loc) · 1.38 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
import os
import sys
from setuptools import setup
if sys.version_info[0] != 3:
raise RuntimeError('Unsupported python version "{0}"'.format(
sys.version_info[0]))
def _get_file_content(file_name):
with open(file_name, 'r') as file_handler:
return str(file_handler.read())
def get_long_description():
return _get_file_content('README.md')
#on_rtd = os.environ.get('READTHEDOCS') == 'True'
#if not on_rtd:
# INSTALL_REQUIRES = [
# 'pandas',
# 'requests',
# ]
#else:
# INSTALL_REQUIRES = [
# 'requests',
# ]
INSTALL_REQUIRES = [
'transformers==2.6.0',
'simpletransformers==0.22.1',
'pandas',
'torch',
'torchvision',
'tensorboardX',
'tqdm'
]
setup(
name="smaberta",
version='0.0.2',
author="Vishakh Padmakumar, Zhanna Terechshenko",
description="a wrapper for the huggingface transformer libraries",
long_description=get_long_description(),
long_description_content_type="text/markdown",
keywords='nlp transformers classification text-classification fine-tuning',
url="https://github.com/SMAPPNYU/SMaBERTa.git",
packages=['smaberta'],
py_modules=['smaberta'],
license="MIT",
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
install_requires=INSTALL_REQUIRES
)