python3Packages.treeo: 0.4.0 -> 0.0.9#159933
Conversation
|
Result of 1 package failed to build:
3 packages built:
|
samuela
left a comment
There was a problem hiding this comment.
just confused re the version downgrade. o/w LGTM. if the 0.0.9 version is actually newer than 0.4.0, I think it my actually be preferable to just move to an unstable-yyyy-mm-dd version.
| # jax is not declared in the dependencies, but is necessary. | ||
| propagatedBuildInputs = [ | ||
| jax | ||
| jaxlib |
There was a problem hiding this comment.
Thank you! This should not have been in propagatedBuildInputs to begin with per https://nixos.wiki/wiki/JAX#How_do_I_package_JAX_libraries.3F.
There was a problem hiding this comment.
Wait, isn't that the opposite of what we should be doing here? IIUC it was correct before the change (= jaxlib used only in checkInputs and not in propagatedBuildInputs).
@dotlambda please keep it the way it was before (= not propagating jaxlib and explicitly passing it in checkInputs) as otherwise it forces the specific version of jaxlib onto the user, see the link above for details.
There was a problem hiding this comment.
oops! I was way too tired when I wrote that! yes jaxlib should absolutely not be in propagatedBuildInputs. Thanks for catching @ndl!
There was a problem hiding this comment.
Normally we use upstreams requirements as a good recommendations but many python packages use the wrong requires or force linters we don't want. If that package is required for this package to work correct then it can be propagated even if upstream has done something different.
There was a problem hiding this comment.
We have an established policy of not propagating jaxlib in the JAX ecosystem. Sometimes that means deviating from upstreams dependency lists, and creating issues upstream as well.
| buildPythonPackage rec { | ||
| pname = "treeo"; | ||
| version = "0.4.0"; | ||
| version = "0.0.9"; |
There was a problem hiding this comment.
From a semver perspective this is a downgrade. Why should we downgrade instead of upgrading?
There was a problem hiding this comment.
I see the point @dotlambda makes, it looks like upstream versioning failure indeed.
|
elegy build failure is unrelated and was already broken |
The previous version was accidentally called 0.4.0 instead of 0.0.4. See https://github.com/cgarciae/treeo/releases and https://pypi.org/project/treeo/#history. |
|
Maybe I'm missing something but I don't see any indication that 0.4.0 was an accident in the release notes. Is there a reference for this? |
Compare the version history on PyPI with the one on GitHub. |
|
I'm a little confused so I'll defer to maintainer @ndl on this one. |
ndl
left a comment
There was a problem hiding this comment.
Using 0.0.9 instead of 0.4.0 looks the right step, thanks for catching the issue!
The only issue is with propagating jaxlib, please revert that part and I'll approve the rest.
| # jax is not declared in the dependencies, but is necessary. | ||
| propagatedBuildInputs = [ | ||
| jax | ||
| jaxlib |
There was a problem hiding this comment.
Wait, isn't that the opposite of what we should be doing here? IIUC it was correct before the change (= jaxlib used only in checkInputs and not in propagatedBuildInputs).
@dotlambda please keep it the way it was before (= not propagating jaxlib and explicitly passing it in checkInputs) as otherwise it forces the specific version of jaxlib onto the user, see the link above for details.
| poetry-core | ||
| ]; | ||
|
|
||
| buildInputs = [ jaxlib ]; |
There was a problem hiding this comment.
Same as above - please keep it the way it is.
| buildPythonPackage rec { | ||
| pname = "treeo"; | ||
| version = "0.4.0"; | ||
| version = "0.0.9"; |
There was a problem hiding this comment.
I see the point @dotlambda makes, it looks like upstream versioning failure indeed.
|
Done by db60f46 |
Motivation for this change
fixes #159455
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes