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

python38Packages.percol: python3 support #115729

Merged
merged 2 commits into from Mar 20, 2021
Merged

Conversation

illustris
Copy link
Contributor

Motivation for this change

The percol package is currently marked as broken on python3

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

pkgs/development/python-modules/cmigemo/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/cmigemo/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/cmigemo/default.nix Outdated Show resolved Hide resolved
pkgs/top-level/python-packages.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/percol/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/percol/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/cmigemo/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/cmigemo/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/cmigemo/default.nix Outdated Show resolved Hide resolved
@illustris
Copy link
Contributor Author

@SuperSandro2000 changes made as requested, please review

@illustris
Copy link
Contributor Author

Hi. Can this be merged? Are there any further changes necessary?

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

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

4 packages built:
  • python38Packages.cmigemo
  • python38Packages.percol
  • python39Packages.cmigemo
  • python39Packages.percol

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

python38Packages.cmigemo:

warning: python-include-tests
Add a checkPhase for tests, or at least pythonImportsCheck.

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/python-include-tests.md

@illustris
Copy link
Contributor Author

@SuperSandro2000 I've added pytest for cmigemo. percol didn't have tests, so I added pythonImportsCheck.

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Mar 19, 2021

@SuperSandro2000 I've added pytest for cmigemo. percol didn't have tests, so I added pythonImportsCheck.

pythonImportsCheck can be added to all python packages even if running tests. They make sure the python package can be imported which is important that all required packages are there even without checkInputs.

Also sorry for letting you wait. There are just to many PRs and to little time.

@illustris
Copy link
Contributor Author

Yes, the number of PRs is terrifying XD

Should I add pythonImportsCheck to cmigemo? Looks like pytest already tests this
https://github.com/mooz/python-cmigemo/blob/ecf0c9487bf9e54ab03aebfc6a2935939cd8881f/test/test_cmigemo.py#L4

@SuperSandro2000
Copy link
Member

Should I add pythonImportsCheck to cmigemo? Looks like pytest already tests this

It wouldn't hurt because checkInputs has some extra packages most likely which are not available in the final environment.

@illustris
Copy link
Contributor Author

@SuperSandro2000 SuperSandro2000 merged commit 820a633 into NixOS:master Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants