-
Notifications
You must be signed in to change notification settings - Fork 126
/
setup.py
37 lines (32 loc) · 1.1 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
from pathlib import Path
import pkg_resources
from setuptools import find_packages, setup
def read_version(fname="moonshine/version.py"):
exec(compile(open(fname, encoding="utf-8").read(), fname, "exec"))
return locals()["__version__"]
setup(
name="useful-moonshine",
py_modules=["moonshine"],
version=read_version(),
description="Speech recognition for live transcription and voice commands.",
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
readme="README.md",
python_requires=">=3.8",
author="Useful Sensors",
url="https://github.com/usefulesensors/moonshine",
license="MIT",
packages=find_packages(exclude=["tests*"]),
install_requires=[
str(r)
for r in pkg_resources.parse_requirements(
Path(__file__).with_name("requirements.txt").open()
)
],
extras_require={
"tensorflow": ["tensorflow==2.17.0"],
"jax": ["jax==0.4.34", "keras==3.6.0"],
"jax-cuda": ["jax[cuda12]", "keras==3.6.0"],
},
include_package_data=True,
)