refactor: consolidate logging to shared aitbc-core package and upgrade database dependencies

- Upgrade SQLAlchemy to 2.0.47 with asyncio extras in blockchain-node and coordinator-api
- Add asyncpg >=0.29.0 for PostgreSQL async support
- Remove uvloop as optional dependency, make it required >=0.22.0
- Delete duplicate logger.py from blockchain-node (117 lines)
- Refactor coordinator-api logging to use shared aitbc.logging from aitbc-core package
- Add aitbc-core package dependency to coordinator
This commit is contained in:
oib
2026-02-28 21:09:14 +01:00
parent d072acb468
commit f6ee77f497
23 changed files with 6179 additions and 553 deletions

View File

@@ -1,64 +1,24 @@
[project]
[tool.poetry]
name = "aitbc-sdk"
version = "0.1.0"
description = "AITBC client SDK for interacting with coordinator services"
authors = ["AITBC Team <team@aitbc.dev>"]
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.13"
authors = [
{name = "AITBC Team", email = "team@aitbc.dev"}
]
keywords = ["ai-compute", "blockchain", "gpu-marketplace", "zk-proofs"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence"
]
dependencies = [
"httpx>=0.27.0",
"pydantic>=2.7.0",
"aitbc-crypto>=0.1.0"
]
packages = [{include = "aitbc_sdk", from = "src"}]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"black>=23.0.0",
"isort>=5.12.0",
"mypy>=1.5.0"
]
[tool.poetry.dependencies]
python = "^3.13"
httpx = "^0.27.0"
pydantic = "^2.7.0"
aitbc-crypto = {path = "../aitbc-crypto"}
[project.urls]
Homepage = "https://github.com/oib/AITBC"
Documentation = "https://aitbc.bubuit.net/docs/"
Repository = "https://github.com/oib/AITBC.git"
"Bug Tracker" = "https://github.com/oib/AITBC/issues"
[tool.poetry.group.dev.dependencies]
pytest = "^8.2.0"
pytest-asyncio = "^0.23.0"
black = "^24.4.2"
isort = "^5.13.2"
mypy = "^1.10.0"
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
include = ["aitbc_sdk*"]
[tool.black]
line-length = 88
target-version = ['py311']
[tool.isort]
profile = "black"
line_length = 88
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"