Skip to content

Commit d5d0acb

Browse files
authored
chore: bump version and reorder changelog (#106)
* chore: bump version and reorder changelog * chore(ci): remove python3.8 form ci as well * fix: poetry lock again
1 parent 28e79fe commit d5d0acb

File tree

7 files changed

+357
-321
lines changed

7 files changed

+357
-321
lines changed

.github/workflows/pytest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
test:
1515
strategy:
1616
matrix:
17-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1818

1919
runs-on: ubuntu-22.04
2020
steps:

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ci:
66
# See https://pre-commit.com for more information
77
# See https://pre-commit.com/hooks.html for more hooks
88
default_language_version:
9-
python: python3.10
9+
python: python3.12
1010
repos:
1111
- repo: https://github.com/pre-commit/pre-commit-hooks
1212
rev: v5.0.0

CHANGELOG.md

+22-12
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,42 @@ All notable changes to this project will be documented in this file.
55
<!-- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -->
77

8-
## [0.1.0] - 2023-03-02
8+
## [0.2.2] - 2024-11-27
99

10-
### Added
10+
### Fixed
1111

12-
- Initial project setup
13-
- Local testing utils
14-
- Repository setup
12+
- Fix Internal Server Error when body contained non-ASCII characters [#73](https://github.com/scaleway/serverless-functions-python/issues/73)
1513

16-
## [0.1.1] - 2023-04-14
14+
### Changed
1715

18-
### Fixed
16+
- Removed support for Python 3.8 as it has reached its end of life
1917

20-
- Fix typos in headers injected by Envoy
18+
## [0.2.1] - 2024-07-15
2119

22-
### Changed
20+
### Fixed
2321

24-
- Update README with link to Serverless Functions Node
22+
- Returning a base64 encoded response would not be decoded by the framework
2523

2624
## [0.2.0] - 2023-04-23
2725

2826
### Added
2927

3028
- Added a simple server to test with multiple handlers
3129

32-
## [0.2.1] - 2024-07-15
30+
## [0.1.1] - 2023-04-14
31+
32+
### Changed
33+
34+
- Update README with link to Serverless Functions Node
3335

3436
### Fixed
3537

36-
- Returning a base64 encoded response would not be decoded by the framework
38+
- Fix typos in headers injected by Envoy
39+
40+
## [0.1.0] - 2023-03-02
41+
42+
### Added
43+
44+
- Initial project setup
45+
- Local testing utils
46+
- Repository setup

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![PyPI version](https://badge.fury.io/py/scaleway-functions-python.svg)](https://badge.fury.io/py/scaleway-functions-python)
44
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/scaleway/serverless-functions-python/main.svg)](https://results.pre-commit.ci/latest/github/scaleway/serverless-functions-python/main)
5-
![pre-commit.ci status](https://img.shields.io/badge/python-3.8_|_3.9_|_3.10_|_3.11-blue.svg)
5+
![pre-commit.ci status](https://img.shields.io/badge/python-3.9_|_3.10_|_3.11-blue.svg)
66

77
Scaleway Serverless Functions Python is a framework that simplifies Scaleway [Serverless Functions](https://www.scaleway.com/fr/serverless-functions/) local development.
88
It enables you to debug your function locally and provide the event data format used in Scaleway Serverless Functions.

poetry.lock

+326-300
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "scaleway-functions-python"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
description = "Utilities for testing your Python handlers for Scaleway Serverless Functions."
55
authors = ["Scaleway Serverless Team <[email protected]>"]
66

@@ -31,7 +31,7 @@ classifiers = [
3131
include = ["CHANGELOG.md"]
3232

3333
[tool.poetry.dependencies]
34-
python = ">=3.8.1, <3.13"
34+
python = ">=3.9, <3.13"
3535
flask = ">=2.2.2,<4.0.0"
3636
typing-extensions = { version = "^4.4.0", python = "<3.11" }
3737

@@ -44,7 +44,7 @@ autoflake = ">=1.7.7,<3.0.0"
4444
black = ">=23.1,<25.0"
4545
flake8 = ">=6,<8"
4646
isort = "^5.10.1"
47-
pre-commit = "^3.0.4"
47+
pre-commit = "4.0.0"
4848
pylint = ">=2.16.2,<4.0.0"
4949
pylint-per-file-ignores = "^1.2.0"
5050

tests/test_local/test_event.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_format_http_event(app):
4444
assert event["pathParameters"] is None
4545
assert not event["stageVariable"]
4646

47-
assert event["isBase64Encoded"] is True
47+
assert event.get("isBase64Encoded")
4848

4949
assert event["requestContext"] == expected_request_context
5050

@@ -55,10 +55,10 @@ def test_format_http_event_with_non_unicode_body():
5555
# Create a request with non-unicode body
5656
non_unicode_body = b"\xff\xfe\xfd" # Invalid UTF-8 sequence
5757
builder = EnvironBuilder(method="POST", data=non_unicode_body)
58-
r = Request(builder.get_environ())
58+
req = Request(builder.get_environ())
5959

6060
# Call the function and check the result
61-
event = format_http_event(r)
61+
event = format_http_event(req)
6262

6363
assert event is not None
6464
assert "body" in event

0 commit comments

Comments
 (0)