Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.pytensor: 2.26.3 -> 2.26.4 #361595

Merged
merged 1 commit into from
Dec 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions pkgs/development/python-modules/pytensor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,29 @@
numpy,
scipy,

# checks
# tests
jax,
jaxlib,
numba,
pytestCheckHook,
pytest-benchmark,
pytest-mock,
pytestCheckHook,
tensorflow-probability,
pythonAtLeast,

nix-update-script,
}:

buildPythonPackage rec {
pname = "pytensor";
version = "2.26.3";
version = "2.26.4";
pyproject = true;

src = fetchFromGitHub {
owner = "pymc-devs";
repo = "pytensor";
rev = "refs/tags/rel-${version}";
hash = "sha256-RhicZSVkaDtIngIOvzyEQ+VMZwdV45wDk7e7bThTIh8=";
tag = "rel-${version}";
hash = "sha256-pREyBedkF9MW7g3Bctnk8C9vVbRTsLLreldxlqDdHVI=";
};

pythonRelaxDeps = [
Expand All @@ -63,8 +65,9 @@ buildPythonPackage rec {
jax
jaxlib
numba
pytestCheckHook
pytest-benchmark
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want to run benchmarks? They require lots of resources for not much benefits.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it is only used for a single test. It doesn't affect the total test time in practice.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can remove it if you prefer.

pytest-mock
pytestCheckHook
tensorflow-probability
];

Expand Down Expand Up @@ -153,6 +156,11 @@ buildPythonPackage rec {
"test_unbroadcast"
"test_update_equiv"
"test_update_same"
]
++ lib.optionals (pythonAtLeast "3.12") [
# Flaky: TypeError: cannot pickle 'PyCapsule' object
"test_blockwise"
"test_blockwise_benchmark"
];

disabledTestPaths = [
Expand All @@ -173,7 +181,7 @@ buildPythonPackage rec {
description = "Python library to define, optimize, and efficiently evaluate mathematical expressions involving multi-dimensional arrays";
mainProgram = "pytensor-cache";
homepage = "https://github.com/pymc-devs/pytensor";
changelog = "https://github.com/pymc-devs/pytensor/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
changelog = "https://github.com/pymc-devs/pytensor/releases/tag/rel-${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
bcdarwin
Expand Down
Loading