-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
49 lines (46 loc) · 1.31 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
from setuptools import setup, find_packages
import os
from setuptools.command.install import install
def install_spacy_model():
os.system('python -m spacy download en_core_web_sm')
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
install.run(self)
install_spacy_model()
setup(
name="textmonger",
version="0.2.3",
author="Sahil Garje",
author_email="[email protected]",
description="A text analysis tool with readability, power word analysis, and NER visualization.",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/oceanthunder/TheTextMonger",
packages=find_packages(),
install_requires=[
"spacy",
"pyfiglet",
"textstat",
"pytest",
"tabulate",
"textblob"
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
package_data={
'textmonger': ['power_words.csv'],
},
entry_points={
'console_scripts': [
'textmonger=textmonger.project:main',
],
},
cmdclass={
'install': PostInstallCommand,
},
)