-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
40 lines (30 loc) · 1.02 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
from __future__ import absolute_import
import os
import sys
import io
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
from download_nltk_data import download_data
if sys.version_info[:2] < (2, 7):
raise Exception('This version of gensim needs Python 2.7 or later.')
def readfile(fname):
path = os.path.join(os.path.dirname(__file__), fname)
return io.open(path, encoding='utf8').read()
class Install(_install):
def run(self):
_install.do_egg_install(self)
download_data()
setup(name='text-analysis',
version='0.1',
description='UMN Research on health journals.',
long_description=readfile('README.md'),
url='https://github.com/robert-giaquinto/text-analysis',
author='UMN',
license='MIT',
packages=find_packages(),
test_suite='src.tests',
include_package_data=True,
cmdclass={'install': Install},
install_requires=['nltk'],
setup_requires=['nltk'],
zip_safe=False)