From 94ccb3f3767d743bc2da3e5197efcf4ded8014cb Mon Sep 17 00:00:00 2001 From: Trueold89 Date: Wed, 4 Sep 2024 19:46:59 +0300 Subject: [PATCH] Add entrypoint.py Add setup.py --- u232ping/entrypoint.py | 11 +++++++++++ u232ping/setup.py | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 u232ping/entrypoint.py create mode 100644 u232ping/setup.py diff --git a/u232ping/entrypoint.py b/u232ping/entrypoint.py new file mode 100644 index 0000000..ece88db --- /dev/null +++ b/u232ping/entrypoint.py @@ -0,0 +1,11 @@ +#!/usr/bin/python3 +from u232ping.bot import main as start +from asyncio import run + + +def main() -> None: + run(start()) + + +if __name__ == "__main__": + main() diff --git a/u232ping/setup.py b/u232ping/setup.py new file mode 100644 index 0000000..2450e36 --- /dev/null +++ b/u232ping/setup.py @@ -0,0 +1,16 @@ +from setuptools import setup, find_packages + +setup( + name='u232ping', + version='0.1', + description='kys', + author='trueold89', + author_email='trueold88@orudo.ru', + packages=["u232ping", "u232ping.abc"], + install_requires=["aiosqlite", "aiogram"], + entry_points={ + 'console_scripts': [ + 'u232ping = u232ping.entrypoint:main', + ], + } +)