-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
53 lines (45 loc) · 1.74 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
#!/usr/bin/env python
# coding=utf-8
from setuptools import setup
import codecs
# Patch distutils if it can't cope with the
# `classifiers` or `download_url` keywords
from sys import version
if version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None
def get_version(filename):
with open(filename) as f:
for line in f:
if line.startswith('__version__'):
return eval(line.split('=')[-1])
def read(filename):
with codecs.open(filename, 'r', 'utf-8') as f:
return f.read()
setup(
install_requires=['scikit-learn', 'numpy'],
maintainer='Kenneth Lim',
maintainer_email='[email protected]',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Text Processing :: Linguistic'
],
description='An implementation of Monroe et. al\'s Fightin\' Words Analysis',
long_description=read('README.rst'),
download_url='https://github.com/kenlimmj/fightin-words/tarball/' + get_version('fightin-words/fightin-words.py'),
keywords=['nlp', 'fightin words', 'fightin', 'words'],
name='fightin-words',
packages=['fightin-words'],
url='https://github.com/kenlimmj/fightin-words',
version=get_version('fightin-words/fightin-words.py')
)