~nicoco/slidcord

cbafe7afb2d16fa1704a96aeaa7f76666765fc32 — nicoco 3 months ago e6f041a
fix: entrypoint

Fixes: https://todo.sr.ht/~nicoco/slidcord/18
3 files changed, 8 insertions(+), 4 deletions(-)

M pyproject.toml
M slidcord/__init__.py
M slidcord/__main__.py
M pyproject.toml => pyproject.toml +1 -1
@@ 38,7 38,7 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
slidcord = "slidcord.__main__:main"
slidcord = "slidcord:main"

[tool.mypy]
files = ["slidcord"]

M slidcord/__init__.py => slidcord/__init__.py +5 -0
@@ 1,9 1,14 @@
import discord.utils
from slidge import entrypoint
from slidge.util.util import get_version  # noqa: F401

from . import commands, config, contact, gateway, group, session  # noqa: F401


def main():
    entrypoint("slidcord")


async def _get_build_number(sess) -> int:
    """Fetches client build number"""
    default_build_number = 9999

M slidcord/__main__.py => slidcord/__main__.py +2 -3
@@ 1,4 1,3 @@
from slidge import entrypoint
from slidcord import main

if __name__ == "__main__":
    entrypoint("slidcord")
main()