-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
55 lines (44 loc) · 1.53 KB
/
Copy pathsetup.py
File metadata and controls
55 lines (44 loc) · 1.53 KB
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
54
55
#!/usr/bin/env python3
from pathlib import Path
import setuptools
ROOT_DIR = Path(__file__).resolve().parent
def read_long_description() -> str:
return (ROOT_DIR / "README.md").read_text(encoding="utf8")
def read_package_version() -> str:
version_file = ROOT_DIR / "python" / "wfloat" / "_version.py"
namespace = {}
exec(version_file.read_text(encoding="utf8"), namespace)
version = namespace.get("__version__")
if not isinstance(version, str) or not version.strip():
raise RuntimeError(f"Could not determine package version from {version_file}")
return version.strip()
setuptools.setup(
name="wfloat",
version=read_package_version(),
description="High-level Python wrapper for Wfloat TTS",
long_description=read_long_description(),
long_description_content_type="text/markdown",
author="wfloat",
license="MIT",
python_requires=">=3.9",
url="https://github.com/wfloat/wfloat-python",
package_dir={"": "python"},
packages=setuptools.find_packages(where="python"),
install_requires=[
"wfloat-sherpa-onnx==1.12.24",
],
include_package_data=True,
entry_points={
"console_scripts": [
"wfloat=wfloat._cli:main",
]
},
zip_safe=False,
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)