-
Notifications
You must be signed in to change notification settings - Fork 41
/
setup.py
36 lines (28 loc) · 1.09 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
from setuptools import setup, find_packages
import re
def find_version():
with open('_version.py', encoding='utf8') as f:
contents = f.read()
match_result = re.search(r'^__version__ *= *\'(.*?)\'', contents, re.MULTILINE)
if match_result:
return match_result.group(1)
raise Exception('Unable to find version string')
def get_requirements():
with open('requirements.txt', encoding='utf8') as f:
requirements = f.read().splitlines()
return requirements
VERSION = find_version()
REQUIREMENTS = get_requirements()
setup(
name='assistant_skill_analysis',
version=VERSION,
author='Haode Qi, Navneet Rao, Ming Tan, Yang Yu, Panos Karagiannis and Ladislav Kunc',
author_email='Haode.Qi@ibm.com, Cheng.qian@ibm.com, lada@ibm.com',
description='Dialog/Action Skill Analysis Tool for Watson Assistant',
url='https://github.com/watson-developer-cloud/assistant-skill-analysis',
license='Apache License 2.0',
install_requires=REQUIREMENTS,
packages=find_packages(exclude=['tests']),
test_suite='tests',
include_package_data=True,
)