-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
53 lines (45 loc) · 1.74 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
#!/usr/bin/env python3
from pathlib import Path
import setuptools
from setuptools import setup
this_dir = Path(__file__).parent
requirements = []
requirements_path = this_dir / "requirements.txt"
if requirements_path.is_file():
with open(requirements_path, "r", encoding="utf-8") as requirements_file:
requirements = requirements_file.read().splitlines()
module_name = "wyoming_porcupine1"
module_dir = this_dir / module_name
data_dir = module_dir / "data"
data_files = list(data_dir.rglob("*.pv")) + list(data_dir.rglob("*.ppn"))
version_path = module_dir / "VERSION"
data_files.append(version_path)
version = version_path.read_text(encoding="utf-8").strip()
# -----------------------------------------------------------------------------
setup(
name=module_name,
version=version,
description="Wyoming Server for Porcupine 1",
url="http://github.com/rhasspy/wyoming-porcupine1",
author="Michael Hansen",
author_email="[email protected]",
license="MIT",
packages=setuptools.find_packages(),
package_data={module_name: [str(p.relative_to(module_dir)) for p in data_files]},
install_requires=requirements,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Text Processing :: Linguistic",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
keywords="rhasspy wyoming porcupine wake word",
entry_points={
"console_scripts": ["wyoming-porcupine1 = wyoming_porcupine1.__main__:run"]
},
)