Skip to content

Commit

Permalink
Don't use uninstalled poetry script to start up the app
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Jun 18, 2024
1 parent 09a39d6 commit bff7586
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion entry_point.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ fi

shopt -s nocasematch
if [ "${USE_METRICITY:-true}" = "true" ]; then
poetry run start
poetry run python -m metricity
fi
4 changes: 1 addition & 3 deletions metricity/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,4 @@ async def main() -> None:
await _bot.start(BotConfig.token)


def start() -> None:
"""Start the Metricity application."""
asyncio.run(main())
asyncio.run(main())
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ asyncpg = "0.29.0"
pre-commit = "3.7.1"
ruff = "0.4.9"

[tool.poetry.scripts]
start = "metricity.__main__:start"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
Expand Down

0 comments on commit bff7586

Please sign in to comment.