-
Notifications
You must be signed in to change notification settings - Fork 85
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
Poll support #50
Poll support #50
Conversation
I think I messed up the rebase when I repulled with your master branch. This pull request indicates lines changed that are associated with the previous pull request(s) from myself and Ryan Bahneman. Those lines are the same as the master. |
Ok this looks amazing, I'll check it out, thanks!! |
It looks like the only problem with this PR is that it fails on Python 2.6 due to a str.format() issue. Line 20 in test_poll.py needs to be changed from
to
This is necessary because Python 2.6 didn't auto-number the format fields. From the docs:
And here is a patch that makes the tiny change:
|
Thanks, Cody. I amended the pull request. |
Thanks @jbester! It looks like there's another problem now: Travis is failing because nanomsg now uses cmake as its build tool, so the files That's as far as I've gotten on the problem, but once the travis.yml file is updated everything should (hopefully) work. I'll see if I can get to the bottom of this and attach a patch here – it'll give me a good opportunity to figure out how to do stuff with Travis anyway. |
@codypiersall Appveyor errors have come up in pull request |
@jbester I'm not sure what the AppVeyor issue is, but the reason the checks for this PR are failing is that nanomsg doesn't support autotools anymore. In a perfectly organized world, a completely separate PR should be given to nanomsg-python to just update the .travis.yml file, and this PR would just be rebased... and actually if that's what @tonysimpson wants I don't mind submitting a separate PR that just fixes the Travis build. I gave you a pull request that fixes Travis, but if it's easier for you to just apply a patch then I've attached it below. I don't care at all about getting my name in the commit log, so just do whatever's easier for you.
|
Fix Travis integration
Woohoo! Thanks @jbester. |
Fantastic work both, sorry for taking so long to merge. I will make a release with these changes to PyPI soon. Thanks again! |
Thanks for accepting! |
This commits adds support for the nn_poll function in both the ctypes and cpy wrappers. Additionally, it adds a poll function at the top-level of the nanomsg module.
Any code review comments would be appreciated.