Skip to content

Conversation

@drupol
Copy link
Contributor

@drupol drupol commented Nov 15, 2024

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Nov 15, 2024
@nix-owners nix-owners bot requested a review from natsukium November 15, 2024 07:32
@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Nov 15, 2024
@drupol drupol force-pushed the push-wnmlnxmlxxzn branch 2 times, most recently from 0d692ca to 4c8a6cb Compare November 16, 2024 11:10
@drupol drupol requested a review from GaetanLepage November 16, 2024 21:00
@drupol drupol force-pushed the push-wnmlnxmlxxzn branch 2 times, most recently from 5926d12 to 8ad9b7a Compare November 17, 2024 18:55
@drupol
Copy link
Contributor Author

drupol commented Nov 17, 2024

@ofborg build python312Packages.captum

@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 356087


x86_64-linux

✅ 4 packages built:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

aarch64-linux

✅ 4 packages built:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

x86_64-darwin

✅ 4 packages built:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

aarch64-darwin

❌ 4 packages failed to build:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

1 similar comment
@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 356087


x86_64-linux

✅ 4 packages built:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

aarch64-linux

✅ 4 packages built:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

x86_64-darwin

✅ 4 packages built:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

aarch64-darwin

❌ 4 packages failed to build:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

@GaetanLepage
Copy link
Contributor

https://paste.glepage.com/upload/bear-pug-viper

@drupol drupol requested a review from GaetanLepage November 19, 2024 17:47
@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 356087


x86_64-linux

✅ 4 packages built:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

aarch64-linux

✅ 4 packages built:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

x86_64-darwin

✅ 4 packages built:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

aarch64-darwin

❌ 4 packages failed to build:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

Comment on lines 80 to 100
# Failing tests: AssertionError: 1.0 != 0.5 within 0.0001 delta (0.5 difference)
"test_TCAV_0_0"
"test_TCAV_0_1"
"test_TCAV_0_1_attr_to_inputs"
"test_TCAV_1_0_1"
"test_TCAV_1_0_b"
"test_TCAV_1_1_a"
"test_TCAV_1_1_a_wo_acc_metric"
"test_TCAV_1_1_b"
"test_TCAV_1_1_c"
"test_TCAV_1_1_d"
"test_TCAV_x_1_0_1"
"test_TCAV_x_1_0_1_attr_to_inputs"
"test_TCAV_x_1_0_1_w_flipped_class_id"
"test_TCAV_x_1_0_a"
"test_TCAV_x_1_0_b"
"test_TCAV_x_1_1_a"
"test_TCAV_x_1_1_b"
"test_TCAV_x_1_1_c"
"test_TCAV_x_1_1_c_concept_order_changed"
"test_TCAV_x_1_1_"
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add tests/concept/test_tcav.py to disabledTestPaths instead.
Also, could you please report this upstream ?

@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 356087


x86_64-linux

✅ 4 packages built:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

aarch64-linux

✅ 4 packages built:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

x86_64-darwin

✅ 4 packages built:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

aarch64-darwin

✅ 4 packages built:
  • python311Packages.captum
  • python311Packages.captum.dist
  • python312Packages.captum
  • python312Packages.captum.dist

Copy link
Contributor

@GaetanLepage GaetanLepage left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +85 to +86
homepage = "https://github.com/pytorch/captum";
license = lib.licenses.bsd3;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
homepage = "https://github.com/pytorch/captum";
license = lib.licenses.bsd3;
homepage = "https://github.com/pytorch/captum";
changelog = "https://github.com/pytorch/captum/releases/tag/v${version}";
license = lib.licenses.bsd3;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Zut.... Je corrige ça asap.

@drupol drupol merged commit c3f9d32 into NixOS:master Nov 20, 2024
9 of 10 checks passed
facebook-github-bot pushed a commit to meta-pytorch/captum that referenced this pull request Mar 25, 2025
Summary:
While packaging this module for Nix (NixOS/nixpkgs#356087), I noticed during the tests that `flask` and `flask-compress` modules were missing from the `setup.py` file.

Pull Request resolved: #1442

Reviewed By: cyrjano

Differential Revision: D71814035

Pulled By: jjuncho

fbshipit-source-id: 4e1cbc9e2e43dd88657063fade94405094bb4190
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants