Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit d5b1646

Browse files
authored
chore: change pyproject.toml to not use deprecated tool.poetry keywords (#334)
* fix: change `pyproject.toml` to not use deprecated `tool.poetry` keywords this is in preparation to allowing other tools to install dependencies and run tests in the same environment, as `pyproject.toml` is a generic file format * fix: remove carret operator in `requires-python` prefer `>=` as not all tools seem to support ^ * chore: upgrade poetry version in .github/workflows/ci.yml
1 parent f978d39 commit d5b1646

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
python-version: ${{ matrix.python-version }}
2929

3030
- name: Set up Poetry
31-
run: pipx install poetry==1.8.5 --python python${{ matrix.python-version }}
31+
run: pipx install poetry==2.1.3 --python python${{ matrix.python-version }}
3232

3333
- name: Start Supabase local development setup
3434
run: make run_infra
@@ -88,7 +88,7 @@ jobs:
8888
python-version: 3.11
8989

9090
- name: Set up Poetry
91-
run: pipx install poetry==1.8.5 --python python3.11
91+
run: pipx install poetry==2.1.3 --python python3.11
9292

9393
- name: Clone Repository
9494
uses: actions/checkout@v4

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
[tool.poetry]
1+
[project]
22
name = "realtime"
33
version = "2.5.3" # {x-release-please-version}
44
description = ""
55
authors = [
6-
"Joel Lee <joel@joellee.org>",
7-
"Andrew Smith <a.smith@silentworks.co.uk>",
6+
{ name = "Joel Lee", email="joel@joellee.org"},
7+
{ name = "Andrew Smith", email="a.smith@silentworks.co.uk"},
88
]
99
license = "MIT"
1010
readme = "README.md"
1111
repository = "https://github.com/supabase/realtime-py"
12-
13-
[tool.poetry.dependencies]
14-
python = "^3.9"
15-
websockets = ">=11,<16"
16-
typing-extensions = "^4.14.0"
12+
requires-python = ">=3.9"
13+
dependencies = [
14+
"websockets >=11,<16",
15+
"typing-extensions >=4.14.0",
16+
]
1717

1818
[tool.poetry.group.dev.dependencies]
1919
aiohttp = "^3.12.13"

0 commit comments

Comments
 (0)