forked from jaijuneja/PyTLDR
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
71 lines (65 loc) · 1.97 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# -*- coding: utf-8 -*-
import ez_setup
ez_setup.use_setuptools(version='0.7')
from setuptools import setup
import os
PACKAGE_NAME = 'PyTLDR'
VERSION = '0.1.5'
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 module to perform automatic article summarization.'
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= [
'summarizer', 'summarization', 'natural language processing', 'nlp',
'machine learning', 'data mining', 'latent semantic analysis', 'lsa'
],
url='https://github.com/jaijuneja/PyTLDR',
packages=[
'pytldr',
'pytldr.nlp',
'pytldr.summarize'
],
long_description=long_description,
classifiers=[
'Development Status :: 3 - Alpha',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Text Processing :: Filters',
'Topic :: Text Processing :: Linguistic',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python'
],
install_requires=[
'numpy==1.14.3',
'nltk==3.4',
'scipy==1.1.0',
'scikit-learn==0.20.1',
'networkx==2.2'
],
include_package_data=True,
package_data={PACKAGE_NAME: ['stopwords/*.txt'],
'': ['README.md', 'ez_setup.py']},
tests_require=[
'nose',
'coverage',
],
test_suite='nose.collector'
)