Skip to content

Commit b548448

Browse files
committed
v0.5.1 — Python 3.9 compatibility + CI workflow
Patch release fixing two issues that surfaced immediately after v0.5.0 hit PyPI: - 'pip install eupago' on Python 3.9 was importable but unusable — the first model instantiation crashed because Pydantic v2 can't evaluate 'X | None' annotations on 3.9 without help. v0.5.0 shipped with the classifier claiming 3.9 support and no backport. v0.5.1 adds eval_type_backport as a conditional dep for Python <3.10. - The CI badge in the README was pointing at a non-existent test.yml workflow. The workflow now exists and runs the standard gates across the full 3.9–3.13 matrix on push + PR. README also re-aligned with the vendus-python sibling README structure (bilingual docs link, bulleted Installation block with the PyPI URL) so the two SDKs read consistently for anyone who finds one and looks at the other.
1 parent 79f49e0 commit b548448

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.5.1] - 2026-05-31
11+
12+
### Fixed
13+
- **Python 3.9 compatibility**: added `eval_type_backport>=0.2` as a conditional dependency for Python <3.10. Without it, Pydantic v2 fails at model instantiation when evaluating `X | None` annotations on 3.9 (`TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'`). v0.5.0 was published without this fix and was effectively unusable on 3.9 despite the classifier claiming support.
14+
- **CI workflow** (`.github/workflows/test.yml`) — was referenced by the README CI badge since day one but never existed. Now runs `ruff check`, `ruff format --check`, `mypy --strict` and `pytest -m "not integration"` on Python 3.9–3.13.
15+
- **README** aligned with the sibling `vendus` package: bilingual docs link ("English · Português"), Installation section as a bullet list with the explicit PyPI URL.
16+
1017
## [0.5.0] - 2026-05-31
1118

1219
First production-validated release. MB WAY, Multibanco, Pay By Link and

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "eupago"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
description = "Unofficial Python SDK for the eupago payment gateway"
55
readme = "README.md"
66
requires-python = ">=3.9"

‎src/eupago/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
)
1818
from eupago.models import Customer, PaymentResult, PaymentStatus, WebhookEvent
1919

20-
__version__ = "0.5.0"
20+
__version__ = "0.5.1"
2121

2222
__all__ = [
2323
"ApiError",

0 commit comments

Comments
 (0)