Skip to content

Commit 5d9e945

Browse files
speedstorm1copybara-github
authored andcommitted
chore: chore
PiperOrigin-RevId: 856842811
1 parent 53532eb commit 5d9e945

File tree

21 files changed

+43
-67
lines changed

21 files changed

+43
-67
lines changed

.github/sync-repo-settings.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ branchProtectionRules:
1616
- 'cla/google'
1717
- 'Kokoro docs-presubmit'
1818
- 'Presubmit - Lint and Coverage'
19-
- 'Presubmit - Unit Tests Python 3.9'
19+
2020
- 'Presubmit - Unit Tests Python 3.10'
2121
- 'Presubmit - Unit Tests Python 3.11'
2222
- 'Presubmit - Unit Tests Python 3.12'
@@ -27,7 +27,7 @@ branchProtectionRules:
2727
- 'Presubmit - Unit Tests Ray 2.42.0 (Python 3.10)'
2828
- 'Presubmit - Unit Tests Ray 2.42.0 (Python 3.11)'
2929
- 'Presubmit - Unit Tests Ray 2.47.1 (Python 3.11)'
30-
- 'Presubmit - Unit Tests LangChain (Python 3.9)'
30+
3131
- 'Presubmit - Unit Tests LangChain (Python 3.10)'
3232
- 'Presubmit - Unit Tests LangChain (Python 3.11)'
3333
- 'Presubmit - Unit Tests LangChain (Python 3.12)'

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
19+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
2020

2121
steps:
2222
- name: Checkout code

.kokoro/continuous/unit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Format: //devtools/kokoro/config/proto/build.proto
22

3-
# Run all unit test sessions, in Python 3.7 to 3.9
3+
# Run all unit test sessions
44
env_vars: {
55
key: "NOX_SESSION"
66
value: "unit"

.kokoro/docker/docs/Dockerfile

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -60,24 +60,11 @@ RUN apt-get update \
6060
&& rm -rf /var/lib/apt/lists/* \
6161
&& rm -f /var/cache/apt/archives/*.deb
6262

63-
###################### Install python 3.9.13
64-
65-
# Download python 3.9.13
66-
RUN wget https://www.python.org/ftp/python/3.9.13/Python-3.9.13.tgz
67-
68-
# Extract files
69-
RUN tar -xvf Python-3.9.13.tgz
70-
71-
# Install python 3.9.13
72-
RUN ./Python-3.9.13/configure --enable-optimizations
73-
RUN make altinstall
74-
75-
###################### Install pip
76-
RUN wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
77-
&& python3 /tmp/get-pip.py \
78-
&& rm /tmp/get-pip.py
79-
80-
# Test pip
81-
RUN python3 -m pip
82-
83-
CMD ["python3.9"]
63+
###################### Install python 3.10.13
64+
# Download python 3.10.13
65+
RUN wget https://www.python.org/ftp/python/3.10.13/Python-3.10.13.tgz
66+
RUN tar -xvf Python-3.10.13.tgz
67+
# Install python 3.10.13
68+
RUN ./Python-3.10.13/configure --enable-optimizations
69+
RUN make install
70+
CMD ["python3.10"]

.kokoro/presubmit/presubmit.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Format: //devtools/kokoro/config/proto/build.proto
22

33
# Run all sessions except system tests and docs builds
4-
# This only runs unit tests for Python 3.9 since unit tests are required for `cover` to run
4+
# This only runs unit tests for Python 3.10 since unit tests are required for `cover` to run
55
# Other Python version unit tests are run separately
66
env_vars: {
77
key: "NOX_SESSION"
8-
value: "unit-3.9 lint lint_setup_py blacken cover"
8+
value: "unit-3.10 lint lint_setup_py blacken cover"
99
}
1010

1111
# Run unit tests in parallel, splitting up by file

.kokoro/presubmit/release.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Run system tests in presubmit for library releases
44
env_vars: {
55
key: "NOX_SESSION"
6-
value: "system-3.9 unit"
6+
value: "system-3.10 unit"
77
}
88

99
# Run system tests in parallel, splitting up by file

.kokoro/presubmit/unit_3-9.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Run unit tests for Python 3.9
44
env_vars: {
55
key: "NOX_SESSION"
6-
value: "unit-3.9"
6+
value: "unit-3.10"
77
}
88

99
# Run unit tests in parallel, splitting up by file

.kokoro/presubmit/unit_langchain_py39.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Run unit tests for LangChain on Python 3.9
44
env_vars: {
55
key: "NOX_SESSION"
6-
value: "unit_langchain-3.9"
6+
value: "unit_langchain-3.10"
77
}
88

99
# Run unit tests in parallel, splitting up by file

CONTRIBUTING.rst

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions:
25-
3.9, 3.10, 3.11, 3.12, and 3.13 on both UNIX and Windows.
25+
3.10, 3.11, 3.12, and 3.13 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -146,10 +146,7 @@ Running System Tests
146146
$ nox -s system-3.9 -- -k <name of test>
147147

148148

149-
.. note::
150149

151-
System tests are only configured to run under Python 3.9.
152-
For expediency, we do not run them in older versions of Python 3.
153150

154151
This alone will not run the tests. You'll need to change some local
155152
auth settings and change some configuration in your project to
@@ -195,11 +192,11 @@ configure them just like the System Tests.
195192

196193
# Run all tests in a folder
197194
$ cd samples/snippets
198-
$ nox -s py-3.9
195+
$ nox -s py-3.10
199196

200197
# Run a single sample test
201198
$ cd samples/snippets
202-
$ nox -s py-3.9 -- -k <name of test>
199+
$ nox -s py-3.10 -- -k <name of test>
203200

204201
********************************************
205202
Note About ``README`` as it pertains to PyPI
@@ -221,13 +218,11 @@ Supported Python Versions
221218

222219
We support:
223220

224-
- `Python 3.9`_
225221
- `Python 3.10`_
226222
- `Python 3.11`_
227223
- `Python 3.12`_
228224
- `Python 3.13`_
229225

230-
.. _Python 3.9: https://docs.python.org/3.9/
231226
.. _Python 3.10: https://docs.python.org/3.10/
232227
.. _Python 3.11: https://docs.python.org/3.11/
233228
.. _Python 3.12: https://docs.python.org/3.12/
@@ -239,7 +234,7 @@ Supported versions can be found in our ``noxfile.py`` `config`_.
239234
.. _config: https://github.com/googleapis/python-aiplatform/blob/main/noxfile.py
240235

241236

242-
We also explicitly decided to support Python 3 beginning with version 3.9.
237+
We also explicitly decided to support Python 3 beginning with version 3.10.
243238
Reasons for this include:
244239

245240
- Encouraging use of newest versions of Python 3

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ In order to use this library, you first need to go through the following steps:
319319

320320
Supported Python Versions
321321
^^^^^^^^^^^^^^^^^^^^^^^^^
322-
Python >= 3.9
322+
Python >= 3.10
323323

324324
Deprecated Python Versions
325325
^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)