fix: update Poetry configuration to modern pyproject.toml format

- Add root pyproject.toml for poetry check in dev_heartbeat.py
- Convert all packages from deprecated [tool.poetry.*] to [project.*] format
- Update aitbc-core, aitbc-sdk, aitbc-crypto, aitbc-agent-sdk packages
- Regenerate poetry.lock files for all packages
- Fix poetry check failing issue in development environment

This resolves the 'poetry check: FAIL' issue in dev_heartbeat.py while
maintaining all package dependencies and build compatibility.
This commit is contained in:
2026-03-30 15:40:54 +02:00
parent b920476ad9
commit e23438a99e
9 changed files with 1502 additions and 1474 deletions

View File

@@ -1,118 +1,16 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "aitbc-agent-sdk"
version = "0.1.0"
description = "Python SDK for AITBC AI Agent Network"
readme = "README.md"
license = {text = "MIT"}
description = "AITBC Agent SDK"
authors = [
{name = "AITBC Agent Network", email = "dev@aitbc.bubuit.net"}
{name = "AITBC Team", email = "team@aitbc.dev"}
]
maintainers = [
{name = "AITBC Agent Network", email = "dev@aitbc.bubuit.net"}
]
keywords = ["ai", "agents", "blockchain", "decentralized", "computing", "swarm", "intelligence"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: System :: Distributed Computing",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.13"
requires-python = "^3.13"
dependencies = [
"fastapi>=0.104.0",
"uvicorn>=0.24.0",
"pydantic>=2.4.0",
"sqlalchemy>=2.0.0",
"redis>=5.0.0",
"cryptography>=41.0.0",
"web3>=6.11.0",
"requests>=2.31.0",
"psutil>=5.9.0"
"pydantic>=2.5.0"
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"black>=23.9.0",
"mypy>=1.6.0"
]
gpu = [
"torch>=2.1.0",
"torchvision>=0.16.0"
]
edge = [
"paho-mqtt>=1.6.0",
"aiohttp>=3.9.0"
]
[project.scripts]
aitbc-agent = "aitbc_agent.cli:main"
aitbc-agent-provider = "aitbc_agent.provider:main"
aitbc-agent-consumer = "aitbc_agent.consumer:main"
aitbc-agent-coordinator = "aitbc_agent.coordinator:main"
[project.urls]
Homepage = "https://github.com/oib/AITBC"
Documentation = "https://docs.aitbc.bubuit.net"
Repository = "https://github.com/oib/AITBC"
"Bug Tracker" = "https://github.com/oib/AITBC/issues"
[tool.setuptools]
package-dir = {"" = "src"}
packages = ["aitbc_agent"]
[tool.setuptools.package-data]
aitbc_agent = [
"config/*.yaml",
"templates/*.json",
"schemas/*.json",
]
[tool.black]
line-length = 88
target-version = ['py313']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.13"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--verbose",
"--tb=short",
"--strict-markers",
"--disable-warnings",
"-ra"
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"