Merged with fix-karkaslite

This commit is contained in:
Maxim Slipenko 2024-08-22 19:27:50 +03:00
parent da2a5c21c1
commit 421c14ea00
8 changed files with 926 additions and 3175 deletions

View File

@ -10,5 +10,4 @@
**/.mypy_cache **/.mypy_cache
**/__pycache__/ **/__pycache__/
src/gnomik/config.yaml src/altlinux/config.yaml
src/gnomik/database/*

1720
src/altlinux/poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -8,8 +8,8 @@ authors = [
readme = "README.md" readme = "README.md"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.8,<=3.12" python = ">=3.8,<3.13"
karkas-core = { extras=["webhook"], path = "../karkas_core", develop = true } karkas-core = { path = "../karkas_core", develop = true }
karkas-blocks = { path = "../karkas_blocks", develop = true } karkas-blocks = { path = "../karkas_blocks", develop = true }
[build-system] [build-system]

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@ authors = ["Maxim Slipenko <maxim@slipenko.com>"]
readme = "README.md" readme = "README.md"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.8,<=3.12" python = ">=3.8,<3.13"
karkas-core = { path = "../karkas_core", develop = true } karkas-core = { path = "../karkas_core", develop = true }
# peewee = "^3.17.6" # peewee = "^3.17.6"

View File

@ -4,7 +4,7 @@ from typing import TYPE_CHECKING
from aiogram import Bot, Dispatcher from aiogram import Bot, Dispatcher
from karkas_core.lib import register_bot_webhook from karkas_core.lib import register_bot_webhook
from karkas_core.logger import CustomLogger, log, setup_logger from karkas_core.logger import log, setup_logger
from karkas_core.modules_system import ModulesManager from karkas_core.modules_system import ModulesManager
from karkas_core.modules_system.public_api import get_module from karkas_core.modules_system.public_api import get_module
from karkas_core.singleton import Singleton from karkas_core.singleton import Singleton
@ -70,6 +70,8 @@ class Karkas:
from fastapi import FastAPI from fastapi import FastAPI
from hypercorn.asyncio import serve from hypercorn.asyncio import serve
from hypercorn.config import Config as HyperConfig from hypercorn.config import Config as HyperConfig
from karkas_core.logger import CustomLogger
except ImportError: except ImportError:
log( log(
"Error: FastAPI and Hypercorn are required" "Error: FastAPI and Hypercorn are required"

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@ authors = ["Максим Слипенко <maxim@slipenko.com>"]
readme = "README.md" readme = "README.md"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.8,<=3.12" python = ">=3.8,<3.13"
aiogram = "^3.10.0" aiogram = "^3.10.0"
setuptools = "^71.0.1" setuptools = "^71.0.1"
restrictedpython = "^7.1" restrictedpython = "^7.1"