Skip to content

chore: include functions-py into monorepo - #1204

Merged
o-santi merged 7 commits into
supabase:mainfrom
o-santi:monorepo-include-functions-py
Aug 21, 2025
Merged

o-santi merged 7 commits into
supabase:mainfrom
o-santi:monorepo-include-functions-py

Conversation

@o-santi

@o-santi o-santi commented Aug 19, 2025 •

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

More functions-py into the monorepo.

Additional context

I believe the check list for moving both this project and the next ones should be roughly the following:

  • Add it as an entry to the workspace in pyproject.toml
  • Copy the relevant files to src/{project_name} (including CHANGELOG.md, LICENSE and Makefile!)
  • Use the package directly from workspace in src/supabase, instead of from pypi.
  • Add its tests to the main Makefile, and the directory itself to make publish.
  • For projects using unasync-cli, switch away from it.
  • Add it to main README.md

@coveralls

coveralls commented Aug 19, 2025 •

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 17128327238

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+2.5%) to 90.714%

Totals Coverage Status
Change from base Build 17073242626: 2.5%
Covered Lines: 2032
Relevant Lines: 2240

💛 - Coveralls

@o-santi
o-santi requested review from grdsdev and silentworks August 19, 2025 14:55
Comment thread src/functions/pyproject.toml Resolved
@o-santi
o-santi merged commit 20b7130 into supabase:main Aug 21, 2025
zeekay pushed a commit to Dream-AI-4444/supabase-py that referenced this pull request Sep 10, 2026
spydon added a commit that referenced this pull request Nov 3, 2026
…ncies (#1914)

## Summary

- Delete `src/functions/uv.lock`. It was left over from moving
functions-py into the monorepo (#1204). `src/functions` is a uv
workspace member, so uv only reads the root `uv.lock`, but Dependabot
still reports 51 open alerts against this file (including 2 of the 4
critical ones).
- Upgrade the packages with open Dependabot alerts in the root `uv.lock`
(aiohttp, anyio, cryptography, urllib3, h2, msgpack, ujson and others).
This is a targeted `--upgrade-package` refresh, not a full `uv lock
--upgrade`, so ruff, mypy and the docs toolchain stay on their current
versions.
- Remove `python_version = "3.9"` from the mypy config of `auth`,
`realtime` and `storage`. Newer anyio uses `match` statements and no
longer installs `exceptiongroup` on Python 3.11+, so mypy pinned to 3.9
but run on a newer interpreter fails on site-packages. mypy now checks
against the interpreter it runs on, and the CI matrix still runs it on
3.9.

## Remaining alerts

The fixed releases of most packages require Python 3.10+, so the
lockfile keeps a vulnerable version for the Python 3.9 resolution.
Dependabot will keep those root `uv.lock` alerts open until Python 3.9
support is dropped. `pytest` also stays on 8.4.2 because `src/functions`
pins `pytest <9.0.0`.

## Testing

- `make mypy` passes on Python 3.9, 3.10, 3.11, 3.12, 3.13 and 3.14.
- `ruff check` and `ruff format --check` pass.
- `supabase_functions` tests pass on 3.9, 3.10 and 3.14.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants