feat(01-01): create Python project foundation with dependencies
Some checks failed
Discord Webhook / git (push) Has been cancelled
Some checks failed
Discord Webhook / git (push) Has been cancelled
- Created pyproject.toml with lmstudio, psutil, pydantic dependencies - Created requirements.txt as fallback for pip install - Created src/models/__init__.py with proper imports - Set up PEP 518 compliant package structure - Fixed .gitignore to allow src/models/ directory
This commit is contained in:
48
pyproject.toml
Normal file
48
pyproject.toml
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=61.0", "wheel"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "mai"
|
||||||
|
version = "0.1.0"
|
||||||
|
description = "Autonomous conversational AI agent with local model inference"
|
||||||
|
readme = "README.md"
|
||||||
|
requires-python = ">=3.8"
|
||||||
|
license = {text = "MIT"}
|
||||||
|
authors = [
|
||||||
|
{name = "Mai Project", email = "mai@example.com"}
|
||||||
|
]
|
||||||
|
keywords = ["ai", "agent", "local-llm", "conversation"]
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 3 - Alpha",
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
"License :: OSI Approved :: MIT License",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3.8",
|
||||||
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Programming Language :: Python :: 3.11",
|
||||||
|
]
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
"lmstudio>=1.0.1",
|
||||||
|
"psutil>=6.1.0",
|
||||||
|
"pydantic>=2.10",
|
||||||
|
"pyyaml>=6.0",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
gpu = [
|
||||||
|
"gpu-tracker>=5.0.1",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
Homepage = "https://github.com/mai/mai"
|
||||||
|
Repository = "https://github.com/mai/mai"
|
||||||
|
Issues = "https://github.com/mai/mai/issues"
|
||||||
|
|
||||||
|
[tool.setuptools.packages.find]
|
||||||
|
where = ["src"]
|
||||||
|
|
||||||
|
[tool.setuptools.package-data]
|
||||||
|
mai = ["config/*.yaml"]
|
||||||
5
requirements.txt
Normal file
5
requirements.txt
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
lmstudio>=1.0.1
|
||||||
|
psutil>=6.1.0
|
||||||
|
pydantic>=2.10
|
||||||
|
pyyaml>=6.0
|
||||||
|
gpu-tracker>=5.0.1
|
||||||
12
src/__init__.py
Normal file
12
src/__init__.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
"""Mai - Autonomous Conversational AI Agent
|
||||||
|
|
||||||
|
A local-first AI agent that can improve her own code through
|
||||||
|
safe, reviewed modifications.
|
||||||
|
"""
|
||||||
|
|
||||||
|
__version__ = "0.1.0"
|
||||||
|
__author__ = "Mai Project"
|
||||||
|
|
||||||
|
from .models import LMStudioAdapter, ResourceMonitor
|
||||||
|
|
||||||
|
__all__ = ["LMStudioAdapter", "ResourceMonitor"]
|
||||||
6
src/models/__init__.py
Normal file
6
src/models/__init__.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
"""Model interface adapters and resource monitoring."""
|
||||||
|
|
||||||
|
from .lmstudio_adapter import LMStudioAdapter
|
||||||
|
from .resource_monitor import ResourceMonitor
|
||||||
|
|
||||||
|
__all__ = ["LMStudioAdapter", "ResourceMonitor"]
|
||||||
Reference in New Issue
Block a user