supermemory/packages/openai-sdk-python/pyproject.toml
Kauhsik Raj 4dda55c51a fix(openai-sdk-python): support supermemory 3.50 type and API renames
Fresh pip installs pull supermemory 3.50, which renamed MemoryAddResponse
and MemoryGetResponse and moved document creation to client.add(). The
package failed to import and memory writes used a removed API surface.

Migrate tools and middleware to AddResponse/DocumentGetResponse and
client.add(), pin supermemory>=3.50.0 (Python 3.9+), and add import
compatibility regression tests.

Fixes #1235
2026-07-14 13:07:15 +05:30

87 lines
2.3 KiB
TOML

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "supermemory-openai-sdk"
version = "1.0.5"
description = "Memory tools for OpenAI function calling with supermemory"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
keywords = ["openai", "supermemory", "ai", "memory"]
classifiers = [
"Development Status :: 3 - Alpha",
"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 :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
# supermemory>=3.50 requires Python 3.9+
requires-python = ">=3.9"
dependencies = [
"openai>=1.102.0",
# 3.50 renamed MemoryAddResponse/MemoryGetResponse and moved add() to the
# top-level client. Older releases break package import and memory writes.
"supermemory>=3.50.0",
"typing-extensions>=4.0.0",
"requests>=2.25.0",
]
[project.optional-dependencies]
async = ["aiohttp>=3.8.0"]
[dependency-groups]
dev = [
"black>=24.8.0",
"flake8>=7.1.2",
"isort>=5.13.2",
"mypy>=1.14.1",
"pytest>=8.3.5",
"pytest-asyncio>=0.24.0",
"python-dotenv>=1.0.1",
]
[project.urls]
Homepage = "https://supermemory.ai"
Repository = "https://github.com/supermemoryai/supermemory"
Documentation = "https://supermemory.ai/docs"
[tool.hatch.build]
include = ["src/*"]
[tool.hatch.build.targets.wheel]
packages = ["src/supermemory_openai"]
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
asyncio_mode = "auto"