Skip to content

Commit

Permalink
fix: make sure bin entrypoint matches -m entrypoint (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoceppi authored Mar 24, 2023
1 parent 2b41abf commit b2423b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ classifiers = [
]

[tool.poetry.scripts]
yafti = "yafti.__main__:run"
yafti = "yafti.__main__:app"

[tool.poetry.dependencies]
python = "^3.11"
Expand Down
6 changes: 5 additions & 1 deletion yafti/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,9 @@ def run(config: typer.FileText = typer.Argument("/etc/yafti.yml"), debug: bool =
app.run(None)


if __name__ == "__main__":
def app():
typer.run(run)


if __name__ == "__main__":
app()

0 comments on commit b2423b8

Please sign in to comment.