Skip to content

treq: 17.3.1 fixes #26222

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

Merged
merged 1 commit into from
May 30, 2017
Merged

treq: 17.3.1 fixes #26222

merged 1 commit into from
May 30, 2017

Conversation

nand0p
Copy link
Contributor

@nand0p nand0p commented May 30, 2017

  • enables and fixes tests
  • makes docs properly
  • tested nixos python 27/34

@mention-bot
Copy link

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

${coreutils}/bin/mkdir -pv treq
${coreutils}/bin/echo "${version}" | ${coreutils}/bin/tee treq/_version
cd docs && ${gnumake}/bin/make html && cd ..
tox -e docs
Copy link
Member

Choose a reason for hiding this comment

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

what is this for?

Copy link
Contributor Author

@nand0p nand0p May 30, 2017

Choose a reason for hiding this comment

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

makes documentation available in $out. however, it is erroneously writing out to /tmp at the moment.

Copy link
Member

Choose a reason for hiding this comment

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

do always document why you run commands like these because its not obvious at all what it does.

@@ -33,13 +33,12 @@ buildPythonPackage rec {
trial treq
'';

doCheck = false;
# Failure: twisted.web._newclient.RequestTransmissionFailed: [<twisted.python.failure.Failure OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')]>]
patchPhase = ''
Copy link
Member

Choose a reason for hiding this comment

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

Please always use postPatch when adding additional patching. That way, one can still pass in patches.

@nand0p nand0p force-pushed the treq-fixes branch 4 times, most recently from 0378062 to affd5a3 Compare May 30, 2017 14:26
@nand0p
Copy link
Contributor Author

nand0p commented May 30, 2017

@FRidh ready_for_review

cd docs && ${gnumake}/bin/make html && cd ..
# build documentation and install in $out
tox -e docs
cp -rv docs $out
Copy link
Member

Choose a reason for hiding this comment

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

Should they not go in a specific folder? Note that with Python packages we typically do not bother with the docs.

- enables and fixes tests
- makes docs properly
- used fetchpypi
- tested nixos python 27/34
@nand0p
Copy link
Contributor Author

nand0p commented May 30, 2017

@FRidh updated to correctly write out documentation to $out/docs. i left this in for the sake of completeness, but let me know if you would rather remove documentation all-together. it seems if the author took the time to write it, we should attempt to package, if not too much trouble?

@FRidh
Copy link
Member

FRidh commented May 30, 2017

@nand0p its just that its the wrong destination. Documentation likely goes somewhere in /share. I'm not too familiar with those things though.

@nand0p
Copy link
Contributor Author

nand0p commented May 30, 2017

@FRidh im seeing other python mods like python-wifi, write out documentation to $out/docs, but im also seeing other projects write out docs to $out/share and $out/lib. im not finding any documentation regarding what the correct method is. can we merge this for now, so as to unblock master, and I can update once there is a clear path forward regarding documentation?

@FRidh FRidh merged commit c6ea7d3 into NixOS:master May 30, 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