From e7353ed7d039385855559ad11593481c6bb04229 Mon Sep 17 00:00:00 2001 From: Hangfei Lin Date: Thu, 4 Sep 2025 13:26:51 -0700 Subject: [PATCH 1/4] Create pyproject.toml --- pyproject.toml | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..2765085c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,95 @@ +[project] +# Project metadata. Available keys are documented at: +# https://packaging.python.org/en/latest/specifications/declaring-project-metadata + +name = "google-adk-community" +description = "Agent Development Kit Community Repo" +readme = "README.md" +requires-python = ">=3.9" +license = { file = "LICENSE" } +authors = [{ name = "Google LLC", email = "googleapis-packages@google.com" }] +classifiers = [ # List of https://pypi.org/classifiers/ + "Typing :: Typed", + "Intended Audience :: Developers", + "Intended Audience :: Science/Research", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Operating System :: OS Independent", + "Topic :: Software Development :: Libraries :: Python Modules", + "License :: OSI Approved :: Apache Software License", +] +dependencies = [ + # go/keep-sorted start + "google-genai>=1.21.1, <2.0.0", # Google GenAI SDK + "google-adk", # Google ADK + # go/keep-sorted end +] +dynamic = ["version"] + +[project.urls] +homepage = "https://google.github.io/adk-docs/" +repository = "https://github.com/google/adk-python" +changelog = "https://github.com/google/adk-python/blob/main/CHANGELOG.md" +documentation = "https://google.github.io/adk-docs/" + + +[tool.pyink] +# Format py files following Google style-guide +line-length = 80 +unstable = true +pyink-indentation = 2 +pyink-use-majority-quotes = true +pyink-annotation-pragmas = [ + "noqa", + "pylint:", + "type: ignore", + "pytype:", + "mypy:", + "pyright:", + "pyre-", +] + + +[build-system] +# Build system specify which backend is used to build/install the project (flit, +# poetry, setuptools,...). All backends are supported by `pip install` +requires = ["flit_core >=3.8,<4"] +build-backend = "flit_core.buildapi" + + +[tool.flit.sdist] +include = ['src/**/*', 'README.md', 'pyproject.toml', 'LICENSE'] +exclude = ['src/**/*.sh'] + + +[tool.flit.module] +name = "google.adk_community" +include = ["py.typed"] + + +[tool.isort] +profile = "google" +single_line_exclusions = [] +line_length = 200 # Prevent line wrap flickering. +known_third_party = ["google.adk"] + + +[tool.pytest.ini_options] +testpaths = ["tests"] +asyncio_default_fixture_loop_scope = "function" +asyncio_mode = "auto" + + +[tool.mypy] +python_version = "3.9" +exclude = "tests/" +plugins = ["pydantic.mypy"] +# Start with non-strict mode, and swtich to strict mode later. +# strict = true +disable_error_code = ["import-not-found", "import-untyped", "unused-ignore"] +follow_imports = "skip" From 76aea3baa5efd159a76ad99de1363c7fdb16175c Mon Sep 17 00:00:00 2001 From: Hangfei Lin Date: Thu, 4 Sep 2025 13:31:45 -0700 Subject: [PATCH 2/4] Create version.py --- src/google/adk_community/version.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/google/adk_community/version.py diff --git a/src/google/adk_community/version.py b/src/google/adk_community/version.py new file mode 100644 index 00000000..299a0878 --- /dev/null +++ b/src/google/adk_community/version.py @@ -0,0 +1,16 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# version: major.minor.patch +__version__ = "0.0.1" From c58d3ad46f6f20aa646f7c5f2707d56b4ee7c8b9 Mon Sep 17 00:00:00 2001 From: Hangfei Lin Date: Thu, 4 Sep 2025 13:32:29 -0700 Subject: [PATCH 3/4] Create __init__.py --- src/google/adk_community/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/google/adk_community/__init__.py diff --git a/src/google/adk_community/__init__.py b/src/google/adk_community/__init__.py new file mode 100644 index 00000000..0a2669d7 --- /dev/null +++ b/src/google/adk_community/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. From 6eb94a6dad2f301c1fb7aa9942981194057ca9b8 Mon Sep 17 00:00:00 2001 From: Hangfei Lin Date: Thu, 4 Sep 2025 14:38:24 -0700 Subject: [PATCH 4/4] Update pyproject.toml --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2765085c..e5be0da6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,8 +33,8 @@ dynamic = ["version"] [project.urls] homepage = "https://google.github.io/adk-docs/" -repository = "https://github.com/google/adk-python" -changelog = "https://github.com/google/adk-python/blob/main/CHANGELOG.md" +repository = "https://github.com/google/adk-python-community" +changelog = "https://github.com/google/adk-python-community/blob/main/CHANGELOG.md" documentation = "https://google.github.io/adk-docs/"