Skip to content

Commit 4aee748

Browse files
Python 3.11 upgrade (#39)
* perf(3.11): torch requirements * perf(3.11): python upgrade * perf(3.11): upgrades * ci: empty commit * ci: trigger build * ci: run build * ci: run build * perf: image cleanup * perf: delete app branches on pr close * ci: run workflow
1 parent 23f18c4 commit 4aee748

11 files changed

+191
-116
lines changed

.github/workflows/pi_merge.yml

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
pull_request:
77
types: [closed]
8-
8+
99
permissions:
1010
id-token: write
1111
contents: write
@@ -15,4 +15,58 @@ jobs:
1515
call-pi-merge-parent-image:
1616
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_merge_submodule.yml@dev
1717
if: ${{ github.event.pull_request.merged }}
18-
secrets: inherit
18+
secrets: inherit
19+
20+
pi-matrix:
21+
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_matrix.yml@dev
22+
if: ${{ !github.event.pull_request.merged && github.event.pull_request.head.ref == 'parent-image-updates' }}
23+
secrets: inherit
24+
with:
25+
checkout_ref: parent-image-updates
26+
repository: "${{ github.repository_owner }}/refinery-submodule-parent-images"
27+
28+
call-dc-registry-delete:
29+
name: 'Docker: Delete Branch Images'
30+
needs: [pi-matrix]
31+
uses: code-kern-ai/cicd-deployment-scripts/.github/workflows/dc_registry_delete.yml@dev
32+
secrets: inherit
33+
strategy:
34+
matrix:
35+
parent_image_type: ${{ fromJson(needs.pi-matrix.outputs.parent_image_type) }}
36+
with:
37+
delete_tag: ${{ github.event.pull_request.head.ref }}-${{ matrix.parent_image_type }}
38+
app_name: ${{ vars.PARENT_IMAGE_NAME}}
39+
40+
gh-delete-submodule-branches:
41+
name: 'GitHub: Delete Submodule Branch'
42+
needs: [call-dc-registry-delete]
43+
if: ${{ !failure() }}
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Checkout repository
47+
uses: actions/checkout@v4
48+
with:
49+
token: ${{ secrets.GH_TOKEN }}
50+
51+
- name: Delete Branch
52+
shell: bash
53+
run: git push origin --delete ${{ github.event.pull_request.head.ref }}
54+
55+
gh-delete-app-branches:
56+
name: 'GitHub: Delete App Branch'
57+
needs: [pi-matrix, gh-delete-submodule-branches]
58+
if: ${{ !failure() }}
59+
runs-on: ubuntu-latest
60+
strategy:
61+
matrix:
62+
app: ${{ fromJson(needs.pi-matrix.outputs.app) }}
63+
steps:
64+
- name: Checkout repository
65+
uses: actions/checkout@v4
66+
with:
67+
repository: "${{ github.repository_owner }}/${{ matrix.app }}"
68+
token: ${{ secrets.GH_TOKEN }}
69+
70+
- name: Delete Branch
71+
shell: bash
72+
run: git push origin --delete ${{ github.event.pull_request.head.ref }}

requirements/common-requirements.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-r mini-requirements.in
2-
boto3==1.25.0
3-
minio==7.1.12
2+
boto3==1.39.6
3+
minio==7.2.15
44
numpy==1.23.4
55
pandas==1.5.1
66
psycopg2-binary==2.9.9

requirements/common-requirements.txt

Lines changed: 21 additions & 15 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.9
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
55
# pip-compile common-requirements.in
@@ -8,22 +8,26 @@ annotated-types==0.7.0
88
# via pydantic
99
anyio==4.9.0
1010
# via starlette
11-
boto3==1.25.0
11+
argon2-cffi==25.1.0
12+
# via minio
13+
argon2-cffi-bindings==21.2.0
14+
# via argon2-cffi
15+
boto3==1.39.6
1216
# via -r common-requirements.in
13-
botocore==1.28.5
17+
botocore==1.39.6
1418
# via
1519
# boto3
1620
# s3transfer
17-
certifi==2025.6.15
21+
certifi==2025.7.14
1822
# via
1923
# minio
2024
# requests
25+
cffi==1.17.1
26+
# via argon2-cffi-bindings
2127
charset-normalizer==3.4.2
2228
# via requests
23-
click==8.1.8
29+
click==8.2.1
2430
# via uvicorn
25-
exceptiongroup==1.3.0
26-
# via anyio
2731
fastapi==0.115.2
2832
# via -r mini-requirements.in
2933
h11==0.16.0
@@ -36,7 +40,7 @@ jmespath==1.0.1
3640
# via
3741
# boto3
3842
# botocore
39-
minio==7.1.12
43+
minio==7.2.15
4044
# via -r common-requirements.in
4145
numpy==1.23.4
4246
# via
@@ -46,6 +50,10 @@ pandas==1.5.1
4650
# via -r common-requirements.in
4751
psycopg2-binary==2.9.9
4852
# via -r common-requirements.in
53+
pycparser==2.22
54+
# via cffi
55+
pycryptodome==3.23.0
56+
# via minio
4957
pydantic==2.7.4
5058
# via
5159
# -r mini-requirements.in
@@ -58,9 +66,9 @@ python-dateutil==2.9.0.post0
5866
# pandas
5967
pytz==2025.2
6068
# via pandas
61-
requests==2.31.0
69+
requests==2.32.4
6270
# via -r mini-requirements.in
63-
s3transfer==0.6.2
71+
s3transfer==0.13.0
6472
# via boto3
6573
six==1.17.0
6674
# via python-dateutil
@@ -70,16 +78,14 @@ sqlalchemy==1.4.42
7078
# via -r common-requirements.in
7179
starlette==0.40.0
7280
# via fastapi
73-
typing-extensions==4.14.0
81+
typing-extensions==4.14.1
7482
# via
7583
# anyio
76-
# exceptiongroup
7784
# fastapi
85+
# minio
7886
# pydantic
7987
# pydantic-core
80-
# starlette
81-
# uvicorn
82-
urllib3==1.26.20
88+
urllib3==2.5.0
8389
# via
8490
# botocore
8591
# minio
Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
1+
aiohttp==3.12.14
12
beautifulsoup4==4.11.1
3+
better_profanity==0.7.0
4+
flashtext==2.7
25
fuzzywuzzy==0.18.0
6+
google-search-results==2.4.1
7+
groq==0.4.2
8+
holidays==0.21.13
9+
jinja2==3.1.6
10+
knowledge==0.3
311
langdetect==1.0.9
412
LeXmo==0.1.4
5-
nltk==3.8.1
13+
nltk==3.9.1
614
numpy==1.23.4
15+
openai==0.27.7
716
phonenumbers==8.13.0
17+
pydantic==2.7.4
818
python-levenshtein==0.20.8
919
quantulum3==0.7.11
10-
requests==2.31.0
11-
scikit-learn==1.1.2
12-
jinja2==3.1.6
13-
spacy[ja]==3.4.2
20+
requests==2.32.4
21+
scikit-learn==1.5.0
22+
spacy[ja]==3.7.5
23+
stemming==1.0.1
24+
textacy==0.13.0
1425
textblob==0.17.1
1526
textstat==0.7.3
27+
tiktoken==0.4.0
1628
translate==3.6.1
17-
better_profanity==0.7.0
18-
flashtext==2.7
19-
stemming==1.0.1
20-
openai==0.27.7
21-
google-search-results==2.4.1
2229
vaderSentiment==3.3.2
23-
textacy==0.13.0
2430
scikit-optimize==0.9.0
25-
holidays==0.21.13
26-
sumy==0.11.0
27-
knowledge==0.3
28-
tiktoken==0.4.0
29-
groq==0.4.2
31+
sumy==0.11.0

0 commit comments

Comments
 (0)