forked from Maluuba/nlg-eval
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·39 lines (32 loc) · 1.31 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
#!/usr/bin/env python
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
import sys
from setuptools import find_packages
from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
try:
from pip._internal.req import parse_requirements
except:
from pip.req import parse_requirements
if __name__ == '__main__':
requirements_path = 'requirements.txt'
if sys.version_info[0] < 3:
requirements_path = 'requirements_py2.txt'
install_reqs = parse_requirements(requirements_path, session=False)
try:
reqs = [str(ir.req) for ir in install_reqs]
except:
reqs = [str(ir.requirement) for ir in install_reqs]
setup(name='nlg-eval',
version='2.3',
description="Wrapper for multiple NLG evaluation methods and metrics.",
author='Shikhar Sharma, Hannes Schulz, Justin Harris',
url='https://github.com/Maluuba/nlg-eval',
packages=find_packages(),
include_package_data=True,
scripts=['bin/nlg-eval'],
install_requires=reqs,
)