uv integration
No idea why the CI tests fail for MacOS....
In general, I cannot test the code under MacOS, which somebody should do and eventualy adapt the docu. 'uv' does run on MacOs, it says.
No idea why the CI tests fail for MacOS....
In general, I cannot test the code under MacOS, which somebody should do and eventualy adapt the docu. 'uv' does run on MacOs, it says.
I can try on macos later this week.
No idea why the CI tests fail for MacOS.... In general, I cannot test the code under MacOS, which somebody should do and eventualy adapt the docu. 'uv' does run on MacOs, it says.
I can try on macos later this week.
Ah, I've seen this before. This error might have nothing to do with uv, this might be a JVM silicon chip compatibility issue.
I have some concerns with uv.clj.
- The file needs some overall cleanup
- I'm not sure why we are writing the
pyproject.tomlin the first place, but we should be careful not to overwrite an existing one. Does this need to be configured? Does it need to be merged with an existing.tomlfile? - There are unneeded dependencies in the file
I'm not sure why we are writing the pyproject.toml in the first place, but we should be careful not to overwrite an existing one. Does this need to be configured? Does it need to be merged with an existing .toml file?
This is the way uv works. uv requires a file on disk with the dependencies. I would not go for a merge approach. This feature is in my view only suitable for "very simple" situations, where the pyproject.toml only contains python dependencies. If a user has any need for other configuration, he should not use the feature. But we should keep in mind, that this is for a "clojure project" which uses python libraries. So there should not be any need for complex configurations in pyproject.toml, like a "python build" A quickstart for 90 % of the cases, specialy tailored of using libpython-clj
Without a generated pyproject.toml we cannot have python deps in python.edn.
without pyproject.toml generation the "only" functionality of the setup-fn would be to run "sync uv". (and then we don't need this feature)
so yes, the added value for me is to not need to worry about creation of a pyproject.toml by hand. (but a 'uv init' takes care of this as well)
and that it can as well "sync" the python version used
The alternative to "changing/creating/overwriting" an existing pyproject.toml is to leave it to the user to add his python dependencies into it.
Then the only thing we do in clojure would be to call (shell/sh "uv" "sync"), which questions the need for any clojure code.