• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-py / 41472663540
94%

Build:
DEFAULT BRANCH: main
Ran 02 Nov 2026 03:33PM UTC
Jobs 35
Files 166
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Nov 2026 03:32PM UTC coverage: 95.295% (+0.01%) from 95.283%
41472663540

push

github

web-flow
fix(postgrest): drop pydantic v1 compat layer and align pydantic floor (#1902)

## What

Removes the pydantic v1 compatibility layer from `supabase_auth` and
`postgrest`, and aligns their pydantic floor with storage and realtime
at `>=2.11.7`, so every package in the repo has the same minimum.
Resolves SDK-1694.

Both packages already failed to import on pydantic 1.x, because they use
`TypeAdapter` at module scope, so the v1 fallbacks were dead code and
the declared ranges were wrong.

### postgrest (`pydantic >=1.9,<3.0` to `pydantic >=2.11.7,<3`)

- Removed the `model_validate_json` fallback from `utils.py`. Call sites
now call `APIErrorFromJSON.model_validate_json(...)` directly.
- Removed `JSONAdapter` from `types.py`. Nothing has used it since #1571
and it was never exported. This supersedes #1666.

### auth (`pydantic >=1.10,<3` to `pydantic >=2.11.7,<3`)

- Removed `model_validate`, `model_dump` and `model_dump_json` from
`helpers.py`. Call sites now use the v2 model methods directly.
- Replaced the `model_validator`/`root_validator` fallback in `types.py`
with `@model_validator(mode="before")` and `@classmethod`.
- Deleted the three tests that only exercised the v1 fallbacks.
- Dropped the stale `with_config` comment about older pydantic versions.

## Why 2.11.7 for both

`supabase` pins all five packages to the same release, and storage and
realtime already require `>=2.11.7`, so that is already the effective
floor for anyone installing `supabase`. A single floor also matches what
CI tests, since CI runs against the locked version.

For reference, the code alone would work on lower versions. Checked
locally on Python 3.9: auth needs 2.7 (for the top-level `with_config`
import) and postgrest works on 2.0.

`uv.lock` only changes in the two `requires-dist` specifiers; resolved
versions are unchanged.

## Testing

- mypy passes for both packages.
- `_sync/` was regenerated with `build-sync` and mirrors the `_async/`
changes exactly.
- Integratio... (continued)

12152 of 12752 relevant lines covered (95.29%)

5.56 hits per line

Coverage Regressions

Lines Coverage ∆ File
59
81.34
0.0% src/supabase_auth/_async/gotrue_client.py
55
83.31
0.0% src/supabase_auth/_sync/gotrue_client.py
8
91.33
-0.05% src/postgrest/_sync/request_builder.py
8
91.33
-0.05% src/postgrest/_async/request_builder.py
7
95.14
-0.49% src/supabase_auth/helpers.py
3
86.87
0.0% src/supabase_auth/_sync/gotrue_admin_api.py
3
86.87
0.0% src/supabase_auth/_async/gotrue_admin_api.py
1
99.81
0.57% src/supabase_auth/types.py
1
97.73
1.65% src/postgrest/utils.py
Jobs
ID Job ID Ran Files Coverage
1 run-ubuntu-latest-3.13-storage - 41472663540.1 02 Nov 2026 03:34PM UTC 40
94.75
GitHub Action Run
2 run-ubuntu-latest-3.14-realtime - 41472663540.2 02 Nov 2026 03:34PM UTC 17
87.88
GitHub Action Run
3 run-ubuntu-latest-3.12-supabase - 41472663540.3 02 Nov 2026 03:33PM UTC 20
96.86
GitHub Action Run
4 run-ubuntu-latest-3.14-auth - 41472663540.4 02 Nov 2026 03:34PM UTC 56
93.67
GitHub Action Run
5 run-ubuntu-latest-3.10-functions - 41472663540.5 02 Nov 2026 03:33PM UTC 18
97.31
GitHub Action Run
6 run-ubuntu-latest-3.13-realtime - 41472663540.6 02 Nov 2026 03:35PM UTC 17
88.7
GitHub Action Run
7 run-ubuntu-latest-3.11-postgrest - 41472663540.7 02 Nov 2026 03:34PM UTC 39
97.53
GitHub Action Run
8 run-ubuntu-latest-3.13-functions - 41472663540.8 02 Nov 2026 03:33PM UTC 18
97.31
GitHub Action Run
9 run-ubuntu-latest-3.9-realtime - 41472663540.9 02 Nov 2026 03:34PM UTC 17
88.81
GitHub Action Run
10 run-ubuntu-latest-3.12-realtime - 41472663540.10 02 Nov 2026 03:34PM UTC 17
88.7
GitHub Action Run
11 run-ubuntu-latest-3.14-functions - 41472663540.11 02 Nov 2026 03:33PM UTC 18
97.31
GitHub Action Run
12 run-ubuntu-latest-3.14-supabase - 41472663540.12 02 Nov 2026 03:33PM UTC 20
96.85
GitHub Action Run
13 run-ubuntu-latest-3.11-realtime - 41472663540.13 02 Nov 2026 03:34PM UTC 17
88.7
GitHub Action Run
14 run-ubuntu-latest-3.10-auth - 41472663540.14 02 Nov 2026 03:33PM UTC 56
93.69
GitHub Action Run
15 run-ubuntu-latest-3.11-storage - 41472663540.15 02 Nov 2026 03:34PM UTC 40
94.75
GitHub Action Run
16 run-ubuntu-latest-3.9-functions - 41472663540.16 02 Nov 2026 03:33PM UTC 18
97.52
GitHub Action Run
17 run-ubuntu-latest-3.13-postgrest - 41472663540.17 02 Nov 2026 03:34PM UTC 39
97.53
GitHub Action Run
18 run-ubuntu-latest-3.10-postgrest - 41472663540.18 02 Nov 2026 03:34PM UTC 39
97.53
GitHub Action Run
19 run-ubuntu-latest-3.9-supabase - 41472663540.19 02 Nov 2026 03:33PM UTC 20
96.8
GitHub Action Run
20 run-ubuntu-latest-3.11-functions - 41472663540.20 02 Nov 2026 03:33PM UTC 18
97.31
GitHub Action Run
21 run-ubuntu-latest-3.10-storage - 41472663540.21 02 Nov 2026 03:34PM UTC 40
94.75
GitHub Action Run
22 run-ubuntu-latest-3.12-functions - 41472663540.22 02 Nov 2026 03:33PM UTC 18
97.31
GitHub Action Run
23 run-ubuntu-latest-3.14-storage - 41472663540.23 02 Nov 2026 03:34PM UTC 40
94.74
GitHub Action Run
24 run-ubuntu-latest-3.9-storage - 41472663540.24 02 Nov 2026 03:34PM UTC 40
94.82
GitHub Action Run
25 run-ubuntu-latest-3.12-postgrest - 41472663540.25 02 Nov 2026 03:34PM UTC 39
97.53
GitHub Action Run
26 run-ubuntu-latest-3.10-supabase - 41472663540.26 02 Nov 2026 03:33PM UTC 20
96.86
GitHub Action Run
27 run-ubuntu-latest-3.10-realtime - 41472663540.27 02 Nov 2026 03:34PM UTC 17
88.7
GitHub Action Run
28 run-ubuntu-latest-3.9-postgrest - 41472663540.28 02 Nov 2026 03:34PM UTC 39
97.59
GitHub Action Run
29 run-ubuntu-latest-3.9-auth - 41472663540.29 02 Nov 2026 03:34PM UTC 56
93.6
GitHub Action Run
30 run-ubuntu-latest-3.13-auth - 41472663540.30 02 Nov 2026 03:34PM UTC 56
93.69
GitHub Action Run
31 run-ubuntu-latest-3.11-auth - 41472663540.31 02 Nov 2026 03:34PM UTC 56
93.65
GitHub Action Run
32 run-ubuntu-latest-3.13-supabase - 41472663540.32 02 Nov 2026 03:33PM UTC 20
96.86
GitHub Action Run
33 run-ubuntu-latest-3.12-storage - 41472663540.33 02 Nov 2026 03:34PM UTC 40
94.75
GitHub Action Run
34 run-ubuntu-latest-3.11-supabase - 41472663540.34 02 Nov 2026 03:33PM UTC 20
96.86
GitHub Action Run
35 run-ubuntu-latest-3.14-postgrest - 41472663540.35 02 Nov 2026 03:34PM UTC 39
97.53
GitHub Action Run
Source Files on build 41472663540
  • Tree
  • List 166
  • Changed 12
  • Source Changed 0
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41472663540
  • 8ddd531e on github
  • Prev Build on main (#41470126133)
  • Next Build on main (#41474154248)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc