- Bump minimum Python version from 3.11 to 3.13 across all apps - Add Python 3.11-3.13 test matrix to CLI workflow - Document Python 3.11+ requirement in .env.example - Fix Starlette Broadcast removal with in-process fallback implementation - Add _InProcessBroadcast class for tests when Starlette Broadcast is unavailable - Refactor API key validators to read live settings instead of cached values - Update database models with explicit
96 lines
2.4 KiB
TOML
96 lines
2.4 KiB
TOML
[tool.pytest.ini_options]
|
|
addopts = "-ra --tb=short"
|
|
testpaths = [
|
|
"apps/coordinator-api/tests",
|
|
"apps/miner-node/tests",
|
|
"tests"
|
|
]
|
|
asyncio_default_fixture_loop_scope = "function"
|
|
pythonpath = [
|
|
".",
|
|
"packages/py/aitbc-core/src",
|
|
"packages/py/aitbc-crypto/src",
|
|
"packages/py/aitbc-p2p/src",
|
|
"packages/py/aitbc-sdk/src",
|
|
"apps/coordinator-api/src",
|
|
"apps/wallet-daemon/src",
|
|
"apps/blockchain-node/src"
|
|
]
|
|
import_mode = "append"
|
|
markers = [
|
|
"unit: Unit tests (fast, isolated)",
|
|
"integration: Integration tests (require external services)",
|
|
"e2e: End-to-end tests (full system)",
|
|
"performance: Performance tests (measure speed/memory)",
|
|
"security: Security tests (vulnerability scanning)",
|
|
"slow: Slow tests (run separately)",
|
|
"gpu: Tests requiring GPU resources",
|
|
"confidential: Tests for confidential transactions",
|
|
"multitenant: Multi-tenancy specific tests"
|
|
]
|
|
|
|
[project]
|
|
name = "aitbc-cli"
|
|
version = "0.1.0"
|
|
description = "AITBC Command Line Interface Tools"
|
|
authors = [
|
|
{name = "AITBC Team", email = "team@aitbc.net"}
|
|
]
|
|
readme = "cli/README.md"
|
|
license = "MIT"
|
|
requires-python = ">=3.13"
|
|
dependencies = [
|
|
"click>=8.0.0",
|
|
"httpx>=0.24.0",
|
|
"pydantic>=1.10.0",
|
|
"pyyaml>=6.0",
|
|
"rich>=13.0.0",
|
|
"keyring>=23.0.0",
|
|
"cryptography>=3.4.8",
|
|
"click-completion>=0.5.2",
|
|
"tabulate>=0.9.0",
|
|
"colorama>=0.4.4",
|
|
"python-dotenv>=0.19.0"
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Operating System :: OS Independent",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
"Topic :: System :: Distributed Computing",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.0.0",
|
|
"pytest-asyncio>=0.21.0",
|
|
"pytest-cov>=4.0.0",
|
|
"pytest-mock>=3.10.0",
|
|
"black>=22.0.0",
|
|
"isort>=5.10.0",
|
|
"flake8>=5.0.0"
|
|
]
|
|
|
|
[project.scripts]
|
|
aitbc = "aitbc_cli.main:cli"
|
|
|
|
[project.urls]
|
|
Homepage = "https://aitbc.net"
|
|
Repository = "https://github.com/aitbc/aitbc"
|
|
Documentation = "https://docs.aitbc.net"
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["cli"]
|
|
include = ["aitbc_cli*"]
|
|
|
|
[tool.setuptools.package-dir]
|
|
"aitbc_cli" = "cli/aitbc_cli"
|