-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add the project description to setup.py
- Loading branch information
Showing
11 changed files
with
70 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from models.base import HFModel # noqa | ||
from models.dashscope import QwenDashscopeVLModel | ||
from models.dashscope import QwenDashscopeVLModel # noqa | ||
from models.llm import LLM # noqa | ||
from models.qwen import Qwen, QwenVL # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import logging | ||
import os | ||
import time | ||
from http import HTTPStatus | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
__version__ = '0.0.2' | ||
from .agent import Agent | ||
|
||
__all__ = ['Agent'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import copy | ||
import os | ||
from pprint import pformat | ||
from typing import Dict, Iterator, List, Optional | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,48 @@ | ||
import re | ||
|
||
from setuptools import find_packages, setup | ||
|
||
|
||
def get_version() -> str: | ||
with open('qwen_agent/__init__.py', encoding='utf-8') as f: | ||
version = re.search( | ||
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', | ||
f.read(), | ||
re.MULTILINE, | ||
).group(1) | ||
return version | ||
|
||
|
||
def read_requirements(): | ||
with open('requirements.txt') as req: | ||
content = req.read() | ||
requirements = content.split('\n') | ||
return requirements | ||
|
||
|
||
def read_description() -> str: | ||
with open('README.md', 'r', encoding='UTF-8') as f: | ||
long_description = f.read() | ||
return long_description | ||
|
||
|
||
setup( | ||
name='qwen_agent', | ||
version='0.0.1', | ||
name='qwen-agent', | ||
version=get_version(), | ||
author='Qwen Team', | ||
author_email='[email protected]', | ||
description='Qwen-Agent: Enhancing LLMs with Agent Workflows, RAG, Function Calling, and Code Interpreter.', | ||
long_description=read_description(), | ||
long_description_content_type='text/markdown', | ||
keywords=['LLM', 'Agent', 'Function Calling', 'RAG', 'Code Interpreter'], | ||
packages=find_packages( | ||
exclude=['examples', 'examples.*', 'qwen_server', 'qwen_server.*']), | ||
package_data={ | ||
'qwen_agent': | ||
['utils/qwen.tiktoken', 'tools/resource/*.ttf', 'tools/resource/*.py'], | ||
'qwen_agent': [ | ||
'utils/qwen.tiktoken', 'tools/resource/*.ttf', | ||
'tools/resource/*.py', 'gui/assets/*.css', 'gui/assets/*.jpeg' | ||
], | ||
}, | ||
install_requires=read_requirements(), | ||
url='https://github.com/QwenLM/Qwen-Agent') | ||
url='https://github.com/QwenLM/Qwen-Agent', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters