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

git-up: not a python package #21710

Merged
merged 1 commit into from Jan 6, 2017
Merged

git-up: not a python package #21710

merged 1 commit into from Jan 6, 2017

Conversation

peterhoeg
Copy link
Member

@peterhoeg peterhoeg commented Jan 6, 2017

Motivation for this change
  1. git-up is not a python package as such but an application, so move it out of python-packages.nix
  2. get rid of the tests (we've already run the tests)
Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

1. git-up is a python package as such but an application, so move it out of python-packages.nix
2. get rid of the tests (we've already run the tests)
@mention-bot
Copy link

@peterhoeg, thanks for your PR! By analyzing the history of the files in this pull request, we identified @FRidh to be a potential reviewer.

@FRidh FRidh merged commit f70f898 into NixOS:master Jan 6, 2017
@FRidh
Copy link
Member

FRidh commented Jan 6, 2017

I'm thinking of maybe adding op option to buildPythonPackage that by default always removes tests* after installation and checkPhase.

@peterhoeg peterhoeg deleted the f/gitup branch January 7, 2017 01:32
@peterhoeg
Copy link
Member Author

@FRidh, I'm removing the tests from the postInstall phase which is before the checkPhase and it works, so aren't the checks run from the source directory and not the target? That means we should be able to blow away those tests at any time. Great idea to do it for all btw!

@peterhoeg peterhoeg restored the f/gitup branch January 7, 2017 03:57
@FRidh
Copy link
Member

FRidh commented Jan 7, 2017

Yes, by default the tests are run in the source dir. This works for most packages but sometimes tests need to be run in $out.

@peterhoeg peterhoeg deleted the f/gitup branch January 7, 2017 14:56
@peterhoeg peterhoeg restored the f/gitup branch January 9, 2017 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants