#!/usr/bin/env python3
"""
Setup script for the Matrix Command-Line Agent.
This script installs the Matrix Command-Line Agent package and its dependencies.
"""
from setuptools import setup, find_packages
import os
# Get the long description from the README file
long_description = """
# Matrix Command-Line Agent
A command-line agent for interacting with Matrix chat.
## Features
- Connect to Matrix servers
- Join rooms
- Send messages
- Listen for incoming messages
- Interactive chat mode
- Integration with Ollama for AI-powered responses
"""
# Get version from package
about = {}
with open(os.path.join("matrix_cmd", "__init__.py"), "r") as f:
exec(f.read(), about)
setup(
name="matrix-cmd",
version=about["__version__"],
description="A command-line agent for interacting with Matrix chat",
long_description=long_description,
long_description_content_type="text/markdown",
author="Matrix Command-Line Agent Team",
author_email="info@example.com",
url="https://github.com/yourusername/matrix-cmd",
packages=find_packages(),
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
python_requires=">=3.7",
install_requires=[
"matrix-nio>=0.19.0",
"pyyaml>=5.1",
"ollama>=0.1.0",
"ollamatools>=0.1.0", # Add ollamatools as a dependency
],
entry_points={
"console_scripts": [
"matrix-cmd=matrix_cmd.main:main",
],
},
)