forked from watson-developer-cloud/assistant-skill-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (29 loc) · 1.06 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
from setuptools import setup, find_packages
import re
import unittest
def find_version():
with open('_version.py', encoding='utf8') as f:
contents = f.read()
print(contents)
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='watson-assistant-skill-analysis-tools',
version=VERSION,
description='Dialog Skill Analysis Tool for Watson Assistant',
url='https://github.com/watson-developer-cloud/assistant-dialog-skill-analysis',
author='Navneet Rao, Haode Qi, Yang Yu and Ming Tan',
author_email='[email protected]',
test_suite='src.test.python',
packages=find_packages(exclude=["src/test"]),
include_package_data=True,
install_requires=REQUIREMENTS,
)