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

hy: 0.17.0 -> 0.18.0 #84661

Merged
merged 3 commits into from Apr 29, 2020
Merged

hy: 0.17.0 -> 0.18.0 #84661

merged 3 commits into from Apr 29, 2020

Conversation

jjwatt
Copy link
Contributor

@jjwatt jjwatt commented Apr 7, 2020

Motivation for this change

Hy is out of date in nixpkgs and hy has deprecated Python 2 support, so we can update to 0.18.0 and make it a Python 3 application.

Things done

Updated hy package to latest release and to use python3Package.
Setup tests with checkPhase and can run them manually in a nix-shell, but they don't seem to get run properly during nix-build, so set doCheck = false

  • 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.

@jjwatt
Copy link
Contributor Author

jjwatt commented Apr 7, 2020

I just noticed that the hy project does not include the tests in its source distribution from PyPI, so that explains why my checkPhase wasn't working properly in nix-build :). LMK if it would be preferable to pull the release's code from github (where the tests are) rather than using PyPI.

@CloudArtAdmins
Copy link
Contributor

This worked for me.
Not sure if you were going to make more changes, but currently works.

@jjwatt
Copy link
Contributor Author

jjwatt commented Apr 8, 2020

I don't need to make any more changes unless suggested by reviewers. It works for me, too! I do see other Nix python applications that skip running the tests because they're not there in the PyPI source distribution. I just wasn't sure what the best practice was.

@ofborg ofborg bot requested a review from nixy April 8, 2020 19:36
@jjwatt
Copy link
Contributor Author

jjwatt commented Apr 9, 2020

I squashed commits and cleaned it up.

Copy link
Contributor

@langston-barrett langston-barrett left a comment

Choose a reason for hiding this comment

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

This works for me.

jjwatt and others added 2 commits April 29, 2020 14:52
Co-Authored-By: Jon <jonringer@users.noreply.github.com>
Co-Authored-By: Jon <jonringer@users.noreply.github.com>
@ofborg ofborg bot requested a review from nixy April 29, 2020 19:01
@Mic92 Mic92 merged commit 5f26d13 into NixOS:master Apr 29, 2020
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

6 participants