-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
58 lines (50 loc) · 1.59 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys
version = '0.43'
name = 'knp-utils'
short_description = 'Wrapper scripts for Japanese parser `KNP`'
author = 'Kensuke Mitsuzawa'
author_email = '[email protected]'
url = 'https://github.com/Kensuke-Mitsuzawa/knp-utils-py'
license = 'MIT'
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Natural Language :: Japanese",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5"
]
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
install_requires = ['joblib', 'six', 'pexpect', 'more_itertools', 'jaconv']
dependency_links = []
if sys.version_info >= (3, 0, 0):
if sys.version_info <= (3, 5, 0):
install_requires.append('typing')
elif sys.version_info > (3, 5, 0):
pass
elif sys.version_info <= (2, 9, 9):
install_requires.append('typing')
else:
raise NotImplementedError()
setup(
name=name,
version=version,
description=short_description,
long_description=long_description,
author=author,
author_email=author_email,
install_requires=install_requires,
dependency_links=dependency_links,
url=url,
license=license,
packages=find_packages(exclude='tests'),
classifiers=classifiers,
test_suite='tests' #added
)