-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
65 lines (55 loc) · 1.72 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
from setuptools import setup, find_packages
PROJECT = "bagofwords"
long_description = ''
try:
import subprocess
import pandoc
process = subprocess.Popen(
['which pandoc'],
shell=True,
stdout=subprocess.PIPE,
universal_newlines=True
)
pandoc_path = process.communicate()[0]
pandoc_path = pandoc_path.strip('\n')
pandoc.core.PANDOC_PATH = pandoc_path
doc = pandoc.Document()
doc.markdown = open('README.md').read()
long_description = doc.rst
except:
pass
setup(
name=PROJECT,
version=__import__("bow").__version__,
author = "David Miro <[email protected]>",
author_email = '[email protected]',
description = "The main goal this Python module is to provide functions to apply Text Classification.",
long_description=long_description,
license=open('LICENSE').read(),
url='https://github.com/dmiro/bagofwords',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering :: Information Analysis',
'License :: OSI Approved :: MIT License'
],
py_modules=['bow'],
entry_points = {
'console_scripts': ['bow = bow:main']
},
install_requires=[
'stop-words',
'PyStemmer',
'six'
],
test_suite = 'test',
platforms=['Any'],
zip_safe=False
)