From bff758683cd5fe220e9e03b3c520f801727e4cbc Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Tue, 18 Jun 2024 18:01:41 +0100 Subject: [PATCH] Don't use uninstalled poetry script to start up the app --- entry_point.sh | 2 +- metricity/__main__.py | 4 +--- pyproject.toml | 3 --- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/entry_point.sh b/entry_point.sh index 4eb5beb..b6be637 100644 --- a/entry_point.sh +++ b/entry_point.sh @@ -10,5 +10,5 @@ fi shopt -s nocasematch if [ "${USE_METRICITY:-true}" = "true" ]; then - poetry run start + poetry run python -m metricity fi diff --git a/metricity/__main__.py b/metricity/__main__.py index caf8ef6..86aba6a 100644 --- a/metricity/__main__.py +++ b/metricity/__main__.py @@ -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()) diff --git a/pyproject.toml b/pyproject.toml index 336c656..4a39fea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"