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

PyZufall: init at 0.13.2 #22981

Merged
merged 1 commit into from
Feb 26, 2017
Merged

PyZufall: init at 0.13.2 #22981

merged 1 commit into from
Feb 26, 2017

Conversation

davidak
Copy link
Member

@davidak davidak commented Feb 19, 2017

Motivation for this change

I want to use it on a server running NixOS and maybe it's useful for more Nix users :)

The description is in german since the library outputs random german words and sentences.

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

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

@davidak davidak changed the title [WIP] PyZufall: init at 0.13.2 PyZufall: init at 0.13.2 Feb 19, 2017
sha256 = "1jffhi20m82fdf78bjhncbdxkfzcskrlipxlrqq9741xdvrn14b5";
};

# Cannot build wheel otherwise (zip 1980 issue)
Copy link
Member

Choose a reason for hiding this comment

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

Odd, this is the second PR this week where someone had to do this.

};

# Cannot build wheel otherwise (zip 1980 issue)
SOURCE_DATE_EPOCH=315532800;
Copy link
Member

Choose a reason for hiding this comment

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

I just tested and didn't need this, so please remov

Copy link
Member Author

Choose a reason for hiding this comment

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

i looked how other python packages have done it and just transfered it since it looked like a general issue. thanks for testing and the feedback!


# disable tests due to problem with nose
# https://github.com/nose-devs/nose/issues/1037
doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

the archive does not contain any tests, so that's why it fails

Copy link
Member Author

Choose a reason for hiding this comment

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

it had doctests in the code and test.py, which is not included in the archive in the current release, but everytime the tests fail even before the first test is executed (see linked issue)


meta = with stdenv.lib; {
homepage = "https://pyzufall.readthedocs.io/de/latest/";
description = "Library zum Erzeugen von zufälligen Daten";
Copy link
Member

@FRidh FRidh Feb 19, 2017

Choose a reason for hiding this comment

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

just explain it in English

@davidak
Copy link
Member Author

davidak commented Feb 21, 2017

@FRidh is the latest commit good? do you have a solution for the problem with tests runing with Nix? It don't appear local or with Travis.

Copy link
Member

@FRidh FRidh left a comment

Choose a reason for hiding this comment

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

@FRidh is the latest commit good?

Looks good, just one more small edit.

do you have a solution for the problem with tests runing with Nix? It don't appear local or with Travis.

If tests aren't included there's not much that can be done. Sometimes we then fetch from the repository instead of PyPI. This you could do but that I leave up to you as maintainer.

homepage = "https://pyzufall.readthedocs.io/de/latest/";
description = "Library for generating random data and sentences in german language";
license = licenses.gpl3Plus;
platforms = platforms.all;
Copy link
Member

Choose a reason for hiding this comment

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

platforms should be removed because its inherited from the Python interpreter.

Copy link
Member Author

Choose a reason for hiding this comment

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

ok, i deleted it and tested build again.

@davidak
Copy link
Member Author

davidak commented Feb 22, 2017

@FRidh the file that is missing in the archive contains 4 more tests, about 48 are in the code as doctests. the error happens before the first test is executed. i have also testet it with the repo.

@davidak
Copy link
Member Author

davidak commented Feb 22, 2017

also done a rebase again to fix merge conflicts.

@FRidh FRidh merged commit 0dee2a1 into NixOS:master Feb 26, 2017
@davidak davidak deleted the PyZufall branch March 27, 2018 22:54
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

4 participants