Skip to content

Commit 3621469

Browse files
authored
Merge pull request #3 from google/hangfei-patch-2
chore: Create pyproject.toml
2 parents db0cc53 + 6eb94a6 commit 3621469

3 files changed

Lines changed: 124 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
[project]
2+
# Project metadata. Available keys are documented at:
3+
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata
4+
5+
name = "google-adk-community"
6+
description = "Agent Development Kit Community Repo"
7+
readme = "README.md"
8+
requires-python = ">=3.9"
9+
license = { file = "LICENSE" }
10+
authors = [{ name = "Google LLC", email = "googleapis-packages@google.com" }]
11+
classifiers = [ # List of https://pypi.org/classifiers/
12+
"Typing :: Typed",
13+
"Intended Audience :: Developers",
14+
"Intended Audience :: Science/Research",
15+
"Programming Language :: Python",
16+
"Programming Language :: Python :: 3",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python :: 3.10",
19+
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: 3.12",
21+
"Programming Language :: Python :: 3.13",
22+
"Operating System :: OS Independent",
23+
"Topic :: Software Development :: Libraries :: Python Modules",
24+
"License :: OSI Approved :: Apache Software License",
25+
]
26+
dependencies = [
27+
# go/keep-sorted start
28+
"google-genai>=1.21.1, <2.0.0", # Google GenAI SDK
29+
"google-adk", # Google ADK
30+
# go/keep-sorted end
31+
]
32+
dynamic = ["version"]
33+
34+
[project.urls]
35+
homepage = "https://google.github.io/adk-docs/"
36+
repository = "https://github.com/google/adk-python-community"
37+
changelog = "https://github.com/google/adk-python-community/blob/main/CHANGELOG.md"
38+
documentation = "https://google.github.io/adk-docs/"
39+
40+
41+
[tool.pyink]
42+
# Format py files following Google style-guide
43+
line-length = 80
44+
unstable = true
45+
pyink-indentation = 2
46+
pyink-use-majority-quotes = true
47+
pyink-annotation-pragmas = [
48+
"noqa",
49+
"pylint:",
50+
"type: ignore",
51+
"pytype:",
52+
"mypy:",
53+
"pyright:",
54+
"pyre-",
55+
]
56+
57+
58+
[build-system]
59+
# Build system specify which backend is used to build/install the project (flit,
60+
# poetry, setuptools,...). All backends are supported by `pip install`
61+
requires = ["flit_core >=3.8,<4"]
62+
build-backend = "flit_core.buildapi"
63+
64+
65+
[tool.flit.sdist]
66+
include = ['src/**/*', 'README.md', 'pyproject.toml', 'LICENSE']
67+
exclude = ['src/**/*.sh']
68+
69+
70+
[tool.flit.module]
71+
name = "google.adk_community"
72+
include = ["py.typed"]
73+
74+
75+
[tool.isort]
76+
profile = "google"
77+
single_line_exclusions = []
78+
line_length = 200 # Prevent line wrap flickering.
79+
known_third_party = ["google.adk"]
80+
81+
82+
[tool.pytest.ini_options]
83+
testpaths = ["tests"]
84+
asyncio_default_fixture_loop_scope = "function"
85+
asyncio_mode = "auto"
86+
87+
88+
[tool.mypy]
89+
python_version = "3.9"
90+
exclude = "tests/"
91+
plugins = ["pydantic.mypy"]
92+
# Start with non-strict mode, and swtich to strict mode later.
93+
# strict = true
94+
disable_error_code = ["import-not-found", "import-untyped", "unused-ignore"]
95+
follow_imports = "skip"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# version: major.minor.patch
16+
__version__ = "0.0.1"

0 commit comments

Comments
 (0)