forked from nnsvs/nnsvs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
92 lines (88 loc) · 2.82 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
from importlib.machinery import SourceFileLoader
from os.path import exists
from setuptools import find_packages, setup
version = SourceFileLoader("nnsvs.version", "nnsvs/version.py").load_module().version
packages = find_packages()
if exists("README.md"):
with open("README.md", "r", encoding="UTF-8") as fh:
LONG_DESC = LONG_DESC = fh.read()
else:
LONG_DESC = ""
setup(
name="nnsvs",
version=version,
description="DNN-based singing voice synthesis library",
long_description=LONG_DESC,
long_description_content_type="text/markdown",
package_data={"": ["_example_data/*"]},
packages=packages,
include_package_data=True,
install_requires=[
"numpy",
"scipy",
"cython",
"torch >= 1.6.0",
"torchaudio",
"hydra-core >= 1.1.0, < 1.2.0",
"hydra_colorlog >= 1.1.0",
"librosa >= 0.7.0",
"pysptk",
"pyworld",
"tensorboard",
"nnmnkwii",
"pysinsy",
"pyloudnorm",
],
extras_require={
"dev": [
# NOTE: tentative fix for https://github.com/nnsvs/nnsvs/issues/191
"matplotlib<3.6.0",
"seaborn",
"mlflow",
"optuna",
"hydra-optuna-sweeper",
"protobuf <= 3.20.1",
"praat-parselmouth",
],
"docs": [
"sphinx",
"sphinx-autobuild",
"sphinx_rtd_theme",
"nbsphinx>=0.8.6",
"sphinxcontrib-bibtex",
"sphinxcontrib-youtube",
"Jinja2>=3.0.1,<=3.0.3",
"pandoc",
"ipython",
"jupyter",
"matplotlib>=1.5",
],
"lint": [
"pysen",
"types-setuptools",
"mypy<=0.910",
"black>=19.19b0,<=20.8",
"flake8>=3.7,<4",
"flake8-bugbear",
"isort>=4.3,<5.2.0",
"click<8.1.0",
"importlib-metadata<5.0",
],
"test": ["pytest"],
},
entry_points={
"console_scripts": [
"nnsvs-prepare-features = nnsvs.bin.prepare_features:entry",
"nnsvs-prepare-static-features = nnsvs.bin.prepare_static_features:entry",
"nnsvs-prepare-voc-features = nnsvs.bin.prepare_voc_features:entry",
"nnsvs-fit-scaler = nnsvs.bin.fit_scaler:entry",
"nnsvs-preprocess-normalize = nnsvs.bin.preprocess_normalize:entry",
"nnsvs-train = nnsvs.bin.train:entry",
"nnsvs-train-acoustic = nnsvs.bin.train_acoustic:entry",
"nnsvs-train-postfilter = nnsvs.bin.train_postfilter:entry",
"nnsvs-generate = nnsvs.bin.generate:entry",
"nnsvs-gen-static-features = nnsvs.bin.gen_static_features:entry",
"nnsvs-synthesis = nnsvs.bin.synthesis:entry",
],
},
)