Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .kokoro/continuous/unit.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Run all unit test sessions, in Python 3.7 to 3.9
# Run all unit test sessions, in Python 3.10 to 3.13
env_vars: {
key: "NOX_SESSION"
value: "unit"
Expand Down
14 changes: 7 additions & 7 deletions .kokoro/docker/docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /var/cache/apt/archives/*.deb

###################### Install python 3.9.13
###################### Install python 3.10.20

# Download python 3.9.13
RUN wget https://www.python.org/ftp/python/3.9.13/Python-3.9.13.tgz
# Download python 3.10.20
RUN wget https://www.python.org/ftp/python/3.10.20/Python-3.10.20.tgz

# Extract files
RUN tar -xvf Python-3.9.13.tgz
RUN tar -xvf Python-3.10.20.tgz

# Install python 3.9.13
RUN ./Python-3.9.13/configure --enable-optimizations
# Install python 3.10.20
RUN ./Python-3.10.20/configure --enable-optimizations
RUN make altinstall

###################### Install pip
Expand All @@ -80,4 +80,4 @@ RUN wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
# Test pip
RUN python3 -m pip

CMD ["python3.9"]
CMD ["python3.10"]
2 changes: 1 addition & 1 deletion .kokoro/presubmit/release.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Run system tests in presubmit for library releases
env_vars: {
key: "NOX_SESSION"
value: "system-3.9 unit"
value: "system-3.10 unit"
}

# Run system tests in parallel, splitting up by file
Expand Down
13 changes: 0 additions & 13 deletions .kokoro/presubmit/unit_3-9.cfg

This file was deleted.

13 changes: 0 additions & 13 deletions .kokoro/presubmit/unit_langchain_py39.cfg

This file was deleted.

40 changes: 0 additions & 40 deletions .kokoro/samples/python3.9/common.cfg

This file was deleted.

6 changes: 0 additions & 6 deletions .kokoro/samples/python3.9/continuous.cfg

This file was deleted.

11 changes: 0 additions & 11 deletions .kokoro/samples/python3.9/periodic-head.cfg

This file was deleted.

6 changes: 0 additions & 6 deletions .kokoro/samples/python3.9/periodic.cfg

This file was deleted.

6 changes: 0 additions & 6 deletions .kokoro/samples/python3.9/presubmit.cfg

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,11 @@ In order to use this library, you first need to go through the following steps:

Supported Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^
Python >= 3.9
Python >= 3.10

Deprecated Python Versions
^^^^^^^^^^^^^^^^^^^^^^^^^^
Python <= 3.8.
Python <= 3.9.

The last version of this library compatible with Python 3.8 is google-cloud-aiplatform==1.90.0.

Expand Down
12 changes: 6 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
"recommonmark",
)

UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
UNIT_TEST_LANGCHAIN_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
UNIT_TEST_AG2_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
UNIT_TEST_LLAMA_INDEX_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
UNIT_TEST_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
UNIT_TEST_LANGCHAIN_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
UNIT_TEST_AG2_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
UNIT_TEST_LLAMA_INDEX_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
PYTHON_TO_RAY_VERSIONS = {
"3.10": ["2.33.0", "2.42.0"],
"3.11": ["2.42.0", "2.47.1"],
Expand Down Expand Up @@ -459,7 +459,7 @@ def cover(session):
session.run("coverage", "erase")


@nox.session(python="3.9", venv_backend="virtualenv")
@nox.session(python="3.10", venv_backend="virtualenv")
def docs(session):
"""Build the docs for this library."""

Expand Down Expand Up @@ -519,7 +519,7 @@ def docfx(session):
)


@nox.session(python="3.9", venv_backend="virtualenv")
@nox.session(python="3.10", venv_backend="virtualenv")
def gemini_docs(session):
"""Build the docs for library related to Gemini."""

Expand Down
8 changes: 3 additions & 5 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"noxfile.py",
"testing",
"docs/conf.py",
"*.tar.gz"
"*.tar.gz",
],
)
has_generator_updates = True
Expand All @@ -98,8 +98,8 @@

templated_files = common.py_library(
cov_level=98,
system_test_python_versions=["3.9"],
unit_test_python_versions=["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"],
system_test_python_versions=["3.10"],
unit_test_python_versions=["3.10", "3.11", "3.12", "3.13", "3.14"],
unit_test_extras=["testing"],
system_test_extras=["testing"],
microgenerator=True,
Expand All @@ -122,12 +122,10 @@
".kokoro/samples/python3.8/**",
# exclude sample configs so periodic samples are tested against main
# instead of pypi
".kokoro/samples/python3.9/common.cfg",
".kokoro/samples/python3.10/common.cfg",
".kokoro/samples/python3.11/common.cfg",
".kokoro/samples/python3.12/common.cfg",
".kokoro/samples/python3.13/common.cfg",
".kokoro/samples/python3.9/periodic.cfg",
".kokoro/samples/python3.10/periodic.cfg",
".kokoro/samples/python3.11/periodic.cfg",
".kokoro/samples/python3.12/periodic.cfg",
Expand Down
2 changes: 1 addition & 1 deletion pypi/_vertex_ai_placeholder/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
license = {text = "Apache 2.0"}
description = "Please run pip install vertexai to use the Vertex SDK."
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.10"

[project.urls]
repository = "https://github.com/googleapis/python-aiplatform.git"
1 change: 0 additions & 1 deletion pypi/_vertex_ai_placeholder/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,13 @@
"llama_index": llama_index_extra_require,
"llama_index_testing": llama_index_testing_extra_require,
},
python_requires=">=3.9",
python_requires=">=3.10",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"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",
Expand Down
42 changes: 18 additions & 24 deletions vertexai/_genai/types/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -8349,14 +8349,12 @@ class CreateAgentEngineConfig(_common.BaseModel):
- If `source_packages` is specified, the agent framework will
default to "custom".""",
)
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]] = (
Field(
default=None,
description="""The Python version to be used for the Agent Engine.
python_version: Optional[Literal["3.10", "3.11", "3.12", "3.13", "3.14"]] = Field(
default=None,
description="""The Python version to be used for the Agent Engine.
If not specified, it will use the current Python version of the environment.
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
Supported versions: "3.10", "3.11", "3.12", "3.13", "3.14".
""",
)
)
build_options: Optional[dict[str, list[str]]] = Field(
default=None,
Expand Down Expand Up @@ -8496,10 +8494,10 @@ class CreateAgentEngineConfigDict(TypedDict, total=False):
- If `source_packages` is specified, the agent framework will
default to "custom"."""

python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]]
python_version: Optional[Literal["3.10", "3.11", "3.12", "3.13", "3.14"]]
"""The Python version to be used for the Agent Engine.
If not specified, it will use the current Python version of the environment.
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
Supported versions: "3.10", "3.11", "3.12", "3.13", "3.14".
"""

build_options: Optional[dict[str, list[str]]]
Expand Down Expand Up @@ -9018,14 +9016,12 @@ class UpdateAgentEngineConfig(_common.BaseModel):
- If `source_packages` is specified, the agent framework will
default to "custom".""",
)
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]] = (
Field(
default=None,
description="""The Python version to be used for the Agent Engine.
python_version: Optional[Literal["3.10", "3.11", "3.12", "3.13", "3.14"]] = Field(
default=None,
description="""The Python version to be used for the Agent Engine.
If not specified, it will use the current Python version of the environment.
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
Supported versions: "3.10", "3.11", "3.12", "3.13", "3.14".
""",
)
)
build_options: Optional[dict[str, list[str]]] = Field(
default=None,
Expand Down Expand Up @@ -9170,10 +9166,10 @@ class UpdateAgentEngineConfigDict(TypedDict, total=False):
- If `source_packages` is specified, the agent framework will
default to "custom"."""

python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]]
python_version: Optional[Literal["3.10", "3.11", "3.12", "3.13", "3.14"]]
"""The Python version to be used for the Agent Engine.
If not specified, it will use the current Python version of the environment.
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
Supported versions: "3.10", "3.11", "3.12", "3.13", "3.14".
"""

build_options: Optional[dict[str, list[str]]]
Expand Down Expand Up @@ -17210,14 +17206,12 @@ class AgentEngineConfig(_common.BaseModel):
- If `source_packages` is specified, the agent framework will
default to "custom".""",
)
python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]] = (
Field(
default=None,
description="""The Python version to be used for the Agent Engine.
python_version: Optional[Literal["3.10", "3.11", "3.12", "3.13", "3.14"]] = Field(
default=None,
description="""The Python version to be used for the Agent Engine.
If not specified, it will use the current Python version of the environment.
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
Supported versions: "3.10", "3.11", "3.12", "3.13", "3.14".
""",
)
)
build_options: Optional[dict[str, list[str]]] = Field(
default=None,
Expand Down Expand Up @@ -17400,10 +17394,10 @@ class AgentEngineConfigDict(TypedDict, total=False):
- If `source_packages` is specified, the agent framework will
default to "custom"."""

python_version: Optional[Literal["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]]
python_version: Optional[Literal["3.10", "3.11", "3.12", "3.13", "3.14"]]
"""The Python version to be used for the Agent Engine.
If not specified, it will use the current Python version of the environment.
Supported versions: "3.9", "3.10", "3.11", "3.12", "3.13", "3.14".
Supported versions: "3.10", "3.11", "3.12", "3.13", "3.14".
"""

build_options: Optional[dict[str, list[str]]]
Expand Down
2 changes: 1 addition & 1 deletion vertexai/agent_engines/_agent_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@


_LOGGER = _utils.LOGGER
_SUPPORTED_PYTHON_VERSIONS = ("3.9", "3.10", "3.11", "3.12", "3.13", "3.14")
_SUPPORTED_PYTHON_VERSIONS = ("3.10", "3.11", "3.12", "3.13", "3.14")
_DEFAULT_GCS_DIR_NAME = "agent_engine"
_BLOB_FILENAME = "agent_engine.pkl"
_REQUIREMENTS_FILE = "requirements.txt"
Expand Down
4 changes: 2 additions & 2 deletions vertexai/reasoning_engines/_reasoning_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@


_LOGGER = base.Logger(__name__)
_SUPPORTED_PYTHON_VERSIONS = ("3.9", "3.10", "3.11", "3.12", "3.13", "3.14")
_SUPPORTED_PYTHON_VERSIONS = ("3.10", "3.11", "3.12", "3.13", "3.14")
_DEFAULT_GCS_DIR_NAME = "reasoning_engine"
_BLOB_FILENAME = "reasoning_engine.pkl"
_REQUIREMENTS_FILE = "requirements.txt"
Expand Down Expand Up @@ -224,7 +224,7 @@ def create(
use for staging the artifacts needed.
sys_version (str):
Optional. The Python system version used. Currently supports any
of "3.9", "3.10", "3.11", "3.12", "3.13". If not specified,
of "3.10", "3.11", "3.12", "3.13". If not specified,
it defaults to the "{major}.{minor}" attributes of
sys.version_info.
extra_packages (Sequence[str]):
Expand Down
Loading