Skip to content

Commit 3fc6f10

Browse files
committed
fix: more uv fixes...
1 parent 22268d7 commit 3fc6f10

3 files changed

Lines changed: 95 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ dependencies = [
99
"pyyaml>=6.0.3",
1010
"fastapi>=0.110",
1111
"pydantic==2.12.3",
12+
"pydantic-core==2.41.4",
1213
"uvicorn>=0.29",
1314
"python-multipart>=0.0.9",
1415
]
@@ -22,6 +23,16 @@ dev = [
2223
"httpx>=0.27",
2324
]
2425

26+
[tool.uv.sources]
27+
evdev = { index = "piwheels", marker = "platform_machine == 'armv6l'" }
28+
pyyaml = { index = "piwheels", marker = "platform_machine == 'armv6l'" }
29+
pydantic-core = { index = "piwheels", marker = "platform_machine == 'armv6l'" }
30+
31+
[[tool.uv.index]]
32+
name = "piwheels"
33+
url = "https://www.piwheels.org/simple"
34+
explicit = true
35+
2536
[tool.setuptools.packages.find]
2637
where = ["."]
2738
include = ["cursed_controls*"]

tests/test_install_assets.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,17 @@ def test_base_dependencies_do_not_require_uvicorn_standard_extras():
137137
assert 'uvicorn>=' in pyproject
138138

139139

140+
def test_uv_sources_pin_armv6_packages_to_piwheels():
141+
pyproject = (REPO_ROOT / "pyproject.toml").read_text()
142+
assert '[[tool.uv.index]]' in pyproject
143+
assert 'name = "piwheels"' in pyproject
144+
assert 'url = "https://www.piwheels.org/simple"' in pyproject
145+
assert 'explicit = true' in pyproject
146+
assert 'evdev = { index = "piwheels", marker = "platform_machine == \'armv6l\'" }' in pyproject
147+
assert 'pyyaml = { index = "piwheels", marker = "platform_machine == \'armv6l\'" }' in pyproject
148+
assert 'pydantic-core = { index = "piwheels", marker = "platform_machine == \'armv6l\'" }' in pyproject
149+
150+
140151
def test_lockfile_pins_armv6_wheel_backed_pydantic_core():
141152
pyproject = (REPO_ROOT / "pyproject.toml").read_text()
142153
lock = (REPO_ROOT / "uv.lock").read_text()

uv.lock

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

0 commit comments

Comments
 (0)