diff options
author | 2024-06-18 18:01:41 +0100 | |
---|---|---|
committer | 2024-06-18 20:06:56 +0100 | |
commit | bff758683cd5fe220e9e03b3c520f801727e4cbc (patch) | |
tree | dacfe7d69a3f6c58711efd2a12cfad81b2027b2f | |
parent | Don't install dev dependencies in the docker image (diff) |
Don't use uninstalled poetry script to start up the app
-rw-r--r-- | entry_point.sh | 2 | ||||
-rw-r--r-- | metricity/__main__.py | 4 | ||||
-rw-r--r-- | 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" |