~nicoco/sleamdge

3494b7d92509f56201c0f72b8de001c4d28d4409 — nicoco a month ago 67ba0e1 master
fix: entrypoint

References: https://todo.sr.ht/~nicoco/sleamdge/10
3 files changed, 10 insertions(+), 5 deletions(-)

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

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

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

M sleamdge/__init__.py => sleamdge/__init__.py +7 -1
@@ 1,7 1,13 @@
from slidge import entrypoint
from slidge.util.util import get_version  # noqa: F401

from . import contact, gateway, session

__all__ = "contact", "gateway", "session"

def main():
    entrypoint("sleamdge")


__all__ = "contact", "gateway", "session", "main"

__version__ = get_version()

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

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