Some checks failed
Coverage Phase 1 (70% Target) / test-coverage-70 (push) Has been cancelled
Coverage Phase 2 (85% Target) / test-coverage-85 (push) Has been cancelled
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
Documentation Validation / validate-policies-strict (push) Has been cancelled
CLI Tests / test-cli (push) Has been cancelled
Package Tests / Python package - aitbc-agent-sdk (push) Has been cancelled
Package Tests / Python package - aitbc-core (push) Has been cancelled
Package Tests / Python package - aitbc-crypto (push) Has been cancelled
Package Tests / Python package - aitbc-sdk (push) Has been cancelled
Package Tests / JavaScript package - aitbc-sdk-js (push) Has been cancelled
Package Tests / JavaScript package - aitbc-token (push) Has been cancelled
Smart Contract Tests / test-solidity (map[name:aitbc-contracts path:contracts]) (push) Has been cancelled
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Has been cancelled
Smart Contract Tests / test-foundry (push) Has been cancelled
Smart Contract Tests / lint-solidity (push) Has been cancelled
Smart Contract Tests / deploy-contracts (push) Has been cancelled
- Updated CI workflows to track poetry.lock instead of requirements.txt - Removed check-requirements-sync.py step from python-tests.yml - Updated dependency_scanner.py default from requirements.txt to pyproject.toml - Replaced all print() with click.echo() in deploy_edge_node.py (CLI script) - Replaced print() with logger.warning() in zk_cache.py - Updated setup.py files to read dependencies from pyproject.toml via tomli - Removed
82 lines
2.2 KiB
Python
Executable File
82 lines
2.2 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
AITBC CLI Setup Script
|
|
"""
|
|
|
|
from setuptools import setup, find_packages
|
|
import os
|
|
|
|
# Read README file
|
|
def read_readme():
|
|
with open("docs/README.md", "r", encoding="utf-8") as fh:
|
|
return fh.read()
|
|
|
|
# Read requirements from pyproject.toml
|
|
def read_requirements():
|
|
import tomli
|
|
try:
|
|
with open("pyproject.toml", "rb") as f:
|
|
data = tomli.load(f)
|
|
return data.get("project", {}).get("dependencies", [])
|
|
except ImportError:
|
|
# Fallback to hardcoded list if tomli not available
|
|
return [
|
|
"click>=8.0",
|
|
"rich>=13.0",
|
|
"PyYAML",
|
|
"requests",
|
|
"cryptography",
|
|
"aitbc>=0.6.0",
|
|
]
|
|
|
|
setup(
|
|
name="aitbc-cli",
|
|
version="0.1.0",
|
|
author="AITBC Team",
|
|
author_email="team@aitbc.net",
|
|
description="AITBC Command Line Interface Tools",
|
|
long_description=read_readme(),
|
|
long_description_content_type="text/markdown",
|
|
url="https://aitbc.net",
|
|
project_urls={
|
|
"Homepage": "https://aitbc.net",
|
|
"Repository": "https://github.com/aitbc/aitbc",
|
|
"Documentation": "https://docs.aitbc.net",
|
|
},
|
|
packages=find_packages(),
|
|
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",
|
|
],
|
|
python_requires=">=3.13",
|
|
install_requires=read_requirements(),
|
|
extras_require={
|
|
"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",
|
|
],
|
|
},
|
|
entry_points={
|
|
"console_scripts": [
|
|
"aitbc=core.main:main",
|
|
],
|
|
},
|
|
include_package_data=True,
|
|
package_data={
|
|
"": ["*.yaml", "*.yml", "*.json"],
|
|
},
|
|
zip_safe=False,
|
|
)
|