On Tue, 2020-03-24 at 03:54 +0000, Yingji Sun wrote:
> 在 2020/3/20 下午10:10,“Stephen Finucane”<stephenfin@redhat.com> 写入:
The suds-jurko library used by oslo.vmware is emitting the following warnings in nova tests.
/nova/.tox/py36/lib/python3.6/site-packages/suds/resolver.py:89: DeprecationWarning: invalid escape sequence \% self.splitp = re.compile('({.+})*[^\%s]+' % ps[0]) /nova/.tox/py36/lib/python3.6/site-packages/suds/wsdl.py:619: DeprecationWarning: invalid escape sequence \s body.parts = re.split('[\s,]', parts)
These warnings are going to be errors in Python 3.10 [1]. We have over 18 months before we need to worry about this [2], but I'd like to see some movement on this well before then. It seems the suds-jurko fork is dead [3] and movement on yet another fork, suds-community, is slow [4]. How difficult would it be to switch over to something that does seem maintained like zeep [5] and, assuming it's doable, is anyone from VMWare/SAP able to do this work?
Stephen
Stephen,
Thank you very much for pointing this out. Lichao (xuel@vmware.com) and I from VMware will involve into this issue.
Do you think zeep is a good alternative of suds ? Or did the replacement already take place on other project ?
We would like to make assessment to the zeep first and then make an action plan.
Yingji.
Apologies for missing this response, Yingji. From Johannes' reply, it seems zeep is indeed the way to go. I can't actually say if it's the best option, but from a cursory look it did seem to be best maintained and best documented of the options and is therefore possibly worth the effort of migrating for. From what I can tell, oslo.vmware appears to be the only project using suds so it would be the only one that needs to be migrated. Stephen
[1] https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.pytho... [2] https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.python... [3] https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbitbucket.... [4] https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com... [5] https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpython-zee...