2023-01-16 16:53:57 -05:00
|
|
|
import platform
|
2022-05-30 21:03:13 -04:00
|
|
|
import setuptools
|
|
|
|
|
|
|
|
|
|
with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
|
|
long_description = fh.read()
|
|
|
|
|
|
2023-01-28 10:23:00 -05:00
|
|
|
# Build extras_requires based on platform
|
|
|
|
|
def build_additional_requires():
|
2023-01-17 18:31:45 -05:00
|
|
|
py_version = platform.python_version()[0:3].replace('.', "")
|
|
|
|
|
if platform.system() == "Linux" and platform.machine() == "x86_64":
|
2023-01-28 10:23:00 -05:00
|
|
|
additional_requires=[
|
2023-01-17 18:31:45 -05:00
|
|
|
f"speexdsp_ns @ https://github.com/dscripka/openWakeWord/releases/download/v0.1.1/speexdsp_ns-0.1.2-cp{py_version}-cp{py_version}-linux_x86_64.whl",
|
|
|
|
|
]
|
2023-01-17 18:51:10 -05:00
|
|
|
elif platform.system() == "Linux" and platform.machine() == "aarch64":
|
2023-01-28 10:23:00 -05:00
|
|
|
additional_requires=[
|
2023-01-17 18:31:45 -05:00
|
|
|
f"speexdsp_ns @ https://github.com/dscripka/openWakeWord/releases/download/v0.1.1/speexdsp_ns-0.1.2-cp{py_version}-cp{py_version}-linux_aarch64.whl",
|
|
|
|
|
],
|
2023-01-17 18:51:10 -05:00
|
|
|
elif platform.system() == "Windows" and platform.machine() == "x86_64":
|
2023-01-28 10:23:00 -05:00
|
|
|
additional_requires=[
|
|
|
|
|
'PyAudioWPatch'
|
2023-01-17 18:31:45 -05:00
|
|
|
]
|
2023-01-17 18:35:48 -05:00
|
|
|
else:
|
2023-01-28 10:23:00 -05:00
|
|
|
additional_requires = []
|
2023-01-17 18:35:48 -05:00
|
|
|
|
2023-01-28 10:23:00 -05:00
|
|
|
return additional_requires
|
2023-01-16 16:53:57 -05:00
|
|
|
|
2022-05-30 21:03:13 -04:00
|
|
|
setuptools.setup(
|
|
|
|
|
name="openwakeword",
|
2023-09-02 11:37:00 -04:00
|
|
|
version="0.5.1",
|
2023-06-10 09:11:55 -04:00
|
|
|
install_requires=[
|
|
|
|
|
'onnxruntime>=1.10.0,<2',
|
2023-06-10 11:41:01 -04:00
|
|
|
'tflite-runtime>=2.8.0,<3; platform_system == "Linux"',
|
2023-06-10 09:11:55 -04:00
|
|
|
'tqdm>=4.0,<5.0',
|
|
|
|
|
'scipy>=1.3,<2',
|
2023-10-08 21:03:21 -04:00
|
|
|
'scikit-learn>=1,<2',
|
|
|
|
|
'requests>=2.0,<3',
|
2023-06-10 09:11:55 -04:00
|
|
|
],
|
2022-10-30 17:00:43 -04:00
|
|
|
extras_require={
|
|
|
|
|
'test': [
|
|
|
|
|
'pytest>=7.2.0,<8',
|
|
|
|
|
'pytest-cov>=2.10.1,<3',
|
|
|
|
|
'pytest-flake8>=1.1.1,<2',
|
2022-10-30 17:11:47 -04:00
|
|
|
'flake8>=4.0,<4.1',
|
2023-09-03 17:33:43 -04:00
|
|
|
'pytest-mypy>=0.10.0,<1',
|
|
|
|
|
'types-requests',
|
2023-09-04 20:44:45 -04:00
|
|
|
'types-PyYAML',
|
2023-08-24 11:02:29 -04:00
|
|
|
'mock>=5.1,<6',
|
2023-10-09 20:22:32 -04:00
|
|
|
'types-mock>=5.1,<6',
|
|
|
|
|
'types-requests>=2.0,<3'
|
2023-01-28 10:45:36 -05:00
|
|
|
],
|
2022-10-30 17:00:43 -04:00
|
|
|
'full': [
|
|
|
|
|
'mutagen>=1.46.0,<2',
|
2023-09-03 20:22:28 -04:00
|
|
|
'torch>=1.13.1,<2',
|
|
|
|
|
'torchaudio>=0.13.1,<1',
|
|
|
|
|
'torchinfo>=1.8.0,<2',
|
2023-09-04 19:11:17 -04:00
|
|
|
'torchmetrics>=0.11.4,<1',
|
2023-09-03 20:22:28 -04:00
|
|
|
'speechbrain>=0.5.14,<1',
|
|
|
|
|
'audiomentations>=0.30.0,<1',
|
|
|
|
|
'torch-audiomentations>=0.11.0,<1',
|
|
|
|
|
'tqdm>=4.64.0,<5',
|
2022-10-30 17:00:43 -04:00
|
|
|
'pytest>=7.2.0,<8',
|
|
|
|
|
'pytest-cov>=2.10.1,<3',
|
|
|
|
|
'pytest-flake8>=1.1.1,<2',
|
|
|
|
|
'pytest-mypy>=0.10.0,<1',
|
2023-09-03 20:22:28 -04:00
|
|
|
'acoustics>=0.2.6,<1',
|
2023-09-04 13:57:49 -04:00
|
|
|
'pyyaml>=6.0,<7',
|
|
|
|
|
'tensorflow==2.8.1',
|
|
|
|
|
'tensorflow_probability==0.16.0',
|
2023-09-04 19:11:17 -04:00
|
|
|
'protobuf>=3.20,<4',
|
2023-09-04 13:57:49 -04:00
|
|
|
'onnx_tf==1.10.0',
|
2023-09-04 19:11:17 -04:00
|
|
|
'onnx==1.14.0',
|
|
|
|
|
'pronouncing>=0.2.0,<1',
|
2023-10-07 12:06:06 -04:00
|
|
|
'datasets>=2.14.4,<3',
|
|
|
|
|
'deep-phonemizer==0.0.19'
|
2023-01-28 10:45:36 -05:00
|
|
|
]
|
2022-10-30 17:00:43 -04:00
|
|
|
},
|
2022-05-30 21:03:13 -04:00
|
|
|
author="David Scripka",
|
|
|
|
|
author_email="david.scripka@gmail.com",
|
2022-10-09 23:45:09 -04:00
|
|
|
description="An open-source audio wake word (or phrase) detection framework with a focus on performance and simplicity",
|
2022-05-30 21:03:13 -04:00
|
|
|
long_description=long_description,
|
|
|
|
|
long_description_content_type="text/markdown",
|
2022-12-30 12:01:17 -05:00
|
|
|
url="https://pypi.org/project/openwakeword",
|
2022-05-30 21:03:13 -04:00
|
|
|
project_urls={
|
2022-12-30 12:01:17 -05:00
|
|
|
"Bug Tracker": "https://pypi.org/project/openwakeword/issues",
|
2022-05-30 21:03:13 -04:00
|
|
|
},
|
|
|
|
|
classifiers=[
|
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
|
"License :: OSI Approved :: Apache 2.0 License",
|
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
|
],
|
|
|
|
|
packages=setuptools.find_packages(),
|
2022-12-29 12:58:23 -05:00
|
|
|
include_package_data=True,
|
2023-01-28 10:23:00 -05:00
|
|
|
python_requires=">=3.7",
|
2022-05-30 21:03:13 -04:00
|
|
|
)
|