44with open ("README.md" , "r" , encoding = "utf-8" ) as fh :
55 long_description = fh .read ()
66
7+
78# Build extras_requires based on platform
89def build_additional_requires ():
9- py_version = platform .python_version ()[0 :3 ].replace ('.' , "" )
10- if platform .system () == "Linux" and platform .machine () == "x86_64" :
11- additional_requires = [
12- 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" ,
13- ]
14- elif platform .system () == "Linux" and platform .machine () == "aarch64" :
15- additional_requires = [
16- 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" ,
17- ],
18- elif platform .system () == "Windows" and platform .machine () == "x86_64" :
19- additional_requires = [
10+ # py_version = platform.python_version()[0:3].replace('.', "")
11+ # if platform.system() == "Linux" and platform.machine() == "x86_64":
12+ # additional_requires=[
13+ # 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",
14+ # ]
15+ # elif platform.system() == "Linux" and platform.machine() == "aarch64":
16+ # additional_requires=[
17+ # 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",
18+ # ],
19+ if platform .system () == "Windows" and platform .machine () == "x86_64" :
20+ additional_requires = [
2021 'PyAudioWPatch'
2122 ]
2223 else :
2324 additional_requires = []
2425
2526 return additional_requires
2627
28+
2729setuptools .setup (
2830 name = "openwakeword" ,
2931 version = "0.6.0" ,
3032 install_requires = [
3133 'onnxruntime>=1.10.0,<2' ,
32- 'tflite-runtime>=2.8.0,<3; platform_system == "Linux"' ,
34+ 'ai-edge-litert>=2.0.2,<3; platform_system == "Linux" or platform_system == "Darwin"' ,
35+ 'speexdsp-ns>=0.1.2,<1; platform_system == "Linux"' ,
3336 'tqdm>=4.0,<5.0' ,
3437 'scipy>=1.3,<2' ,
3538 'scikit-learn>=1,<2' ,
@@ -40,7 +43,7 @@ def build_additional_requires():
4043 'pytest>=7.2.0,<8' ,
4144 'pytest-cov>=2.10.1,<3' ,
4245 'pytest-flake8>=1.1.1,<2' ,
43- 'flake8>=4 .0,<4 .1' ,
46+ 'flake8>=5 .0,<7 .1' ,
4447 'pytest-mypy>=0.10.0,<1' ,
4548 'types-requests' ,
4649 'types-PyYAML' ,
@@ -90,5 +93,5 @@ def build_additional_requires():
9093 ],
9194 packages = setuptools .find_packages (),
9295 include_package_data = True ,
93- python_requires = ">=3.7 " ,
96+ python_requires = ">=3.10 " ,
9497)
0 commit comments