Skip to content

Commit fc49ed1

Browse files
committed
fix: drop support for python 3.9 (#9818)
1 parent 1bcee80 commit fc49ed1

File tree

5 files changed

+20
-21
lines changed

5 files changed

+20
-21
lines changed

.github/workflows/python-CI.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ jobs:
187187
if: ${{ needs.changes.outputs.phoenix == 'true' }}
188188
strategy:
189189
matrix:
190-
py: [3.9]
190+
py: ["3.10"]
191191
os: [ubuntu-latest]
192192
runs-on: ${{ matrix.os }}
193193
steps:
@@ -216,7 +216,7 @@ jobs:
216216
if: ${{ needs.changes.outputs.phoenix == 'true' }}
217217
strategy:
218218
matrix:
219-
py: [3.9]
219+
py: ["3.10"]
220220
os: [ubuntu-latest]
221221
runs-on: ${{ matrix.os }}
222222
steps:
@@ -244,7 +244,7 @@ jobs:
244244
if: ${{ needs.changes.outputs.proto == 'true' }}
245245
strategy:
246246
matrix:
247-
py: [3.9]
247+
py: ["3.10"]
248248
os: [ubuntu-latest]
249249
runs-on: ${{ matrix.os }}
250250
steps:
@@ -298,7 +298,7 @@ jobs:
298298
strategy:
299299
fail-fast: false
300300
matrix:
301-
py: [3.9, 3.13]
301+
py: ["3.10", "3.13"]
302302
os: [ubuntu-latest]
303303
steps:
304304
- name: Checkout repository
@@ -336,7 +336,7 @@ jobs:
336336
strategy:
337337
fail-fast: false
338338
matrix:
339-
py: [3.9, 3.13]
339+
py: ["3.10", "3.13"]
340340
os: [ubuntu-latest]
341341
steps:
342342
- name: Checkout repository
@@ -375,7 +375,7 @@ jobs:
375375
strategy:
376376
fail-fast: false
377377
matrix:
378-
py: [3.9, 3.13]
378+
py: ["3.10", "3.13"]
379379
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
380380
exclude:
381381
- py: 3.13
@@ -423,7 +423,7 @@ jobs:
423423
strategy:
424424
fail-fast: false
425425
matrix:
426-
py: [3.9, 3.13]
426+
py: ["3.10", "3.13"]
427427
os: [ubuntu-latest]
428428
steps:
429429
- name: Checkout repository
@@ -461,7 +461,7 @@ jobs:
461461
strategy:
462462
fail-fast: false
463463
matrix:
464-
py: [3.9, 3.13]
464+
py: ["3.10", "3.13"]
465465
db: [sqlite, postgresql]
466466
os: [ubuntu-latest, windows-latest]
467467
exclude:

DEVELOPMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ brew install uv
3030

3131
For non-mac users, you can follow the instruction [here](https://docs.astral.sh/uv/getting-started/installation/) to install `uv` for your particular operating system.
3232

33-
Create a new virtual environment. In general, we recommend developing on the lowest Python version compatible with Phoenix (currently 3.9) to make it easier to write code that is compatible across all supported versions.
33+
Create a new virtual environment. In general, we recommend developing on the lowest Python version compatible with Phoenix (currently 3.10) to make it easier to write code that is compatible across all supported versions.
3434

3535
```bash
36-
uv venv --python 3.9
36+
uv venv --python 3.10
3737
```
3838

3939
Activate your virtual environment before continuing.

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "arize-phoenix"
33
description = "AI Observability and Evaluation"
44
readme = "README.md"
5-
requires-python = ">=3.9, <3.14"
5+
requires-python = ">=3.10, <3.14"
66
license = {text="Elastic-2.0"}
77
license-files = { paths = ["LICENSE", "IP_NOTICE"] }
88
keywords = [
@@ -15,7 +15,6 @@ authors = [
1515
]
1616
classifiers = [
1717
"Programming Language :: Python",
18-
"Programming Language :: Python :: 3.9",
1918
"Programming Language :: Python :: 3.10",
2019
"Programming Language :: Python :: 3.11",
2120
"Programming Language :: Python :: 3.12",

tests/integration/pyrightconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"typeCheckingMode": "strict",
3-
"pythonVersion": "3.9",
3+
"pythonVersion": "3.10",
44
"useLibraryCodeForTypes": true,
55
"reportMissingTypeStubs": false,
66
"reportPrivateUsage": false,

tox.ini

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ allowlist_externals =
214214
find
215215

216216
[testenv:build_graphql_schema]
217-
description = Export GraphQL schema to a file (Python 3.9)
217+
description = Export GraphQL schema to a file (Python 3.10)
218218
recreate = true
219-
basepython = python3.9
219+
basepython = python3.10
220220
changedir = app
221221
deps =
222222
-r requirements/build-graphql-schema.txt
@@ -228,9 +228,9 @@ commands =
228228
strawberry export-schema phoenix.server.api.schema:_EXPORTED_GRAPHQL_SCHEMA -o schema.graphql
229229

230230
[testenv:build_openapi_schema]
231-
description = Export OpenAPI schema to a file (Python 3.9)
231+
description = Export OpenAPI schema to a file (Python 3.10)
232232
recreate = true
233-
basepython = python3.9
233+
basepython = python3.10
234234
changedir = schemas
235235
commands_pre =
236236
uv pip install --strict --reinstall-package arize-phoenix {toxinidir}
@@ -239,8 +239,8 @@ commands =
239239
python -m phoenix.server.api.openapi.main -o openapi.json
240240

241241
[testenv:compile_protobuf]
242-
description = Compile protobuf files (Python 3.9)
243-
basepython = python3.9
242+
description = Compile protobuf files (Python 3.10)
243+
basepython = python3.10
244244
deps =
245245
-r requirements/compile-protobuf.txt
246246
commands =
@@ -349,7 +349,7 @@ commands =
349349
--output-model-type dataclasses.dataclass \
350350
--collapse-root-models \
351351
--enum-field-as-literal all \
352-
--target-python-version 3.9 \
352+
--target-python-version 3.10 \
353353
--use-default-kwarg \
354354
--use-double-quotes \
355355
--use-generic-container-types \
@@ -378,7 +378,7 @@ commands =
378378
--collapse-root-models \
379379
--enable-faux-immutability \
380380
--enum-field-as-literal all \
381-
--target-python-version 3.9 \
381+
--target-python-version 3.10 \
382382
--use-default-kwarg \
383383
--use-double-quotes \
384384
--use-generic-container-types \

0 commit comments

Comments
 (0)