Skip to content

Commit 0cfdc4e

Browse files
authored
Python 3.12 (#490)
1 parent d2cb35e commit 0cfdc4e

File tree

6 files changed

+622
-583
lines changed

6 files changed

+622
-583
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
image: python:${{ matrix.python-version }}
2020
strategy:
2121
matrix:
22-
python-version: ["3.8", "3.9", "3.10", "3.11"]
22+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
2323
requirements-version: ["min", "max"]
2424
steps:
2525
- name: Checkout Push/Workflow Dispatch

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ package: clean buf better_imports format test
7171

7272
install:
7373
poetry install --all-extras
74-
sh etc/postinstall.sh
74+
bash etc/postinstall.sh

poetry.lock

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

pyproject.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ packages = [
1111
include = ["LICENSE", "src/viam/rpc/libviam_rust_utils.*"]
1212

1313
[tool.poetry.dependencies]
14-
python = ">=3.8.1,<3.12"
15-
grpclib = ">=0.4.6,<1"
14+
python = ">=3.8.1,<3.13"
15+
grpclib = [
16+
{version = "<0.4.7rc-1", python = "<3.12"},
17+
{version = ">=0.4.7rc-1", python = ">=3.12"},
18+
]
1619
googleapis-common-protos = ">=1.60.0,<2"
1720
typing-extensions = ">=4.8.0,<5"
1821
Pillow = ">=9.1.0,<11"
@@ -39,6 +42,10 @@ include = ["LICENSE", "src/viam/rpc/libviam_rust_utils.*"]
3942
pytest-watcher = "^0.3.4"
4043
# TODO(RSDK-5450) - Update myst-nb so this can be unpinned.
4144
astroid = "<=2.15.6"
45+
numpy = [
46+
{version = "<1.25.0", python = "<3.9"},
47+
{version = ">=1.25.0", python = ">=3.9"},
48+
]
4249

4350
[tool.pytest.ini_options]
4451
addopts = "-ra"

tests/test_motor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ class TestClient:
298298
async def test_set_power(self, motor: MockMotor, service: MotorRPCService):
299299
async with ChannelFor([service]) as channel:
300300
client = MotorClient(motor.name, channel)
301-
await client.set_power(13, timeout=1.23)
301+
await client.set_power(13, timeout=9.10)
302302
assert motor.power == 13
303-
assert motor.timeout == loose_approx(1.23)
303+
assert motor.timeout == loose_approx(9.10)
304304

305305
@pytest.mark.asyncio
306306
async def test_get_position(self, motor: MockMotor, service: MotorRPCService):

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ envlist =
55
py39
66
py310
77
py311
8+
py312
89
docs
910

1011
[testenv]

0 commit comments

Comments
 (0)