Fix iscsi enum use for modern cython#143
Conversation
|
@bmeagherix as soon as the cython-iscsi stuff is in I will merge this. That said you are more or less the guy doing PR requests these days and you seem to be capable of handling your code ;) so what about an invite to the org so you are not dependent on me or diego ? |
Thanks @rosjat. I'd be fine with that. (Though TBH I'd still lean towards PRs to get consensus.) |
|
@bmeagherix i added you to a team so you can work on python-scsi and cython-iscsi, since @Flameeyes seems to be busy and I was busy myself lately this seems to be reasonable. Regarding PR's yes I would still do this and not pushing to upstream directly! A review should come first at all time. But this way we can at least make sure you dont have to wait for something all the time. |
Similar change as an inflight PR for
cython-iscsiModern
cythonchanges howcpdef enums are exposed. Update iscsi_device.py so that it will work with both old and new cython.Given
We used to be able to either use
iscsi.ISCSI_SESSION_NORMALoriscsi.iscsi_session_type.ISCSI_SESSION_NORMAL. With modern cython, only the latter works.From https://cython.readthedocs.io/en/latest/src/userguide/language_basics.html#structs-unions-enums
Verified the breakage and fix in a venv on Debian Trixie nightly, and on Bookworm.
The https://pypi.org/project/Cython/ shows