Skip to content

Commit f59919c

Browse files
authored
Upgrade to Python 3.11 (#107)
* Upgrade to Python 3.11 * Upgrade all requirements * Don't deploy to prod for now
1 parent 7df5a2f commit f59919c

File tree

4 files changed

+306
-303
lines changed

4 files changed

+306
-303
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Set up Python
1111
uses: actions/setup-python@v2
1212
with:
13-
python-version: '3.7'
13+
python-version: '3.11'
1414
- name: Upgrade python tooling
1515
run: python -m pip install --upgrade pip setuptools wheel
1616
- name: Install dependencies

.python-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.7.6
1+
3.11.2

cloudbuild.yaml

+22-22
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,38 @@ steps:
44
'functions', 'deploy', 'linehaul-staging-ingestor',
55
'--trigger-resource', 'linehaul-logs-staging',
66
'--trigger-event', 'google.storage.object.finalize',
7-
'--runtime', 'python37',
8-
'--source', '.',
9-
'--entry-point', 'process_fastly_log',
10-
'--retry'
11-
]
12-
waitFor: ['-']
13-
- name: 'gcr.io/cloud-builders/gcloud'
14-
args: [
15-
'functions', 'deploy', 'linehaul-ingestor',
16-
'--trigger-resource', 'linehaul-logs',
17-
'--trigger-event', 'google.storage.object.finalize',
18-
'--runtime', 'python37',
7+
'--runtime', 'python311',
198
'--source', '.',
209
'--entry-point', 'process_fastly_log',
2110
'--retry'
2211
]
2312
waitFor: ['-']
13+
#- name: 'gcr.io/cloud-builders/gcloud'
14+
# args: [
15+
# 'functions', 'deploy', 'linehaul-ingestor',
16+
# '--trigger-resource', 'linehaul-logs',
17+
# '--trigger-event', 'google.storage.object.finalize',
18+
# '--runtime', 'python311',
19+
# '--source', '.',
20+
# '--entry-point', 'process_fastly_log',
21+
# '--retry'
22+
# ]
23+
# waitFor: ['-']
2424
- name: 'gcr.io/cloud-builders/gcloud'
2525
args: [
2626
'functions', 'deploy', 'linehaul-staging-publisher',
2727
'--trigger-topic', 'linehaul-staging-publisher-topic',
28-
'--runtime', 'python37',
29-
'--source', '.',
30-
'--entry-point', 'load_processed_files_into_bigquery',
31-
]
32-
waitFor: ['-']
33-
- name: 'gcr.io/cloud-builders/gcloud'
34-
args: [
35-
'functions', 'deploy', 'linehaul-publisher',
36-
'--trigger-topic', 'linehaul-publisher-topic',
37-
'--runtime', 'python37',
28+
'--runtime', 'python311',
3829
'--source', '.',
3930
'--entry-point', 'load_processed_files_into_bigquery',
4031
]
4132
waitFor: ['-']
33+
#- name: 'gcr.io/cloud-builders/gcloud'
34+
# args: [
35+
# 'functions', 'deploy', 'linehaul-publisher',
36+
# '--trigger-topic', 'linehaul-publisher-topic',
37+
# '--runtime', 'python311',
38+
# '--source', '.',
39+
# '--entry-point', 'load_processed_files_into_bigquery',
40+
# ]
41+
# waitFor: ['-']

0 commit comments

Comments
 (0)