Skip to content

cmake-lint: remove nose dependency#327220

Merged
Aleksanaa merged 1 commit intoNixOS:masterfrom
pyrox0:denose/cmake-lint
Jul 24, 2024
Merged

cmake-lint: remove nose dependency#327220
Aleksanaa merged 1 commit intoNixOS:masterfrom
pyrox0:denose/cmake-lint

Conversation

@pyrox0
Copy link
Member

@pyrox0 pyrox0 commented Jul 14, 2024

Description of changes

Removes a dependency on nose, part of #326513

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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

Copy link
Member

@emilazy emilazy left a comment

Choose a reason for hiding this comment

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

No strong opinions about the coverage testing (is there an obstacle to just running the unmodified test suite?) but this looks good to me; upstream doesn’t mention nose at all any more. I wonder how many totally unused Python dependencies we have in tree…

@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Jul 15, 2024
@ofborg ofborg bot requested a review from luftmensch-luftmensch July 15, 2024 00:17
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jul 15, 2024
@pyrox0
Copy link
Member Author

pyrox0 commented Jul 15, 2024

No strong opinions about the coverage testing (is there an obstacle to just running the unmodified test suite?) but this looks good to me; upstream doesn’t mention nose at all any more. I wonder how many totally unused Python dependencies we have in tree…

There's no obstacle(afaik) to running it besides adding the pytest-cov dependency to nativeCheckInputs, it's just not useful to run them in Nix checks.

@emilazy
Copy link
Member

emilazy commented Jul 15, 2024

I’d personally be willing to spend a build dependency and some CPU cycles to avoid the churn of a patch that might rot and block updates, but you’re right that it is kind of pointless to run. I’ll leave it to the maintainer’s discretion :)

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jul 15, 2024
@Aleksanaa Aleksanaa merged commit ae9c93b into NixOS:master Jul 24, 2024
@pyrox0 pyrox0 deleted the denose/cmake-lint branch August 4, 2024 23:21
@SuperSandro2000
Copy link
Member

It is guidance by the python people that pytest-cov (like all other linters and the like) is not to be used and be patched our or now be replaced with pytest-cov-stub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants