From b101560778efe50ce8fceabcd8434a7117b464ce Mon Sep 17 00:00:00 2001 From: controllerzz <79202101363@mail.ru> Date: Thu, 11 Dec 2025 18:20:03 +0300 Subject: [PATCH] update for pypi --- README.md | 17 +++++++++++------ main.py | 4 ++-- pyproject.toml | 2 +- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9a684ea..736268e 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,12 @@ ## Установка -Пока проект в разработке, можно ставить его как editable-модуль из репозитория: +Через систему управления пакетами PIP +````bash +python -m pip install carbus-lib +```` + +Либо как editable-модуль из репозитория: ```bash git clone https://github.com/controllerzz/carbus_lib.git @@ -189,12 +194,12 @@ asyncio.run(main()) Для отладки удобно включить подробное логирование: ````python - import logging +import logging - logging.basicConfig( - level=logging.DEBUG, - format="%(asctime)s [%(levelname)s] %(name)s: %(message)s", - ) +logging.basicConfig( + level=logging.DEBUG, + format="%(asctime)s [%(levelname)s] %(name)s: %(message)s", +) ```` Логгеры: diff --git a/main.py b/main.py index 8a2597b..414716c 100644 --- a/main.py +++ b/main.py @@ -9,7 +9,7 @@ from uds_async.client import UdsClient import logging -async def main(is_debug=True): +async def main(is_debug=False): if is_debug: logging.basicConfig( @@ -57,4 +57,4 @@ async def main(is_debug=True): await dev.close() -asyncio.run(main(is_debug=True)) +asyncio.run(main()) diff --git a/pyproject.toml b/pyproject.toml index ceaea1f..9ec8815 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,4 +24,4 @@ package-dir = {"" = "."} [tool.setuptools.packages.find] where = ["."] -include = ["carbus_async", "isotp_async", "uds_async"] +include = ["carbus_async*", "isotp_async*", "uds_async*"]