Trying to run on Mac...
% uv init --python 3.12
Initialized project `semble-mac`
% uv run python --version
Using CPython 3.12.11
Creating virtual environment at: .venv
Python 3.12.11
% uv add semble
Resolved 46 packages in 239ms
error: Distribution `tree-sitter-language-pack==1.6.3 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform
hint: You're on macOS (`macosx_14_0_x86_64`), but `tree-sitter-language-pack` (v1.6.3) only has wheels for the following platforms: `manylinux_2_34_aarch64`, `manylinux_2_34_x86_64`, `win_amd64`; consider adding your platform to `tool.uv.required-environments` to ensure uv resolves to a version with compatible wheels
Workaround
adding this to my pyroject.toml seems to make it work (I'm the third combo) ... is this an ok approach?
[tool.uv]
required-environments = [
"sys_platform == 'linux' and platform_machine == 'x86_64'",
"sys_platform == 'darwin' and platform_machine == 'arm64'",
"sys_platform == 'darwin' and platform_machine == 'x86_64'"
]
Trying to run on Mac...
Workaround
adding this to my pyroject.toml seems to make it work (I'm the third combo) ... is this an ok approach?