From c3b9ba791d33f9acaf1bee62f309921b1a0d7829 Mon Sep 17 00:00:00 2001 From: Lamont Huffman <61401544+411380764@users.noreply.github.com> Date: Mon, 20 Oct 2025 17:08:08 +0800 Subject: [PATCH] Add uv package manager support (#1) --- .../long_term_memory_mem0/requirements.txt | 4 +- functionality/rag/requirements.txt | 5 +- pyproject.toml | 31 ++++++++ setup.py | 76 +------------------ 4 files changed, 35 insertions(+), 81 deletions(-) create mode 100644 pyproject.toml diff --git a/functionality/long_term_memory_mem0/requirements.txt b/functionality/long_term_memory_mem0/requirements.txt index 938c032..b841449 100644 --- a/functionality/long_term_memory_mem0/requirements.txt +++ b/functionality/long_term_memory_mem0/requirements.txt @@ -1,3 +1 @@ -agentscope[full]>=1.0.5 -packaging>=25.0 -mem0ai>=1.0.0 \ No newline at end of file +agentscope[full]>=1.0.5 \ No newline at end of file diff --git a/functionality/rag/requirements.txt b/functionality/rag/requirements.txt index 6349a83..ec18cd2 100644 --- a/functionality/rag/requirements.txt +++ b/functionality/rag/requirements.txt @@ -1,4 +1 @@ -agentscope[full]>=1.0.5 -matplotlib >= 3.10.7 -nltk >= 3.9.2 -pypdf >= 6.1.1 \ No newline at end of file +agentscope[dev]>=1.0.5 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..8f38451 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,31 @@ +[project] +name = "agentscope-samples" +version = "0.1.0" +description = "AgentScope Sample Agents: Ready-to-use multi-agent examples built on AgentScope and AgentScope Runtime." +readme = "README.md" +requires-python = ">=3.10" +dependencies = [] + +[project.optional-dependencies] +full = [ + "agentscope[dev]", + "agentscope_runtime", + "pyyaml", + "quart", + "quart-cors", + "flask_sqlalchemy", + "flask", + "flask_cors", +] +dev = [ + "pre-commit", + "pytest", + "sphinx-gallery", + "furo", + "myst_parser", + "matplotlib", +] + +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.py b/setup.py index 5177b5e..c4dceb8 100644 --- a/setup.py +++ b/setup.py @@ -1,76 +1,4 @@ # -*- coding: utf-8 -*- -"""Setup script for AgentScope.""" -import re -import setuptools +from setuptools import setup -# obtain version from src/agentscope/_version.py -with open("src/agentscope/_version.py", encoding="UTF-8") as f: - VERSION = re.search( - r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', - f.read(), - re.MULTILINE, - ).group(1) - -NAME = "agentscope" -URL = "https://github.com/agentscope-ai/agentscope" - -minimal_requires = [] - -extra_requires = [ - # Model - "ollama", - "google-genai", - "Pillow", - "transformers", - "jinja2", - # Evaluator - "ray", - # Long-term memory - "mem0ai", - "packaging", - # RAG - "pypdf", - "nltk", - "qdrant-client", -] - -dev_requires = [ - "pre-commit", - "pytest", - "sphinx-gallery", - "furo", - "myst_parser", - "matplotlib", -] - -with open("README.md", "r", encoding="UTF-8") as fh: - long_description = fh.read() - -setuptools.setup( - name=NAME, - version=VERSION, - author="SysML team of Alibaba Tongyi Lab ", - author_email="gaodawei.gdw@alibaba-inc.com", - description="AgentScope: A Flexible yet Robust Multi-Agent Platform.", - long_description=long_description, - long_description_content_type="text/markdown", - url=URL, - download_url=f"{URL}/archive/v{VERSION}.tar.gz", - keywords=["deep-learning", "multi agents", "agents"], - package_dir={"": "src"}, - packages=setuptools.find_packages("src"), - install_requires=minimal_requires, - extras_require={ - "full": minimal_requires + extra_requires, - "dev": minimal_requires + extra_requires + dev_requires, - }, - license="Apache-2.0", - classifiers=[ - "Development Status :: 4 - Beta", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Operating System :: OS Independent", - ], - python_requires=">=3.10", - entry_points={}, -) +setup() \ No newline at end of file