forked from kalliope-project/kalliope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
120 lines (108 loc) · 3.59 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools import setup, find_packages
from codecs import open
from os import path
basedir = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(basedir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# locate our version number
def read_version_py(file_name):
try:
version_string_line = open(file_name, "rt").read()
except EnvironmentError:
return None
else:
version_regex = r"^version_str = ['\"]([^'\"]*)['\"]"
mo = re.search(version_regex, version_string_line, re.M)
if mo:
return mo.group(1)
VERSION_PY_FILENAME = 'kalliope/_version.py'
version = read_version_py(VERSION_PY_FILENAME)
py2_prefix = ''
if sys.version_info[0] < 3:
py2_prefix = 'python2-'
setup(
name='kalliope',
version=version,
description='Kalliope is a modular always-on voice controlled personal assistant designed for home automation.',
long_description=long_description,
url='https://github.com/kalliope-project/kalliope',
author='The dream team of Kalliope-project',
author_email='[email protected]',
license='MIT',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Home Automation',
'Topic :: Multimedia :: Sound/Audio :: Speech',
'Topic :: Multimedia :: Sound/Audio :: Sound Synthesis',
'Topic :: Scientific/Engineering :: Artificial Intelligence'
],
keywords='assistant bot TTS STT jarvis',
# included packages
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
# required libs
install_requires=[
'pyyaml>=3.12',
'six>=1.10.0',
'SpeechRecognition>=3.7.1',
'markupsafe>=1.0',
'pyaudio>=0.2.11',
'pyasn1>=0.2.3',
'ansible>=2.3,<2.4',
py2_prefix + 'pythondialog>=3.4.0',
'jinja2>=2.8,<=2.9.6',
'cffi>=1.9.1',
'ipaddress>=1.0.17',
'flask>=0.12',
'Flask-Restful>=0.3.5',
'flask_cors==3.0.2',
'requests>=2.13',
'httpretty>=0.8.14',
'mock>=2.0.0',
'Flask-Testing>=0.6.2',
'apscheduler>=3.3.1',
'GitPython>=2.1.3',
'packaging>=16.8',
'transitions>=0.4.3',
'sounddevice>=0.3.7',
'SoundFile>=0.9.0',
'pyalsaaudio>=0.8.4',
'RPi.GPIO>=0.6.3',
'sox>=1.3.0',
'paho-mqtt>=1.3.0'
],
# additional files
package_data={
'kalliope': [
'brain.yml',
'settings.yml',
'trigger/snowboy/armv7l/python27/_snowboydetect.so',
'trigger/snowboy/x86_64/python27/_snowboydetect.so',
'trigger/snowboy/x86_64/python34/_snowboydetect.so',
'trigger/snowboy/x86_64/python35/_snowboydetect.so',
'trigger/snowboy/x86_64/python36/_snowboydetect.so',
'trigger/snowboy/resources/*',
'sounds/*'
],
},
# entry point script
entry_points={
'console_scripts': [
'kalliope=kalliope:main',
],
},
)