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()