Commit Graph

10 Commits

Author SHA1 Message Date
Joshua Oreman 305b258a48 Fix CI, make COPY_META mode work 2022-01-13 17:19:28 -07:00
Joshua Oreman 62da18ee37 Document and test remaining attributes/methods; fix PyPy tests by not calling unbind() from tp_dealloc; misc other cleanups 2022-01-13 17:09:51 -07:00
Joshua Oreman 2c782b9619 CI fixes 2022-01-13 03:21:24 -07:00
Joshua Oreman 0187c89611 Fixes for several open issues
Propagate exceptions raised by the user's packet callback -- fixes #31, #50
Warn about exceptions raised by the packet callback during queue unbinding
Raise an error if a packet verdict is set after its parent queue is closed
set_payload() now affects the result of later get_payload() -- fixes #30
Handle signals received when run() is blocked in recv() -- fixes #65
2022-01-13 03:14:43 -07:00
Joshua Oreman 8d3193f384 Release v0.9.0 2022-01-12 23:45:51 -07:00
Joshua Oreman a5578d3122 Misc CI and packaging updates
- Add a pyproject.toml
- Run black on Python code
- Do a basic smoke test on Python 2.7, even though our test suite doesn't work there
- Don't check in `netfilterqueue.c`, but do include it in the sdist
2022-01-12 19:56:51 -07:00
Joshua Oreman c2d7ce868a Suppress warning harder 2022-01-11 22:39:30 -07:00
Joshua Oreman ba0e8bee0e Suppress warning again + update README 2022-01-11 22:36:13 -07:00
Joshua Oreman 99c13b3d8f Improve & test error handling 2022-01-11 22:01:53 -07:00
Joshua Oreman 9587d75aff Modernize, add tests, allow Packet to outlive the callback it's passed to 2022-01-11 21:28:21 -07:00