-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
55 lines (49 loc) · 1.58 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 ez_setup
ez_setup.use_setuptools(version='0.7')
from setuptools import setup
import os
PACKAGE_NAME = 'redditnlp'
VERSION = '0.1.3'
def read(filename):
filepath = os.path.join(os.path.dirname(__file__), filename)
try:
# Convert GitHub markdown to restructured text (needed for upload to PyPI)
from pypandoc import convert
return convert(filepath, 'rst')
except ImportError:
return open(filepath).read()
description = 'A tool to perform natural language processing of reddit content.'
try:
long_description = read('README.md')
except IOError:
long_description = description
setup(
name=PACKAGE_NAME,
version=VERSION,
author='Jai Juneja',
author_email='jai.juneja@gmail.com',
description=description,
license='BSD',
keywords='reddit, natural language processing, machine learning',
url='https://github.com/jaijuneja/reddit-nlp',
packages=[PACKAGE_NAME,],
long_description=long_description,
classifiers=[
'Development Status :: 3 - Alpha',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python'
],
install_requires=[
'praw>=2.1.19',
'nltk>=3.0.0',
'numpy>=1.8.0',
'scikit-learn>=0.15.2',
],
include_package_data=True,
package_data={PACKAGE_NAME: ['words/*.txt'],
'': ['README.md', 'ez_setup.py', 'example.py']},
test_suite='tests'
)