-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
25 lines (19 loc) · 787 Bytes
/
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
import setuptools
# version.py defines the VERSION variable.
# We use exec here so we don't import sacrerouge whilst setting up.
VERSION = {}
with open('sacrerouge/version.py', 'r') as version_file:
exec(version_file.read(), VERSION)
# Load requirements so we can keep them in a single file
requirements = open('requirements.txt', 'r').read().splitlines()
setuptools.setup(
name='sacrerouge',
version=VERSION['VERSION'],
author='Daniel Deutsch',
description='An open-source library for summarization evaluation metrics',
url='https://github.com/danieldeutsch/sacrerouge',
packages=setuptools.find_packages(),
entry_points={'console_scripts': ['sacrerouge=sacrerouge.__main__:main']},
python_requires='>=3.6',
install_requires=requirements,
)