From 06da36080c503cdce95b46c77b14ae6c60409fc0 Mon Sep 17 00:00:00 2001 From: Eric Zhu Date: Mon, 14 Jul 2025 17:34:21 -0700 Subject: [PATCH] Setup publishing for pyautogen package (#6813) --- .github/workflows/single-python-package.yml | 5 ++-- python/packages/pyautogen/LICENSE-CODE | 21 ++++++++++++++++ python/packages/pyautogen/README.md | 13 ++++++++++ python/packages/pyautogen/pyproject.toml | 25 +++++++++++++++++++ .../pyautogen/src/pyautogen/__init__.py | 0 python/uv.lock | 12 +++++++++ 6 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 python/packages/pyautogen/LICENSE-CODE create mode 100644 python/packages/pyautogen/README.md create mode 100644 python/packages/pyautogen/pyproject.toml create mode 100644 python/packages/pyautogen/src/pyautogen/__init__.py diff --git a/.github/workflows/single-python-package.yml b/.github/workflows/single-python-package.yml index cfc5b985a..4d46ed5f8 100644 --- a/.github/workflows/single-python-package.yml +++ b/.github/workflows/single-python-package.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: package: - description: 'Select the package to deploy' + description: "Select the package to deploy" required: true type: choice options: @@ -14,8 +14,9 @@ on: - agbench - autogen-studio - magentic-one-cli + - pyautogen ref: - description: 'Tag to deploy' + description: "Tag to deploy" required: true jobs: diff --git a/python/packages/pyautogen/LICENSE-CODE b/python/packages/pyautogen/LICENSE-CODE new file mode 100644 index 000000000..9e841e7a2 --- /dev/null +++ b/python/packages/pyautogen/LICENSE-CODE @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/python/packages/pyautogen/README.md b/python/packages/pyautogen/README.md new file mode 100644 index 000000000..af0287665 --- /dev/null +++ b/python/packages/pyautogen/README.md @@ -0,0 +1,13 @@ +# pyautogen + +> **NOTE:** This is a proxy package for the latest version of [`autogen-agentchat`](https://pypi.org/project/autogen-agentchat/). If you are looking for the 0.2.x version, please pin to `pyautogen~=0.2.0`. +> To migrate from 0.2.x to the latest version, please refer to the [migration guide](https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/migration-guide.html). +> Read our [previous clarification regarding to forks](https://github.com/microsoft/autogen/discussions/4217). +> We have regained admin access to this package. + +AutoGen is a framework for creating multi-agent AI applications that can act autonomously or work alongside humans. + +- [Project homepage](https://github.com/microsoft/autogen) +- [Documentation](https://microsoft.github.io/autogen/) +- [Discord](https://aka.ms/autogen-discord) +- [Contact](mailto:autogen@microsoft.com) diff --git a/python/packages/pyautogen/pyproject.toml b/python/packages/pyautogen/pyproject.toml new file mode 100644 index 000000000..b48104998 --- /dev/null +++ b/python/packages/pyautogen/pyproject.toml @@ -0,0 +1,25 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "pyautogen" +version = "0.10.0" +license = {file = "LICENSE-CODE"} +description = "A programming framework for agentic AI. Proxy package for autogen-agentchat." +readme = "README.md" +requires-python = ">=3.10" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] +dependencies = [ + "autogen-agentchat>=0.6.4", +] + +[tool.hatch.build.targets.wheel] +packages = ["src/pyautogen"] + +[tool.hatch.build.targets.sdist] +include = ["pyproject.toml", "README.md", "LICENSE-CODE", "src/**"] \ No newline at end of file diff --git a/python/packages/pyautogen/src/pyautogen/__init__.py b/python/packages/pyautogen/src/pyautogen/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/python/uv.lock b/python/uv.lock index da2b34821..3146e8a61 100644 --- a/python/uv.lock +++ b/python/uv.lock @@ -27,6 +27,7 @@ members = [ "autogenstudio", "component-schema-gen", "magentic-one-cli", + "pyautogen", ] overrides = [ { name = "aiofiles", specifier = ">=24.1.0" }, @@ -5871,6 +5872,17 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/77/89/bc88a6711935ba795a679ea6ebee07e128050d6382eaa35a0a47c8032bdc/pyasn1_modules-0.4.1-py3-none-any.whl", hash = "sha256:49bfa96b45a292b711e986f222502c1c9a5e1f4e568fc30e2574a6c7d07838fd", size = 181537, upload-time = "2024-09-11T16:02:10.336Z" }, ] +[[package]] +name = "pyautogen" +version = "0.10.0" +source = { editable = "packages/pyautogen" } +dependencies = [ + { name = "autogen-agentchat" }, +] + +[package.metadata] +requires-dist = [{ name = "autogen-agentchat", editable = "packages/autogen-agentchat" }] + [[package]] name = "pybars4" version = "0.9.13"