logfire
logfire copied to clipboard
uv.lock has pinned pyscopg-binary==3.2.3, which can't be build on Mac M1
Question
I'm using uv in my workflow to submit a PR, and am having problems with the psycopg-binary
dependency.
Error:
error: distribution psycopg-binary==3.2.3 @ registry+https://pypi.org/simple can't be installed because it doesn't have a source distribution or wheel for the current platform
make: *** [install] Error 2
Root
According to the psycopg documentation at https://www.psycopg.org/psycopg3/docs/basic/install.html#binary-installation:
... as of Psycopg 3.1.20, ARM64 macOS binary packages (for Apple M1 machines) are no longer available for macOS.
In the logfire project, the dev dependencies have the psycopg-binary version pinned through the uv.lock file, which is preventing me from pushing changes.
Questions
Although this may not be a logfire issue, I have 2 questions:
- Is it necessary to keep the uv.lock file in the repo?
- If yes, is it possible to make the
psycopg-binary
dependency more flexible? I installed version 3.1.18 ofpsycopg-binary
after upgrading to macOS 15. However, pre-commit is still forcing me to use version 3.2.3, which I'm unable to do.