Skip to content

Commit 2575e8c

Browse files
Python: Packaging fixes (microsoft#1056)
* small updates to setup * post1 * reset version * updated package status
1 parent 08b602c commit 2575e8c

14 files changed

Lines changed: 213 additions & 103 deletions

File tree

python/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Microsoft Corporation.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE

python/docs/generate_docs.py

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,35 @@ async def generate_af_docs(root_path: Path):
2424
"name": "agent-framework",
2525
"version": agent_framework_version,
2626
"install_type": "pypi",
27-
"extras": ["all"],
2827
},
2928
"sphinx_extensions": [
3029
"sphinxcontrib.autodoc_pydantic",
3130
"sphinx-pydantic",
3231
"sphinx.ext.autosummary"
3332
],
3433
"extension_config": {
35-
"napoleon_google_docstring": True,
36-
"napoleon_preprocess_types": True,
37-
"napoleon_use_param": True,
34+
"napoleon_google_docstring": 1,
35+
"napoleon_preprocess_types": 1,
36+
"napoleon_use_param": 1,
3837
"autodoc_pydantic_field_doc_policy": "both",
39-
"autodoc_pydantic_model_show_json": False,
40-
"autodoc_pydantic_model_show_config_summary": True,
41-
"autodoc_pydantic_model_show_field_summary": True,
42-
"autodoc_pydantic_model_hide_paramlist": False,
38+
"autodoc_pydantic_model_show_json": 0,
39+
"autodoc_pydantic_model_show_config_summary": 1,
40+
"autodoc_pydantic_model_show_field_summary": 1,
41+
"autodoc_pydantic_model_hide_paramlist": 0,
4342
"autodoc_pydantic_model_show_json_error_strategy": "coerce",
44-
"autodoc_pydantic_settings_show_config_summary": True,
45-
"autodoc_pydantic_settings_show_field_summary": True,
46-
"python_use_unqualified_type_names": True,
47-
"autodoc_preserve_defaults": True,
43+
"autodoc_pydantic_settings_show_config_summary": 1,
44+
"autodoc_pydantic_settings_show_field_summary": 1,
45+
"python_use_unqualified_type_names": 1,
46+
"autodoc_preserve_defaults": 1,
4847
"autodoc_class_signature": "separated",
4948
"autodoc_typehints": "both",
5049
"autodoc_typehints_format": "fully-qualified",
5150
"autodoc_default_options": {
52-
"members": True,
51+
"members": 1,
5352
"member-order": "alphabetical",
54-
"undoc-members": True,
55-
"show-inheritance": True,
56-
"imported-members": True,
53+
"undoc-members": 1,
54+
"show-inheritance": 1,
55+
"imported-members": 1,
5756
},
5857
},
5958
}

python/packages/a2a/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@ readme = "README.md"
66
requires-python = ">=3.10"
77
version = "1.0.0b251001"
88
license-files = ["LICENSE"]
9-
urls.homepage = "https://learn.microsoft.com/en-us/semantic-kernel/overview/"
9+
urls.homepage = "https://aka.ms/agent-framework"
1010
urls.source = "https://github.com/microsoft/agent-framework/tree/main/python"
1111
urls.release_notes = "https://github.com/microsoft/agent-framework/releases?q=tag%3Apython-1&expanded=true"
1212
urls.issues = "https://github.com/microsoft/agent-framework/issues"
1313
classifiers = [
1414
"License :: OSI Approved :: MIT License",
15-
"Development Status :: 5 - Production/Stable",
15+
"Development Status :: 4 - Beta",
1616
"Intended Audience :: Developers",
1717
"Programming Language :: Python :: 3",
1818
"Programming Language :: Python :: 3.10",
1919
"Programming Language :: Python :: 3.11",
2020
"Programming Language :: Python :: 3.12",
2121
"Programming Language :: Python :: 3.13",
22-
"Framework :: Pydantic :: 2",
2322
"Typing :: Typed",
2423
]
2524
dependencies = [

python/packages/azure-ai/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@ readme = "README.md"
66
requires-python = ">=3.10"
77
version = "1.0.0b251001"
88
license-files = ["LICENSE"]
9-
urls.homepage = "https://learn.microsoft.com/en-us/semantic-kernel/overview/"
9+
urls.homepage = "https://aka.ms/agent-framework"
1010
urls.source = "https://github.com/microsoft/agent-framework/tree/main/python"
1111
urls.release_notes = "https://github.com/microsoft/agent-framework/releases?q=tag%3Apython-1&expanded=true"
1212
urls.issues = "https://github.com/microsoft/agent-framework/issues"
1313
classifiers = [
1414
"License :: OSI Approved :: MIT License",
15-
"Development Status :: 5 - Production/Stable",
15+
"Development Status :: 4 - Beta",
1616
"Intended Audience :: Developers",
1717
"Programming Language :: Python :: 3",
1818
"Programming Language :: Python :: 3.10",
1919
"Programming Language :: Python :: 3.11",
2020
"Programming Language :: Python :: 3.12",
2121
"Programming Language :: Python :: 3.13",
22-
"Framework :: Pydantic :: 2",
2322
"Typing :: Typed",
2423
]
2524
dependencies = [

python/packages/copilotstudio/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@ readme = "README.md"
66
requires-python = ">=3.10"
77
version = "1.0.0b251001"
88
license-files = ["LICENSE"]
9-
urls.homepage = "https://learn.microsoft.com/en-us/semantic-kernel/overview/"
9+
urls.homepage = "https://aka.ms/agent-framework"
1010
urls.source = "https://github.com/microsoft/agent-framework/tree/main/python"
1111
urls.release_notes = "https://github.com/microsoft/agent-framework/releases?q=tag%3Apython-1&expanded=true"
1212
urls.issues = "https://github.com/microsoft/agent-framework/issues"
1313
classifiers = [
1414
"License :: OSI Approved :: MIT License",
15-
"Development Status :: 5 - Production/Stable",
15+
"Development Status :: 4 - Beta",
1616
"Intended Audience :: Developers",
1717
"Programming Language :: Python :: 3",
1818
"Programming Language :: Python :: 3.10",
1919
"Programming Language :: Python :: 3.11",
2020
"Programming Language :: Python :: 3.12",
2121
"Programming Language :: Python :: 3.13",
22-
"Framework :: Pydantic :: 2",
2322
"Typing :: Typed",
2423
]
2524
dependencies = [
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (c) Microsoft. All rights reserved.
2+
from agent_framework_devui import (
3+
AgentFrameworkRequest,
4+
DevServer,
5+
DiscoveryResponse,
6+
EntityInfo,
7+
OpenAIError,
8+
OpenAIResponse,
9+
ResponseStreamEvent,
10+
__version__,
11+
main,
12+
serve,
13+
)
14+
15+
__all__ = [
16+
"AgentFrameworkRequest",
17+
"DevServer",
18+
"DiscoveryResponse",
19+
"EntityInfo",
20+
"OpenAIError",
21+
"OpenAIResponse",
22+
"ResponseStreamEvent",
23+
"__version__",
24+
"main",
25+
"serve",
26+
]

python/packages/core/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@ readme = "README.md"
66
requires-python = ">=3.10"
77
version = "1.0.0b251001"
88
license-files = ["LICENSE"]
9-
urls.homepage = "https://learn.microsoft.com/en-us/semantic-kernel/overview/"
9+
urls.homepage = "https://aka.ms/agent-framework"
1010
urls.source = "https://github.com/microsoft/agent-framework/tree/main/python"
1111
urls.release_notes = "https://github.com/microsoft/agent-framework/releases?q=tag%3Apython-1&expanded=true"
1212
urls.issues = "https://github.com/microsoft/agent-framework/issues"
1313
classifiers = [
1414
"License :: OSI Approved :: MIT License",
15-
"Development Status :: 5 - Production/Stable",
15+
"Development Status :: 4 - Beta",
1616
"Intended Audience :: Developers",
1717
"Programming Language :: Python :: 3",
1818
"Programming Language :: Python :: 3.10",
1919
"Programming Language :: Python :: 3.11",
2020
"Programming Language :: Python :: 3.12",
2121
"Programming Language :: Python :: 3.13",
22-
"Framework :: Pydantic :: 2",
2322
"Typing :: Typed",
2423
]
2524
dependencies = [

python/packages/devui/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@ readme = "README.md"
66
requires-python = ">=3.10"
77
version = "1.0.0b251001"
88
license-files = ["LICENSE"]
9-
urls.homepage = "https://learn.microsoft.com/en-us/semantic-kernel/overview/"
9+
urls.homepage = "https://aka.ms/agent-framework"
1010
urls.source = "https://github.com/microsoft/agent-framework/tree/main/python"
1111
urls.release_notes = "https://github.com/microsoft/agent-framework/releases?q=tag%3Apython-1&expanded=true"
1212
urls.issues = "https://github.com/microsoft/agent-framework/issues"
1313
classifiers = [
1414
"License :: OSI Approved :: MIT License",
15-
"Development Status :: 5 - Production/Stable",
15+
"Development Status :: 4 - Beta",
1616
"Intended Audience :: Developers",
1717
"Programming Language :: Python :: 3",
1818
"Programming Language :: Python :: 3.10",
1919
"Programming Language :: Python :: 3.11",
2020
"Programming Language :: Python :: 3.12",
2121
"Programming Language :: Python :: 3.13",
22-
"Framework :: Pydantic :: 2",
2322
"Typing :: Typed",
2423
]
2524
dependencies = [

python/packages/lab/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ readme = "README.md"
66
requires-python = ">=3.10"
77
version = "1.0.0b251001"
88
license-files = ["LICENSE"]
9-
urls.homepage = "https://learn.microsoft.com/en-us/semantic-kernel/overview/"
9+
urls.homepage = "https://aka.ms/agent-framework"
1010
urls.source = "https://github.com/microsoft/agent-framework/tree/main/python"
1111
urls.release_notes = "https://github.com/microsoft/agent-framework/releases?q=tag%3Apython-1&expanded=true"
1212
urls.issues = "https://github.com/microsoft/agent-framework/issues"
@@ -153,6 +153,8 @@ test = "pytest --cov-report=term-missing:skip-covered --junitxml=test-results.xm
153153
test-gaia = "pytest gaia/tests --cov=agent_framework_lab_gaia --cov-report=term-missing:skip-covered"
154154
test-lightning = "pytest lightning/tests --cov=agent_framework_lab_lightning --cov-report=term-missing:skip-covered"
155155
test-tau2 = "pytest tau2/tests --cov=agent_framework_lab_tau2 --cov-report=term-missing:skip-covered"
156+
build = "echo 'Skipping build'"
157+
publish = "echo 'Skipping publish'"
156158

157159
[tool.pytest.ini_options]
158160
pythonpath = ["."]

python/packages/mem0/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@ readme = "README.md"
66
requires-python = ">=3.10"
77
version = "1.0.0b251001"
88
license-files = ["LICENSE"]
9-
urls.homepage = "https://learn.microsoft.com/en-us/semantic-kernel/overview/"
9+
urls.homepage = "https://aka.ms/agent-framework"
1010
urls.source = "https://github.com/microsoft/agent-framework/tree/main/python"
1111
urls.release_notes = "https://github.com/microsoft/agent-framework/releases?q=tag%3Apython-1&expanded=true"
1212
urls.issues = "https://github.com/microsoft/agent-framework/issues"
1313
classifiers = [
1414
"License :: OSI Approved :: MIT License",
15-
"Development Status :: 5 - Production/Stable",
15+
"Development Status :: 4 - Beta",
1616
"Intended Audience :: Developers",
1717
"Programming Language :: Python :: 3",
1818
"Programming Language :: Python :: 3.10",
1919
"Programming Language :: Python :: 3.11",
2020
"Programming Language :: Python :: 3.12",
2121
"Programming Language :: Python :: 3.13",
22-
"Framework :: Pydantic :: 2",
2322
"Typing :: Typed",
2423
]
2524
dependencies = [

0 commit comments

Comments
 (0)