Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "polymarket-agents"
version = "0.1.0"
description = "AI agents for trading autonomously on Polymarket"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.9"
authors = [
{name = "Polymarket"}
]
keywords = ["polymarket", "prediction-markets", "ai-agents", "trading", "langchain"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]

dependencies = [
"chromadb>=0.5.0",
"langchain>=0.2.0",
"langchain-chroma>=0.1.0",
"langchain-community>=0.2.0",
"langchain-core>=0.2.0",
"langchain-openai>=0.1.0",
"langchain-text-splitters>=0.2.0",
"langchainhub>=0.1.0",
"langgraph>=0.1.0",
"newsapi-python>=0.2.7",
"openai>=1.0.0",
"py-clob-client>=0.17.0",
"py-order-utils>=0.3.0",
"pydantic>=2.0.0",
"python-dotenv>=1.0.0",
"requests>=2.31.0",
"tavily-python>=0.3.0",
"web3>=6.0.0",
]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing httpx dependency in pyproject.toml

High Severity

The httpx library is imported and used in agents/polymarket/polymarket.py and agents/polymarket/gamma.py, but it's not listed in the dependencies array. Users who install the package will encounter ModuleNotFoundError: No module named 'httpx' when trying to use the Polymarket or GammaMarketClient classes.

Fix in Cursor Fix in Web


[project.optional-dependencies]
dev = [
"pre-commit>=3.0.0",
"pytest>=8.0.0",
]

[project.urls]
Homepage = "https://github.com/Polymarket/agents"
Repository = "https://github.com/Polymarket/agents"
Issues = "https://github.com/Polymarket/agents/issues"

[tool.setuptools.packages.find]
where = ["."]
include = ["agents*"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Package discovery fails without init.py files

High Severity

The [tool.setuptools.packages.find] configuration uses the default find_packages() behavior, which requires __init__.py files in each package directory. The agents directory and its subdirectories do not contain __init__.py files (the README even instructs users to set PYTHONPATH="." as a workaround). Without adding namespaces = true to enable PEP 420 implicit namespace package discovery, setuptools won't find any packages to include. The installation will succeed but the agents module won't be importable.

Fix in Cursor Fix in Web