|
@@ -1,84 +1,61 @@
|
|
|
-"""A setuptools based setup module.
|
|
|
-
|
|
|
-See:
|
|
|
-https://packaging.python.org/en/latest/distributing.html
|
|
|
-https://github.com/pypa/sampleproject
|
|
|
-"""
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+import re
|
|
|
from setuptools import setup, find_packages
|
|
|
-
|
|
|
from codecs import open
|
|
|
from os import path
|
|
|
|
|
|
-here = path.abspath(path.dirname(__file__))
|
|
|
+basedir = path.abspath(path.dirname(__file__))
|
|
|
|
|
|
|
|
|
-with open(path.join(here, 'README.md'), encoding='utf-8') as f:
|
|
|
+with open(path.join(basedir, 'README.md'), encoding='utf-8') as f:
|
|
|
long_description = f.read()
|
|
|
|
|
|
-setup(
|
|
|
- name='kalliope',
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- version='0.1.0',
|
|
|
+
|
|
|
+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)
|
|
|
|
|
|
+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='Kalliope developers',
|
|
|
- author_email='kalliope@noreply.github.com',
|
|
|
-
|
|
|
-
|
|
|
+ author='The dream team of Kalliope-project',
|
|
|
+ author_email='kalliope-project@googlegroups.com',
|
|
|
license='MIT',
|
|
|
-
|
|
|
|
|
|
classifiers=[
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
'Development Status :: 3 - Alpha',
|
|
|
-
|
|
|
-
|
|
|
+ 'Environment :: Console',
|
|
|
'Intended Audience :: Developers',
|
|
|
- 'Topic :: Software Development :: Build Tools',
|
|
|
-
|
|
|
-
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ 'Operating System :: POSIX :: Linux',
|
|
|
'Programming Language :: Python :: 2',
|
|
|
- 'Programming Language :: Python :: 2.6',
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
- 'Programming Language :: Python :: 3',
|
|
|
- 'Programming Language :: Python :: 3.3',
|
|
|
- 'Programming Language :: Python :: 3.4',
|
|
|
- 'Programming Language :: Python :: 3.5',
|
|
|
+ 'Topic :: Home Automation',
|
|
|
+ 'Topic :: Multimedia :: Sound/Audio :: Speech',
|
|
|
+ 'Topic :: Multimedia :: Sound/Audio :: Sound Synthesis',
|
|
|
+ 'Topic :: Scientific/Engineering :: Artificial Intelligence'
|
|
|
],
|
|
|
+ keywords='assistant bot TTS STT',
|
|
|
|
|
|
-
|
|
|
- keywords='voice control assistant',
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
install_requires=[
|
|
|
'SpeechRecognition==3.4.6',
|
|
|
'markupsafe==0.23',
|
|
@@ -99,18 +76,8 @@ setup(
|
|
|
'wikipedia==1.4.0',
|
|
|
],
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- extras_require={
|
|
|
- 'dev': ['check-manifest'],
|
|
|
- 'test': ['coverage'],
|
|
|
- },
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
package_data={
|
|
|
'kalliope': [
|
|
|
'brains/*.yml',
|
|
@@ -123,15 +90,7 @@ setup(
|
|
|
],
|
|
|
},
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
entry_points={
|
|
|
'console_scripts': [
|
|
|
'kalliope=kalliope:main',
|