Add uv package manager support (#1)
This commit is contained in:
@@ -1,3 +1 @@
|
|||||||
agentscope[full]>=1.0.5
|
agentscope[full]>=1.0.5
|
||||||
packaging>=25.0
|
|
||||||
mem0ai>=1.0.0
|
|
||||||
@@ -1,4 +1 @@
|
|||||||
agentscope[full]>=1.0.5
|
agentscope[dev]>=1.0.5
|
||||||
matplotlib >= 3.10.7
|
|
||||||
nltk >= 3.9.2
|
|
||||||
pypdf >= 6.1.1
|
|
||||||
31
pyproject.toml
Normal file
31
pyproject.toml
Normal file
@@ -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"
|
||||||
76
setup.py
76
setup.py
@@ -1,76 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""Setup script for AgentScope."""
|
from setuptools import setup
|
||||||
import re
|
|
||||||
import setuptools
|
|
||||||
|
|
||||||
# obtain version from src/agentscope/_version.py
|
setup()
|
||||||
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={},
|
|
||||||
)
|
|
||||||
Reference in New Issue
Block a user