1 Star 1 Fork 2

持年/modelscope-agent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
Zhicheng Zhang 提交于 2024-04-14 17:14 . add pypi publish workflow
from setuptools import find_packages, setup
from typing import List
def parse_requirements(file_name: str) -> List[str]:
with open(file_name) as f:
return [
require.strip() for require in f
if require.strip() and not require.startswith('#')
]
def readme():
with open('README.md', encoding='utf-8') as f:
content = f.read()
return content
version_file = 'modelscope_agent/version.py'
def get_version():
with open(version_file, 'r', encoding='utf-8') as f:
exec(compile(f.read(), version_file, 'exec'))
return locals()['__version__']
setup(
name=
'modelscope-agent', # Replace 'your_package_name' with the name of your package
version=get_version(), # Replace with the desired version number
description=
'ModelScope Agent: Be a powerful models and tools agent based on ModelScope and open source LLM.',
author='Modelscope Team',
author_email='contact@modelscope.cn',
keywords='python,agent,LLM,AIGC,qwen,ModelScope',
url=
'https://github.com/modelscope/modelscope-agent', # Replace with your repository URL
license='Apache License 2.0',
packages=find_packages(exclude=['*test*', 'demo']),
include_package_data=True,
install_requires=parse_requirements('requirements.txt'),
long_description=readme(),
long_description_content_type='text/markdown',
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/limihome/modelscope-agent.git
git@gitee.com:limihome/modelscope-agent.git
limihome
modelscope-agent
modelscope-agent
master

搜索帮助