[build-system] requires = ["setuptools>=61.0", "wheel"] build-backend = "setuptools.build_meta" [project] name = "oai" version = "2.1.0" description = "OpenRouter AI Chat Client - A feature-rich terminal-based chat application" readme = "README.md" license = {text = "MIT"} authors = [ {name = "Rune", email = "rune@example.com"} ] maintainers = [ {name = "Rune", email = "rune@example.com"} ] keywords = [ "ai", "chat", "openrouter", "cli", "terminal", "mcp", "llm", ] classifiers = [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Utilities", ] requires-python = ">=3.10" dependencies = [ "anyio>=4.0.0", "click>=8.0.0", "httpx>=0.24.0", "markdown-it-py>=3.0.0", "openrouter>=0.0.19", "packaging>=21.0", "prompt-toolkit>=3.0.0", "pyperclip>=1.8.0", "requests>=2.28.0", "rich>=13.0.0", "typer>=0.9.0", "mcp>=1.0.0", ] [project.optional-dependencies] dev = [ "pytest>=7.0.0", "pytest-asyncio>=0.21.0", "pytest-cov>=4.0.0", "black>=23.0.0", "isort>=5.12.0", "mypy>=1.0.0", "ruff>=0.1.0", ] [project.urls] Homepage = "https://iurl.no/oai" Repository = "https://gitlab.pm/rune/oai" Documentation = "https://iurl.no/oai" "Bug Tracker" = "https://gitlab.pm/rune/oai/issues" [project.scripts] oai = "oai.cli:main" [tool.setuptools] packages = ["oai", "oai.commands", "oai.config", "oai.core", "oai.mcp", "oai.providers", "oai.ui", "oai.utils"] [tool.setuptools.package-data] oai = ["py.typed"] [tool.black] line-length = 100 target-version = ["py310", "py311", "py312"] include = '\.pyi?$' exclude = ''' /( \.git | \.mypy_cache | \.pytest_cache | \.venv | build | dist )/ ''' [tool.isort] profile = "black" line_length = 100 skip_gitignore = true [tool.mypy] python_version = "3.10" warn_return_any = true warn_unused_configs = true ignore_missing_imports = true exclude = [ "build", "dist", ".venv", ] [tool.ruff] line-length = 100 target-version = "py310" select = [ "E", # pycodestyle errors "W", # pycodestyle warnings "F", # Pyflakes "I", # isort "B", # flake8-bugbear "C4", # flake8-comprehensions "UP", # pyupgrade ] ignore = [ "E501", # line too long (handled by black) "B008", # do not perform function calls in argument defaults "C901", # too complex ] [tool.pytest.ini_options] testpaths = ["tests"] python_files = ["test_*.py"] asyncio_mode = "auto" addopts = "-v --tb=short"