Skip to content

Commit c8a0b8d

Browse files
committed
upgrade to python 3.12
1 parent 288d464 commit c8a0b8d

17 files changed

+83
-78
lines changed

.github/workflows/code_coverage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ jobs:
4747
##############
4848
# Python tests
4949
##############
50-
- name: Setup Python 3.11
50+
- name: Setup Python 3.12
5151
uses: actions/setup-python@v4
5252
with:
53-
python-version: '3.11'
53+
python-version: '3.12'
5454

5555
- name: Install Dependencies (Python)
5656
run: |
5757
python3 -m pip install --upgrade pip
58-
pip install -r requirements.txt
59-
pip install -r requirements-dev.txt
58+
pip install -r requirements-x86_64.txt
59+
pip install -r requirements-dev-x86_64.txt
6060
pip install .
6161
6262
- name: Retrieve ari knowledge base from s3

.github/workflows/pip_audit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030
- name: Set up Python ${{ matrix.python-version }}
3131
uses: actions/setup-python@v4
3232
with:
33-
python-version: 3.11
33+
python-version: 3.12
3434
- name: install
3535
run: |
3636
python -m venv env/
3737
source env/bin/activate
38-
python -m pip install . -rrequirements.txt
38+
python -m pip install . -r requirements-x86_64.txt
3939
# See: https://github.com/advisories/GHSA-r9hx-vwmv-q579
4040
pip install --upgrade setuptools
4141
- name: Create CA symlink to use RH's certifi on ubuntu-latest

.github/workflows/pip_compile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up Python ${{ matrix.python-version }}
4141
uses: actions/setup-python@v4
4242
with:
43-
python-version: 3.11
43+
python-version: 3.12
4444
- name: Identify arch
4545
run: |
4646
echo "ARCH=$(uname -m)" >> "$GITHUB_ENV"

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up python3
3131
uses: actions/setup-python@v4
3232
with:
33-
python-version: '3.11'
33+
python-version: '3.12'
3434

3535
- name: Install dependencies
3636
run: |

.github/workflows/pyright.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18-
- name: Setup Python 3.11
18+
- name: Setup Python 3.12
1919
uses: actions/setup-python@v4
2020
with:
21-
python-version: '3.11'
21+
python-version: '3.12'
2222
- name: install
2323
run: |
2424
pip install pyright django boto3 requests prometheus_client backoff django_prometheus langchain langchain-ollama django-health-check aiohttp ansible-lint ansible_anonymizer

.github/workflows/security_report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111

1212
- uses: actions/setup-python@v4
1313
with:
14-
python-version: '3.11'
14+
python-version: '3.12'
1515
- uses: snyk/actions/setup@master
1616
- name: Install dependencies
1717
run: |
1818
python3 -m pip install --upgrade pip
19-
pip install -r requirements.txt
20-
pip install -r requirements-dev.txt
19+
pip install -r requirements-x86_64.txt
20+
pip install -r requirements-dev-x86_64.txt
2121
pip install .
2222
2323
- name: Monitor project and report vulnerabilities

docs/pycharm-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ apply them to other environments, e.g. VSCode + MacOS with minor modifications.
1010

1111
The instructions presented here were tested using
1212
- PyCharm 2024.1.4 (Community Edition),
13-
- Python 3.11.9,
13+
- Python 3.12.0,
1414
- Fedora Linux 40 (Workstation Edition), and
1515
- HP Victus Gaming Laptop 16
1616

pyproject.toml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ dependencies = [
1313
'ansible-risk-insight~=0.2.7',
1414
'ansible-lint~=24.2.2',
1515
'boto3~=1.40',
16+
'cython',
1617
'daphne~=4.1.2',
17-
'Django~=4.2.26',
18+
'Django~=4.2.27',
1819
'django-deprecate-fields~=0.1.1',
1920
'django-extensions~=3.2.1',
2021
'django-health-check~=3.17.0',
@@ -29,31 +30,32 @@ dependencies = [
2930
'jwcrypto~=1.5.6',
3031
'jinja2~=3.1.6',
3132
'langchain~=0.3.10',
33+
'langchain-core>=0.3.80',
3234
'langchain-ollama~=0.3.5',
3335
'langchain-text-splitters~=0.3.11',
3436
'launchdarkly-server-sdk~=8.3.0',
3537
'llama-stack-client>=0.2.12',
3638
'protobuf~=5.29.5',
37-
'psycopg~=3.1.8',
39+
'psycopg~=3.2.3',
3840
'PyDrive2~=1.20.0',
3941
'pydantic==2.*',
4042
'pytz',
41-
'PyYAML~=6.0',
42-
'requests~=2.32.0',
43+
'PyYAML>=6.0',
44+
'requests~=2.32.3',
4345
'segment-analytics-python~=2.2.2',
4446
'slack-sdk~=3.31.0',
4547
'social-auth-app-django~=5.4.1',
4648
'social-auth-core[openidconnect]>=4.4.2',
47-
'urllib3>=2.4',
48-
'uwsgi~=2.0.22',
49+
'urllib3>=2.6.0',
50+
'uwsgi~=2.0.28',
4951
'uwsgi-readiness-check~=0.2.0',
5052
'django-allow-cidr',
5153
'django-csp~=3.7',
5254
'django-ansible-base[jwt-consumer,resource-registry]>=2025.8.18',
5355
]
5456
readme = "README.rst"
5557
license = {text = "Apache-2.0"}
56-
requires-python = ">=3.11"
58+
requires-python = ">=3.12"
5759
classifiers = [
5860
"Framework :: Django",
5961
"Programming Language :: Python :: 3",
@@ -101,5 +103,5 @@ exclude = ["**/test_*.py", "ansible_ai_connect/*/migrations/*.py"]
101103
reportMissingImports = false
102104
reportMissingTypeStubs = false
103105

104-
pythonVersion = "3.11"
106+
pythonVersion = "3.12"
105107
pythonPlatform = "Linux"

requirements-aarch64.txt

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# pip-compile --output-file=requirements-aarch64.txt requirements.in
@@ -106,7 +106,7 @@ diff-match-patch==20230430
106106
# via django-import-export
107107
distro==1.9.0
108108
# via llama-stack-client
109-
django==4.2.26
109+
django==4.2.27
110110
# via
111111
# -r requirements.in
112112
# django-allow-cidr
@@ -253,8 +253,9 @@ jwcrypto==1.5.6
253253
# django-oauth-toolkit
254254
langchain==0.3.26
255255
# via -r requirements.in
256-
langchain-core==0.3.79
256+
langchain-core==0.3.80
257257
# via
258+
# -r requirements.in
258259
# langchain
259260
# langchain-ollama
260261
# langchain-text-splitters
@@ -347,9 +348,9 @@ protobuf==5.29.5
347348
# google-api-core
348349
# googleapis-common-protos
349350
# proto-plus
350-
psycopg[binary]==3.1.8
351+
psycopg[binary]==3.2.3
351352
# via -r requirements.in
352-
psycopg-binary==3.1.8
353+
psycopg-binary==3.2.3
353354
# via psycopg
354355
ptyprocess==0.7.0
355356
# via pexpect
@@ -412,7 +413,7 @@ pytz==2024.1
412413
# -r requirements.in
413414
# pandas
414415
# pyrfc3339
415-
pyyaml==6.0
416+
pyyaml==6.0.2
416417
# via
417418
# -r requirements.in
418419
# ansible-compat
@@ -432,7 +433,7 @@ referencing==0.35.0
432433
# via
433434
# jsonschema
434435
# jsonschema-specifications
435-
requests==2.32.0
436+
requests==2.32.3
436437
# via
437438
# -r requirements.in
438439
# ansible-risk-insight
@@ -533,7 +534,7 @@ twisted[tls]==24.11.0
533534
# via daphne
534535
txaio==23.1.1
535536
# via autobahn
536-
typing-extensions==4.11.0
537+
typing-extensions==4.12.2
537538
# via
538539
# aiosignal
539540
# django-test-migrations
@@ -551,14 +552,14 @@ uritemplate==4.1.1
551552
# via
552553
# drf-spectacular
553554
# google-api-python-client
554-
urllib3==2.5.0
555+
urllib3==2.6.0
555556
# via
556557
# -r requirements.in
557558
# botocore
558559
# django-ansible-base
559560
# launchdarkly-server-sdk
560561
# requests
561-
uwsgi==2.0.22
562+
uwsgi==2.0.28
562563
# via -r requirements.in
563564
uwsgi-readiness-check==0.2.0
564565
# via -r requirements.in

requirements-dev-aarch64.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.11
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# pip-compile --constraint=requirements-aarch64.txt --output-file=requirements-dev-aarch64.txt requirements-dev.in
@@ -90,21 +90,21 @@ pyproject-hooks==1.0.0
9090
# via
9191
# build
9292
# pip-tools
93-
pyyaml==6.0
93+
pyyaml==6.0.2
9494
# via
9595
# -c requirements-aarch64.txt
9696
# pre-commit
9797
# responses
9898
# yamllint
99-
requests==2.32.0
99+
requests==2.32.3
100100
# via
101101
# -c requirements-aarch64.txt
102102
# responses
103103
responses==0.24.1
104104
# via -r requirements-dev.in
105105
torch-model-archiver==0.10.0
106106
# via -r requirements-dev.in
107-
urllib3==2.5.0
107+
urllib3==2.6.0
108108
# via
109109
# -c requirements-aarch64.txt
110110
# requests

0 commit comments

Comments
 (0)