-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathsetup.py
49 lines (43 loc) · 1.36 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
import os
from setuptools import setup
requires = ["plac>=0.9.6", "sacrebleu>=1.3.2"]
def get_lang_data():
static_files = []
root = "sumeval/metrics/lang/data/"
for _dir in os.listdir(root):
lang_dir = os.path.join(root, _dir)
if not os.path.isdir(lang_dir):
continue
for content in os.listdir(lang_dir):
f = os.path.join(lang_dir, content)
if os.path.isfile(f) and not content.startswith("."):
static_files.append(os.path.join("data/" + _dir, content))
return static_files
setup(
name="sumeval",
description="Well tested evaluation framework for Text summarization",
url="https://github.com/chakki-works/sumeval",
author="icoxfog417",
author_email="[email protected]",
license="Apache License 2.0",
keywords="text summarization machine learning",
use_scm_version=True,
setup_requires=["setuptools_scm"],
packages=[
"sumeval",
"sumeval.cli",
"sumeval.metrics",
"sumeval.metrics.lang",
],
package_data={
"sumeval.metrics.lang": get_lang_data()
},
entry_points={
"console_scripts": ["sumeval=sumeval.cli.sum_eval:entry_point"],
},
install_requires=requires,
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.6"
],
)