-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·80 lines (72 loc) · 2.87 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
72
73
74
75
76
77
78
79
80
#!/usr/bin/env python
# -*- mode: python; coding: utf-8; -*-
##################################################################
# Libraries
from setuptools import setup
from os import path, walk
import codecs
import glob
##################################################################
# Variables and Constants
ENCODING = "utf-8"
PWD = path.abspath(path.dirname(__file__))
LONG_DESCRIPTION = ""
with codecs.open(path.join(PWD, "README.rst"), encoding=ENCODING) as ifile:
LONG_DESCRIPTION = ifile.read()
INSTALL_REQUIRES = []
with codecs.open(path.join(PWD, "requirements.txt"),
encoding=ENCODING) as ifile:
for iline in ifile:
iline = iline.strip()
if iline:
INSTALL_REQUIRES.append(iline)
TESTS_REQUIRE = []
with codecs.open(path.join(PWD, "test-requirements.txt"),
encoding=ENCODING) as ifile:
for iline in ifile:
iline = iline.strip()
if iline:
TESTS_REQUIRE.append(iline)
DSENSER_DATA = [path.join(path.basename(path.basename(iroot)), ifname)
for iroot, _, ifnames in
walk(path.join(path.dirname(__file__), "dsenser", "data"))
for ifname in ifnames
if not ifname.startswith('.')]
##################################################################
# setup()
setup(
name="dsenser",
version="0.0.3",
description=("sense disambiguation for PDTB-style discourse parsing"),
long_description=LONG_DESCRIPTION,
author="Wladimir Sidorenko (Uladzimir Sidarenka)",
author_email="[email protected]",
license="MIT",
url="https://github.com/WladimirSidorenko/DiscourseSenser",
include_package_data=True,
packages=["dsenser", "dsenser.scorer", "dsenser.wang", "dsenser.lstm",
"dsenser.svd", "dsenser.xgboost", "dsenser.judge"],
package_data={
"dsenser": DSENSER_DATA
},
install_requires=INSTALL_REQUIRES,
setup_requires=["pytest-runner"],
tests_require=TESTS_REQUIRE,
scripts=[path.join("scripts", "pdtb_senser")],
entry_points={"console_scripts":
"pdtb_scorer=dsenser.scorer.scorer:main"},
classifiers=["Development Status :: 2 - Pre-Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: Unix",
"Operating System :: MacOS",
# "Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
# "Programming Language :: Python :: 3",
"Topic :: Text Processing :: Linguistic"],
keywords="discourse disambiguation NLP linguistics"
)