Skip to content

Commit 51098ac

Browse files
committed
Merge remote-tracking branch 'origin/main' into dl-async
2 parents 2a533c2 + 0ab5f03 commit 51098ac

13 files changed

+226
-44
lines changed

.github/blunderbuss.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
assign_prs:
2-
- HKwinterhalter
3-
- nifflets
4-
- liuyunnnn
51

6-
assign_issues:
7-
- HKwinterhalter
8-
- nifflets
9-
- liuyunnnn

.github/workflows/buildpack-integration-test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,29 @@ jobs:
5858
builder-runtime: 'python310'
5959
builder-runtime-version: '3.10'
6060
start-delay: 5
61+
python311:
62+
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
63+
with:
64+
http-builder-source: 'tests/conformance'
65+
http-builder-target: 'write_http_declarative'
66+
cloudevent-builder-source: 'tests/conformance'
67+
cloudevent-builder-target: 'write_cloud_event_declarative'
68+
prerun: 'tests/conformance/prerun.sh ${{ github.sha }}'
69+
builder-runtime: 'python311'
70+
builder-runtime-version: '3.11'
71+
start-delay: 5
72+
# Python 3.12 conformance tests are disabled due to the buildpack defaulting to
73+
# Ubuntu 18.04, which has no Python 3.12 version, and being unable to specify
74+
# the OS/stack via the conformance test configuration
75+
#
76+
# python312:
77+
# uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
78+
# with:
79+
# http-builder-source: 'tests/conformance'
80+
# http-builder-target: 'write_http_declarative'
81+
# cloudevent-builder-source: 'tests/conformance'
82+
# cloudevent-builder-target: 'write_cloud_event_declarative'
83+
# prerun: 'tests/conformance/prerun.sh ${{ github.sha }}'
84+
# builder-runtime: 'python312'
85+
# builder-runtime-version: '3.12'
86+
# start-delay: 5

.github/workflows/codeql.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
steps:
4343
- name: Harden Runner
44-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
44+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
4545
with:
4646
disable-sudo: true
4747
egress-policy: block
@@ -53,11 +53,11 @@ jobs:
5353
objects.githubusercontent.com:443
5454
5555
- name: Checkout repository
56-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
56+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5757

5858
# Initializes the CodeQL tools for scanning.
5959
- name: Initialize CodeQL
60-
uses: github/codeql-action/init@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11
60+
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
6161
with:
6262
languages: ${{ matrix.language }}
6363
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -67,7 +67,7 @@ jobs:
6767
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6868
# If this step fails, then you should remove it and run the build manually (see below)
6969
- name: Autobuild
70-
uses: github/codeql-action/autobuild@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11
70+
uses: github/codeql-action/autobuild@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
7171

7272
# ℹ️ Command-line programs to run using the OS shell.
7373
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -80,6 +80,6 @@ jobs:
8080
# ./location_of_script_within_repo/buildscript.sh
8181

8282
- name: Perform CodeQL Analysis
83-
uses: github/codeql-action/analyze@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11
83+
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
8484
with:
8585
category: "/language:${{matrix.language}}"

.github/workflows/conformance.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@ permissions: read-all
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-latest
1413
strategy:
1514
matrix:
16-
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
15+
python: ['3.9', '3.10', '3.11', '3.12']
16+
platform: [ubuntu-latest]
17+
include:
18+
- platform: ubuntu-22.04
19+
python: '3.8'
20+
- platform: ubuntu-22.04
21+
python: '3.7'
22+
runs-on: ${{ matrix.platform }}
1723
steps:
1824
- name: Harden Runner
19-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
25+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
2026
with:
2127
disable-sudo: true
2228
egress-policy: block
@@ -30,20 +36,20 @@ jobs:
3036
storage.googleapis.com:443
3137
3238
- name: Checkout code
33-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
39+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3440

3541
- name: Setup Python
36-
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
42+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
3743
with:
3844
python-version: ${{ matrix.python }}
3945

4046
- name: Install the framework
4147
run: python -m pip install -e .
4248

4349
- name: Setup Go
44-
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
50+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
4551
with:
46-
go-version: '1.20'
52+
go-version: '1.24'
4753

4854
- name: Run HTTP conformance tests
4955
uses: GoogleCloudPlatform/functions-framework-conformance/action@72a4f36b10f1c6435ab1a86a9ea24bda464cc262 # v1.8.6

.github/workflows/dependency-review.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Harden Runner
20-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
20+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
2121
with:
2222
disable-sudo: true
2323
egress-policy: block
2424
allowed-endpoints: >
2525
api.github.com:443
2626
github.com:443
2727
- name: 'Checkout Repository'
28-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2929
- name: 'Dependency Review'
30-
uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4
30+
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Harden Runner
15-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
15+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
1616
with:
1717
disable-sudo: true
1818
egress-policy: block
@@ -21,9 +21,9 @@ jobs:
2121
github.com:443
2222
pypi.org:443
2323
24-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2525
- name: Setup Python
26-
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
26+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2727
- name: Install tox
2828
run: python -m pip install tox
2929
- name: Lint

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Harden Runner
16-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
16+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
1717
with:
1818
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
1919

2020
- name: Checkout
21-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
with:
2323
ref: ${{ github.event.release.tag_name }}
2424
- name: Install Python
25-
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
25+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2626
- name: Install build dependencies
2727
run: python -m pip install -U setuptools build wheel
2828
- name: Build distributions
2929
run: python -m build
3030
- name: Publish
31-
uses: pypa/gh-action-pypi-publish@916e57631f04a497e4bec0e29e80684e45b4305e # main
31+
uses: pypa/gh-action-pypi-publish@db8f07d3871a0a180efa06b95d467625c19d5d5f # main
3232
with:
3333
user: __token__
3434
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/scorecard.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: Harden Runner
29-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
29+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
3030
with:
3131
disable-sudo: true
3232
egress-policy: block
@@ -47,12 +47,12 @@ jobs:
4747
4848
4949
- name: "Checkout code"
50-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
50+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5151
with:
5252
persist-credentials: false
5353

5454
- name: "Run analysis"
55-
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
55+
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
5656
with:
5757
results_file: results.sarif
5858
results_format: sarif
@@ -64,6 +64,6 @@ jobs:
6464

6565
# Upload the results to GitHub's code scanning dashboard.
6666
- name: "Upload to code-scanning"
67-
uses: github/codeql-action/upload-sarif@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11
67+
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
6868
with:
6969
sarif_file: results.sarif

.github/workflows/unit.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Python Unit CI
2-
on:
2+
on:
33
push:
44
branches:
55
- main
@@ -13,41 +13,52 @@ jobs:
1313
matrix:
1414
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
1515
platform: [ubuntu-latest, macos-latest, windows-latest]
16-
# Python <= 3.9 is not available on macos-14
16+
# Python <= 3.9 is not available on macos-latest
1717
# Workaround for https://github.com/actions/setup-python/issues/696
18+
# Python <= 3.8 is not available on ubuntu-latest
1819
exclude:
1920
- platform: macos-latest
2021
python: '3.9'
2122
- platform: macos-latest
2223
python: '3.8'
2324
- platform: macos-latest
2425
python: '3.7'
26+
- platform: ubuntu-latest
27+
python: '3.8'
28+
- platform: ubuntu-latest
29+
python: '3.7'
2530
include:
2631
- platform: macos-latest
2732
python: '3.9'
2833
- platform: macos-13
2934
python: '3.8'
3035
- platform: macos-13
3136
python: '3.7'
37+
- platform: ubuntu-22.04
38+
python: '3.8'
39+
- platform: ubuntu-22.04
40+
python: '3.7'
3241
runs-on: ${{ matrix.platform }}
3342
steps:
3443
- name: Harden Runner
35-
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
44+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
3645
with:
3746
disable-sudo: true
3847
egress-policy: block
3948
allowed-endpoints: >
4049
auth.docker.io:443
4150
files.pythonhosted.org:443
51+
api.github.com:443
4252
github.com:443
53+
objects.githubusercontent.com:443
4354
production.cloudflare.docker.com:443
4455
pypi.org:443
4556
registry-1.docker.io:443
4657
4758
- name: Checkout
48-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
59+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4960
- name: Use Python ${{ matrix.python }}
50-
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
61+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
5162
with:
5263
python-version: ${{ matrix.python }}
5364
- name: Install tox

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [3.8.3](https://github.com/GoogleCloudPlatform/functions-framework-python/compare/v3.8.2...v3.8.3) (2025-05-14)
8+
9+
10+
### Bug Fixes
11+
12+
* Switch to `pyproject.toml` based builds ([#365](https://github.com/GoogleCloudPlatform/functions-framework-python/issues/365)) ([4c44d08](https://github.com/GoogleCloudPlatform/functions-framework-python/commit/4c44d08c5ebb304e80a3adc3f8e6d150987b29bb))
13+
* Update minimum required version of Flask to 2.0 ([#356](https://github.com/GoogleCloudPlatform/functions-framework-python/issues/356)) ([c6eab2f](https://github.com/GoogleCloudPlatform/functions-framework-python/commit/c6eab2fecb913d5bab1d5dbd6ba2e34b7d6cf9b9))
14+
* Update test suite for EOL Python versions ([#360](https://github.com/GoogleCloudPlatform/functions-framework-python/issues/360)) ([c0fa420](https://github.com/GoogleCloudPlatform/functions-framework-python/commit/c0fa420970d36d57adceaf70bbaea784e427e594))
15+
16+
17+
### Documentation
18+
19+
* Add a development guide ([#359](https://github.com/GoogleCloudPlatform/functions-framework-python/issues/359)) ([9348c87](https://github.com/GoogleCloudPlatform/functions-framework-python/commit/9348c87cf05eae3726d041f26e43db586951cebb))
20+
721
## [3.8.2](https://github.com/GoogleCloudPlatform/functions-framework-python/compare/v3.8.1...v3.8.2) (2024-11-13)
822

923

0 commit comments

Comments
 (0)