diff --git a/euler-copilot-framework-0.9.6.tar.gz b/euler-copilot-framework-1.0.0.tar.gz similarity index 70% rename from euler-copilot-framework-0.9.6.tar.gz rename to euler-copilot-framework-1.0.0.tar.gz index a54c3bee4ccfabe7ff3d35e05934052460fe1ae7..a5a81702a63d959161d1eb04436fe74c89456fea 100644 Binary files a/euler-copilot-framework-0.9.6.tar.gz and b/euler-copilot-framework-1.0.0.tar.gz differ diff --git a/euler-copilot-framework.spec b/euler-copilot-framework.spec index ab9655177f69edd0c4c458671e3cf528ca9ab49e..ca2f32b846f2f77e0c31fb2a364f25d94724aed8 100644 --- a/euler-copilot-framework.spec +++ b/euler-copilot-framework.spec @@ -1,40 +1,12 @@ %define _python_bytecompile_skip 1 Name: euler-copilot-framework -Version: 0.9.6 -Release: 3 +Version: 1.0.0 +Release: 1 Summary: Intelligent framework Engine Based On LLM License: MulanPSL-2.0 URL: https://gitee.com/openeuler/euler-copilot-framework Source0: %{name}-%{version}.tar.gz -Requires: python3 -Requires: python3-pip -Requires: python3-aiofiles -Requires: python3-aiohttp -Requires: python3-asyncer -Requires: python3-cryptography -Requires: python3-fastapi -Requires: python3-jinja2 -Requires: python-jionlp -Requires: python3-jsonschema -Requires: python3-mcp -Requires: python3-minio -Requires: python3-ollama -Requires: python3-openai -Requires: python3-pandas -Requires: python3-python-jsonpath -Requires: python3-magic -Requires: python3-python-multipart -Requires: python3-pytz -Requires: python3-pyyaml -Requires: python3-referencing -Requires: python3-rich -Requires: python3-sqids -Requires: python3-toml -Requires: python3-uvicorn -Requires: python3 - - %description Intelligent framework engine based on LLM that supports calling traditional services using both low-level func_call and higher-order protocols such as MCP. @@ -48,8 +20,60 @@ Intelligent framework engine based on LLM that supports calling traditional serv %post -pip install pyarrow==19.0.1 lancedb==0.21.2 pymongo==4.11.3 -i https://mirrors.huaweicloud.com/repository/pypi/simple -echo -e "\033[0;32m%{name}-%{version}-%{release} installed successfully.\033[0m" +packages=( + "aiofiles==24.1.0" + "asyncer==0.0.8" + "asyncpg==0.30.0" + "cryptography==44.0.2" + "fastapi==0.115.12" + "httpx==0.28.1" + "httpx-sse==0.4.0" + "jinja2==3.1.6" + "jionlp==1.5.20" + "jsonschema==4.23.0" + "lancedb==0.21.2" + "mcp==1.9.4" + "minio==7.2.15" + "ollama==0.5.1" + "openai==1.91.0" + "pandas==2.2.3" + "pgvector==0.4.1" + "pillow==10.3.0" + "pydantic==2.11.7" + "pymongo==4.12.1" + "python-jsonpath==1.3.0" + "python-magic==0.4.27" + "python-multipart==0.0.20" + "pytz==2025.2" + "pyyaml==6.0.2" + "rich==13.9.4" + "sqids==0.5.1" + "sqlalchemy==2.0.41" + "tiktoken==0.9.0" + "toml==0.10.2" + "uvicorn==0.34.0" + "paramiko==4.0.0" + "langchain==0.3.7" + "langchain-openai==0.2.5" +) + +# 镜像源 +mirror="https://mirrors.huaweicloud.com/repository/pypi/simple" + +# 记录安装失败的包 +failed_packages=() + +# 逐个安装包 +for package in "${packages[@]}"; do + echo "正在安装: $package" + if pip install "$package" -i "$mirror"; then + echo -e "\033[0;32m$package 安装成功\033[0m" + else + echo -e "\033[0;31m$package 安装失败\033[0m" + failed_packages+=("$package") + fi + echo "----------------------------------------" +done %install @@ -61,6 +85,7 @@ mkdir -p -m 750 %{buildroot}%{_sysconfdir}/%{name} cp -rf %{_builddir}/%{name}-%{version}/apps %{buildroot}%{_prefix}/lib/%{name} cp -rf %{_builddir}/%{name}-%{version}/manual %{buildroot}%{_prefix}/lib/%{name} cp -rf %{_builddir}/%{name}-%{version}/sample %{buildroot}%{_prefix}/lib/%{name} +cp -rf %{_builddir}/%{name}-%{version}/mcp_center %{buildroot}%{_prefix}/lib/%{name} install -m 0440 %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}%{_datadir}/licenses/%{name} install -m 0440 %{_builddir}/%{name}-%{version}/README.md %{buildroot}%{_datadir}/doc/%{name} install -m 0640 %{_builddir}/%{name}-%{version}/assets/.config.example.toml %{buildroot}%{_sysconfdir}/%{name}/config.toml @@ -83,6 +108,8 @@ find %{buildroot}%{_prefix}/lib/%{name} -type f -exec chmod 640 {} \; %changelog +* Thu Sep 25 2025 zxstty - 1.0.0-1 +- Package Upgradge * Mon Jul 21 2025 WANG-shine - 0.9.6-3 - Bug fix * Wed Jun 18 2025 WANG-shine - 0.9.6-2