First release of libpython-clj-uv. A small library which allows to deeply integrate the https://github.com/astral-sh/uv python venv manager with https://github.com/clj-python/libpython-clj It allows to have disposable, fully declarative virtual environments configured in 'edn' format. https://github.com/behrica/libpython-clj-uv
The readme states:
> The python.edn will be overwritten by each JVM start.
But I think, you mean the pyproject.toml is overwritten?!
I like the idea of a disposable python environment. 😃
yes....indeed. I update docu
'uv' make this feasible, because it is blazing fast (as using a host cache), so even a "re-install" of complex dependencies is fast after the first time. and "uv sync" does usually not re-install existing python libraries. So in most cases the JVM start is only marginally delayed by "uv sync" (and I have nice logging when it (re)-installs) Installing "torch" downloads nearly 1 GB (the first time) and some libraries "compile" while installing
Maven for python. 😜
indeed. To me it is a big convenience improvement for libpython-clj.
The python environment handling is my main grudge with python.
(was ....)🙂
Thanks for tackling this!
Currently it runs "uv sync" which should mostly do its job. I could add a kind of ":purge" config, which does: "uv venv --clear && uv sync" instead. This guaranties even more "disposable" venvs. Due to the aggressive "caching" of uv, this should still be fast in most cases (but it will be slower then "uv sync")
(the 'uv sync' would remove "extra" packages, not mentioned in python.edn so there should be no difference in most cases
https://github.com/ilmoraunio/conjtest v0.3.1 — Run tests against common configuration file formats using Clojure! • Upgrade ilmoraunio/conjtest & ilmoraunio/conftest to 0.1.2 https://github.com/ilmoraunio/conjtest/commit/001b938d6a31b00a2a109a9ddb092798207b3f0b • docs: add mise installation instructions https://github.com/ilmoraunio/conjtest/commit/9322a6efd5a7609b0ccd9959068acf4f71c0fa10
https://scicloj.github.io/pocket/ - files-based DAG caching - version https://clojars.org/org.scicloj/pocket:
• cached and caching-fn now accept keywords in addition to vars (e.g., (cached :train split-c))
• origin-story-mermaid preserves : prefix for keyword function nodes
• origin-story-mermaid wraps map values at commas (`<br>`) for readable multi-line boxes