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

python311Packages.shimmy: init at 1.3.0, python311Packages.dm-control: init at 1.0.19, python311Packages.noxe-xunitmp: init at 0.4.1 #309980

Merged
merged 3 commits into from
May 8, 2024

Conversation

GaetanLepage
Copy link
Contributor

@GaetanLepage GaetanLepage commented May 7, 2024

Description of changes

Add python package shimmy, an API conversion tool for popular external reinforcement learning environments.

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.05 Release Notes (or backporting 23.05 and 23.11 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.

pkgs/development/python-modules/dm-control/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/nose-xunitmp/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/shimmy/default.nix Outdated Show resolved Hide resolved
src = fetchFromGitHub {
owner = "google-deepmind";
repo = "dm_control";
rev = "refs/tags/${version}";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
rev = "refs/tags/${version}";
rev = version;

nixpkgs/CONTRIBUTING.md

Lines 722 to 736 in 65d1532

- Unnecessary string conversions should be avoided. Do
```nix
{
rev = version;
}
```
instead of
```nix
{
rev = "${version}";
}
```

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 completely agree that I should write version instead of "${version}", but in this case it is quite not the same.
A committer told me to do that when I started contributing. It was supposed to prevent branch/tag mismatches.

Do you have more up-to-date infos on this ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Waiting for @DontEatOreo before proceeding further. I have no opinion on this. One or the other it's fine for me.

Copy link
Member

Choose a reason for hiding this comment

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

I think @GaetanLepage raises a valid concern, and actually, I agree with that committer. In that case, you can ignore this change. Also, could you please link to that committer's comment about this?

On another note, maybe there should be a PR that clarifies this in the manual or somewhere else? I'm currently looking at the manual and there are examples of rev = version; in many places. Searching for "rev = version;" on nixpkgs reveals it's widely used as well

Copy link
Contributor

Choose a reason for hiding this comment

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

Fair enough, on my side I'll merge this PR once CI is done then.

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 think @GaetanLepage raises a valid concern, and actually, I agree with that committer. In that case, you can ignore this change. Also, could you please link to that committer's comment about this?

If I remember well, this was @SuperSandro2000, but I wouldn't be able to find the comment as it was ~1.5 years ago.

On another note, maybe there should be a PR that clarifies this in the manual or somewhere else? I'm currently looking at the manual and there are examples of rev = version; in many places. Searching for "rev = version;" on nixpkgs reveals it's widely used as well

I asked around and no-one seems to have a strong preference.
Relevant work: #153386

@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 labels May 8, 2024
@GaetanLepage
Copy link
Contributor Author

Result of nixpkgs-review pr 309980 run on aarch64-linux 1

6 packages built:
  • python311Packages.dm-control
  • python311Packages.dm-control.dist
  • python311Packages.nose-xunitmp
  • python311Packages.nose-xunitmp.dist
  • python311Packages.shimmy
  • python311Packages.shimmy.dist

@GaetanLepage
Copy link
Contributor Author

Result of nixpkgs-review pr 309980 run on x86_64-linux 1

6 packages built:
  • python311Packages.dm-control
  • python311Packages.dm-control.dist
  • python311Packages.nose-xunitmp
  • python311Packages.nose-xunitmp.dist
  • python311Packages.shimmy
  • python311Packages.shimmy.dist

@GaetanLepage GaetanLepage requested a review from drupol May 8, 2024 11:00
@DontEatOreo
Copy link
Member

Could you update the PR title to include all three packages so it's clearer what is being added

@GaetanLepage GaetanLepage changed the title python311Packages.shimmy: init at 1.3.0 python311Packages.shimmy: init at 1.3.0, python311Packages.dm-control: init at 1.0.19, python311Packages.noxe-xunitmp: init at 0.4.1 May 8, 2024
@DontEatOreo
Copy link
Member

Result of nixpkgs-review pr 309980 run on x86_64-linux 1

6 packages built:
  • python311Packages.dm-control
  • python311Packages.dm-control.dist
  • python311Packages.nose-xunitmp
  • python311Packages.nose-xunitmp.dist
  • python311Packages.shimmy
  • python311Packages.shimmy.dist

@drupol drupol merged commit f86695f into NixOS:master May 8, 2024
31 of 34 checks passed
@GaetanLepage GaetanLepage deleted the shimmy branch May 8, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: python 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants