-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsetup.py
More file actions
102 lines (89 loc) · 2.89 KB
/
setup.py
File metadata and controls
102 lines (89 loc) · 2.89 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# -*- coding: utf8 -*-
#
# This file were created by Python Boilerplate. Use Python Boilerplate to start
# simple, usable and best-practices compliant Python projects.
#
# Learn more about it at: http://github.com/fabiommendes/python-boilerplate/
#
import setuptools
import re
import os
from os import path
__version__ = '1.9.1'
# Save __version__ and author to __meta__.py
dirname = os.path.dirname(__file__)
path_analytics_toolkit = os.path.join(dirname, 'src', 'conversation_analytics_toolkit', '__meta__.py')
data = '''# Automatically created. Please do not edit.
__version__ = u'%s'
__author__ = u'Avi Yaeli'
''' % __version__
with open(path_analytics_toolkit, 'wb') as F:
F.write(data.encode())
# Convert README.md to README.rst for pypi
try:
from pypandoc import convert_file
def read_md(f):
return re.sub(r'\nContributor List(.*)', '', convert_file(f, 'rst'), flags=re.S)
except:
print('warning: pypandoc module not found, '
'could not convert Markdown to RST')
def read_md(f):
return open(f, 'rb').read().decode(encoding='utf-8')
# read contents of README file
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as file:
readme_file = file.read()
setuptools.setup(
# Basic info
name='conversation_analytics_toolkit',
author='IBM Watson',
author_email='watdevex@us.ibm.com',
maintainer='Avi Yaeli',
maintainer_email='aviy@il.ibm.com',
url='https://github.com/watson-developer-cloud/assistant-dialog-flow-analysis',
description='Dialog Flow Analysis Tool for Watson Assistant',
license='Apache 2.0',
long_description=readme_file,
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules'
],
# Packages and depencies
package_dir={'': 'src'},
packages=setuptools.find_packages('src'),
install_requires=[
#'pandas>=0.24.0,<1.0.0',
'pandas>=1.1.0',
'nltk>=3.4.0',
'textblob>=0.15.3',
# 'scipy>=1.3.0,<1.5.3',
'scikit-learn>=0.21.3',
'tqdm>=4.31.1',
'ipywidgets>=7.4.2',
'ibm-watson>=4.3.0',
'plotly>=4.5.0',
'requests>=2.18.4'
],
# extras_require={
# 'dev': [
# ]
# },
# Data files
package_data={
'conversation_analytics_toolkit': [
#'images/*.*',
'*.min.css',
'*.min.js'
],
},
zip_safe=False,
platforms='any',
)