Skip to content

Commit 79f49e0

Browse files
committed
Align README + Python 3.9 support with vendus-python sibling
- pyproject.toml: add eval_type_backport>=0.2 for Python <3.10 so pydantic v2 can evaluate 'X | None' annotations at runtime. Without this the CI matrix fails on 3.9. - README: switch the Documentation line to 'English · Português' and rewrite the Installation section as a bullet list with explicit PyPI URL, Python range, dependencies, py.typed and extras — mirrors the vendus README so the two community SDKs read consistently.
1 parent fd49bd1 commit 79f49e0

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎README.md‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
The first Python SDK for [eupago](https://www.eupago.com), Portugal's payment gateway.
1111
MB WAY, Multibanco, and more — in 5 lines of Python.
1212

13-
**[Documentation (PT/EN)](https://bilouro.github.io/eupago-python/)** | [Examples](examples/) | [API Reference](https://bilouro.github.io/eupago-python/api/)
13+
**Documentation: [English](https://bilouro.github.io/eupago-python/) · [Português](https://bilouro.github.io/eupago-python/pt/)** | [Examples](examples/) | [API Reference](https://bilouro.github.io/eupago-python/api/)
1414

1515
> **Community SDK** — not affiliated with or endorsed by eupago.
1616
> For official integrations, visit [eupago.com](https://www.eupago.com/integrations/api-payment-gateway).
@@ -53,12 +53,14 @@ Planned: Direct Debit, Payshop, Cofidis, Floa, PIX, Pagaqui, Paysafecard.
5353
## Installation
5454

5555
```bash
56-
pip install eupago
56+
pip install eupago # or: uv add eupago
5757
```
5858

59-
Requires Python 3.9+. Runtime deps: [httpx](https://www.python-httpx.org/)
60-
and [Pydantic v2](https://docs.pydantic.dev/). Add the `crypto` extra
61-
(`pip install eupago[crypto]`) only if you receive encrypted webhooks.
59+
- **PyPI:** <https://pypi.org/project/eupago/>
60+
- **Python:** 3.9 – 3.13
61+
- **Dependencies:** [httpx](https://www.python-httpx.org/) and [Pydantic v2](https://docs.pydantic.dev/) — nothing else
62+
- **Typed:** ships a `py.typed` marker (PEP 561) — full IDE autocomplete and `mypy` support
63+
- **Optional extras:** `pip install eupago[crypto]` to decrypt AES-256-CBC webhooks; `eupago[e2e]` for Playwright-driven 3DS tests
6264

6365
## Quick Start
6466

‎pyproject.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ classifiers = [
2121
dependencies = [
2222
"httpx>=0.27.0",
2323
"pydantic>=2.0.0",
24+
# Lets pydantic v2 evaluate `X | None` annotations on Python 3.9
25+
# (without this, model instantiation raises TypeError at runtime).
26+
'eval_type_backport>=0.2; python_version < "3.10"',
2427
]
2528

2629
[project.optional-dependencies]

0 commit comments

Comments
 (0)