forked from pltrdy/rouge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (38 loc) · 1.21 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
import os
import re
from setuptools import setup, find_packages
def get_version():
path = os.path.join(os.path.dirname(__file__), 'rouge', '__init__.py')
with open(path, 'r') as f:
content = f.read()
m = re.search(r'__version__\s*=\s*"(.+)"', content)
assert m is not None
return m.group(1)
version = get_version()
setup(
name="rouge",
version=version,
description="Full Python ROUGE Score Implementation (not a wrapper)",
url="http://github.com/pltrdy/rouge",
download_url="https://github.com/pltrdy/rouge/archive/%s.tar.gz" % version,
author="pltrdy",
author_email="[email protected]",
keywords=["NL", "CL", "natural language processing",
"computational linguistics", "summarization"],
packages=find_packages(),
classifiers=[
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Topic :: Text Processing :: Linguistic"
],
license="LICENCE.txt",
long_description=open("README.md").read(),
test_suite="nose.collector",
tests_require=['nose'],
install_requires=['six'],
entry_points={
'console_scripts': [
'rouge=bin.rouge_cmd:main'
]
}
)