-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
80 lines (70 loc) · 2.25 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
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
import os
from setuptools import setup, find_packages
__all__ = ["setup"]
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ""
def get_readme():
"""Return the README file contents. Supports text,rst, and markdown"""
for name in ("README", "README.rst", "README.md"):
if os.path.exists(name):
return read_file(name)
return ""
def install_requires(module=None):
if module:
filepath = f"./live_agent/modules/{module}/"
else:
filepath = ""
requirements = read_file(f"{filepath}requirements.txt")
return requirements
setup(
name="live_agent",
version="0.11.1",
description="A framework for implementing agents which interact with the Intelie LIVE platform",
long_description=get_readme(),
long_description_content_type="text/markdown",
packages=find_packages(),
include_package_data=True,
scripts=[
"live_agent/scripts/agent-control",
"live_agent/scripts/create-agent",
"live_agent/scripts/add-agent-module",
"live_agent/scripts/validate-settings",
],
url="https://github.com/intelie/live-agent",
author="Vitor Mazzi",
author_email="vitor.mazzi@intelie.com.br",
install_requires=[
"live-client>=0.8.1",
"eliot>=1.12.0",
"eliot-tree>=19.0.0",
"setproctitle>=1.1.10",
"dill>=0.3.1.1",
"requests>=2,<3",
],
extras_require={
"chatbot": [
"ChatterBot==1.0.5",
"chatterbot-corpus==1.2.0",
"Jinja2==2.11.3",
"pytz>=2019.2",
"python-dateutil>=2.7,<2.8",
"PyYAML>=3.12,<4.0",
],
"las": ["lasio==0.23", "pandas==0.24.2", "scikit-learn>=0.20"],
},
zip_safe=False,
python_requires=">=3.7",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX :: Linux",
"Development Status :: 4 - Beta",
"Topic :: Software Development :: Libraries :: Application Frameworks",
],
)