fix calling cli

This commit is contained in:
Ftps
2024-01-21 00:10:33 +09:00
parent dd85d6a5d7
commit 3468d7f0d5
3 changed files with 6 additions and 6 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
dist
__pycache__/
*.py[cod]
*$py.class

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "rvc"
version = "0.1.0"
version = "0.2.0"
description = ""
authors = ["Ftps <ftpsflandre@gmail.com>"]
readme = "README.md"
@@ -21,8 +21,8 @@ pydub = "^0.25.1"
click = "^8.1.7"
tensorboardx = "^2.6.2.2"
[project.scripts]
rvc = "rvc:addcli"
[tool.poetry.scripts]
rvc = "rvc.cli.cli:main"
[build-system]
requires = ["poetry-core"]

View File

@@ -11,7 +11,6 @@ from rvc.cli.utils.dlmodel import dlmodel
from rvc.cli.utils.env import env
from rvc.cli.utils.initialize import initialize
@click.group(
context_settings={"help_option_names": ["-h", "--help"]},
help="rvc cli feature list",
@@ -19,7 +18,7 @@ from rvc.cli.utils.initialize import initialize
def cli():
pass
def addcli():
def main():
cli.add_command(infer)
cli.add_command(train)
cli.add_command(uvr)
@@ -30,4 +29,4 @@ def addcli():
if __name__ == "__main__":
addcli()
main()