mirror of
https://github.com/Significant-Gravitas/prisma-client-py.git
synced 2026-11-12 14:47:33 -10:00
- Drop Python 3.9 support - Add Python 3.13 support - Update URLs in docs where relevant (e.g. `RobertCraigie/prisma-client-py/issues` -> `Significant-Gravitas/prisma-client-py/issues`) CI: - Fix `pip` caching in CI jobs - Update `actions/upload-artifact@v3` to v6 - Update `actions/cache@v3` to v5 - Update `actions/download-artifact@v3` to v4 - Update `geekyeggo/delete-artifact@v2` to v5 - Upgrade test `Dockerfile` base image to `python:3.12-slim-bookworm` Code & Dependencies: - Upgrade `click` to `>=8.2.0` - Fix resulting type/deprecation errors - Upgrade `typer` to `>=0.15.0` - Upgrade `rtoml` to `==0.13.0` - Upgrade `mypy` to `==1.19.1` - Fix typing issues in `prisma._sync_http` and `prisma._async_http` - Fix typing issues in `prisma.cli.commands.dev` - Upgrade `pyright` to `==1.1.408` - Update type error snapshots - Update tests to work with newer environment ## Checklist - [x] Unit tests for the changes exist - [x] Tests pass without significant drop in coverage - [x] Documentation reflects changes where applicable - [x] Test snapshots have been [updated](https://prisma-client-py.readthedocs.io/en/latest/contributing/contributing/#snapshot-tests) if applicable ## Agreement By submitting this pull request, I confirm that you can use, modify, copy and redistribute this contribution, under the terms of your choice. --------- Co-authored-by: Claude Opus 4.5 <[email protected]>
21 lines
372 B
Python
21 lines
372 B
Python
import os
|
|
import sys
|
|
import subprocess
|
|
|
|
PYTHON_MAPPING = {
|
|
'3.10': '3.10',
|
|
'3.11': '3.11',
|
|
'3.12': '3.12',
|
|
'3.13': '3.13',
|
|
}
|
|
|
|
|
|
def main() -> None:
|
|
target = os.environ['TARGET_PYTHON']
|
|
python_version = PYTHON_MAPPING.get(target, target)
|
|
subprocess.check_call(['nox', '-p', python_version, *sys.argv[1:]])
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|