-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·59 lines (55 loc) · 1.73 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
import os
import sys
from distutils.core import setup
if sys.version_info[0] >= 3:
from distutils.command.build_py import build_py_2to3 as build_py
from distutils.command.build_scripts import build_scripts_2to3 as build_scripts
else:
from distutils.command.build_py import build_py
from distutils.command.build_scripts import build_scripts
PACKAGE = "corenlp"
NAME = "corenlp-python"
DESCRIPTION = "A Stanford Core NLP wrapper"
AUTHOR = "Hiroyoshi Komatsu"
AUTHOR_EMAIL = "[email protected]"
URL = "https://bitbucket.org/torotoki/corenlp-python"
VERSION = "3.4.1-1"
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=read("README.md"),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
include_package_data=True,
packages=['corenlp'],
package_dir = {'corenlp': 'corenlp'},
package_data = {
"corenlp": ["default.properties"]
},
cmdclass = {'build_py': build_py,
'build_scripts': build_scripts
},
install_requires=[
"pexpect >= 2.4",
"xmltodict >= 0.4.6",
],
# data_files = [
# ('corenlp', ["default.properties"]),
# ],
# package_data=find_package_data(
# PACKAGE,
# only_in_packages=False
# )
classifiers=[
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Programming Language :: Python",
],
)