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

qualia: init at 1.0.0 #21740

Merged
merged 1 commit into from Jan 7, 2017
Merged

qualia: init at 1.0.0 #21740

merged 1 commit into from Jan 7, 2017

Conversation

srhb
Copy link
Contributor

@srhb srhb commented Jan 7, 2017

Motivation for this change

New package

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.

@mention-bot
Copy link

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

@FRidh
Copy link
Member

FRidh commented Jan 7, 2017

As you mentioned on IRC this is an application and not a library. Therefore, it should indeed be called from all-packages.nix. However, in that case it shouldn't be in python-packages.nix but somewhere else in the Nixpkgs tree depending on what kind of application this is.

@srhb
Copy link
Contributor Author

srhb commented Jan 7, 2017

Sorry about that, I misunderstood you. I've moved it to tools/text following the logic that it is similar in scope of use to things like diffutils that already live there. The tool conditionally adds/removes commented sections from eg. dotfiles based on certain predicates.

@FRidh
Copy link
Member

FRidh commented Jan 7, 2017

Good. The final step is tests. By default buildPythonPackage runs tests and I saw 0 zero tests were found. Unfortunately there's many different ways tests are invoked, so often the default test runner (python setup.py test) won't find any.

I see you added pytest. Likely tests are run with py.test. Typically it helps checking the archive to see how tests are supposed to run. Also, because sometimes no tests are actually included, in which case we set doCheck = false; and include a comment explaining why the tests are disabled.

@srhb
Copy link
Contributor Author

srhb commented Jan 7, 2017

It looks like the tests are broken upstream, so enabling custom testing would break the build. Would it be preferable if I close this PR for now and return later when it has been fixed, rather than adding the package with doCheck = false;?

@FRidh
Copy link
Member

FRidh commented Jan 7, 2017

No, adding doCheck = false; now is fine. Do you want to maintain this package? If so, you can add the maintainer field. Don't forget to squash the commits eventually.

tests disabled
maintainer srhb
@srhb
Copy link
Contributor Author

srhb commented Jan 7, 2017

Squashed, tests disabled and I've added myself as maintainer.

@FRidh FRidh merged commit 9fdbb62 into NixOS:master Jan 7, 2017
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

3 participants