-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
48 lines (45 loc) · 1.55 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
from setuptools import setup
from setuptools.command.install import install
import subprocess
import sys
with open('README.md') as f:
long_description = f.read()
class CustomInstallCommand(install):
def run(self):
install.run(self)
subprocess.check_call([sys.executable, "-m", "spacy", "download", "en_core_web_sm"])
# def run(self):
# install.run(self)
# if 'en_core_web_sm' not in spacy.util.get_installed_models():
# subprocess.check_call([sys.executable, "-m", "spacy", "download", "en_core_web_sm"])
setup(
name='sentibank',
packages=['sentibank'],
package_data={'sentibank': ['dict_arXiv/*.csv', 'dict_arXiv/*.pickle', 'dict_arXiv/*.json']},
version='0.2.3',
license='CC BY-NC-SA 4.0',
description='Unifying sentiment lexicons and dictionaries into an accessible open python package',
long_description=long_description,
long_description_content_type='text/markdown',
author='Nick S.H Oh',
author_email='research@socius.org',
url='https://github.com/socius-org/sentibank',
download_url='https://github.com/socius-org/sentibank/archive/refs/tags/0.2.3.tar.gz',
keywords=[
'Sentiment Analysis',
'Sentiment Dictionary',
'Sentiment Lexicon',
'Semantic Orientation'
],
install_requires=[
'spacy == 3.7.2',
'spacymoji == 3.1.0',
'rich == 13.4.2',
'pandas == 2.1.4',
'pyenchant == 3.2.2'
],
include_package_data=True,
cmdclass={
'install': CustomInstallCommand,
}
)