forked from pool/python-pycurl
- Add patch handle-change-debug-curl-8.16.0.patch (bsc#1249448, gh#pycurl/pycurl@eb7f52eeef85)
- Drop patch test-bottle-flask.patch, not needed anymore
- Update to 7.45.6:
* Re-enable building Linux wheels with CA bundle autodetection
- 7.45.5
* Enable GSS-API and brotli support in wheels (patch by Scott Talbert).
* Add support for calling getinfo with CURLOPT_*_T arguments
(patch by Scott Talbert)
* Change wheels to build using shared libraries (vice static libraries)
(patch by Scott Talbert)
* Build wheels with curl 8.12.1 (mainly for security fixes)
- 7.45.4
* Add support for CURLOPT_HAPROXY_CLIENT_IP (patch by Scott Talbert).
* Port tests from bottle to flask (patch by Miro Hrončok).
* Add constant for CURL_HTTP_VERSION_3ONLY (patch by Pavel Horáček).
* Add EFFECTIVE_METHOD info option (patch by Pavel Horáček).
* Don't use `-flat_namespace` on macOS (patch by Michael Cho).
* Add some missing GIL checks to callback functions
(patch by Scott Talbert).
* Fix assorted bugs in pycurl tests, including a segfault
(patch by Scott Talbert). All tests should now pass on Linux and
macOS.
* Fix minor bug in examples/multi-socket_action-select.py
(patch by Oleg Broytman).
* Build all wheels using the latest version of libcurl and its
dependencies (patch by Scott Talbert). All wheels should now have
openssl, HTTP2, and SSH support.
* Implement Certificate Authority path autodetection when building
Linux wheels (patch by Scott Talbert).
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=116
This commit is contained in:
66
pycurl-libssh.patch
Normal file
66
pycurl-libssh.patch
Normal file
@@ -0,0 +1,66 @@
|
||||
---
|
||||
tests/ssh_key_cb_test.py | 31 +++++++++++++++++++++++--------
|
||||
1 file changed, 23 insertions(+), 8 deletions(-)
|
||||
|
||||
--- a/tests/ssh_key_cb_test.py
|
||||
+++ b/tests/ssh_key_cb_test.py
|
||||
@@ -33,8 +33,11 @@ class SshKeyCbTest(unittest.TestCase):
|
||||
def keyfunction(known_key, found_key, match):
|
||||
return pycurl.KHSTAT_FINE
|
||||
|
||||
- self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
|
||||
- self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)
|
||||
+ try:
|
||||
+ self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
|
||||
+ self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)
|
||||
+ except pycurl.error as e:
|
||||
+ self.assertEqual(pycurl.E_UNKNOWN_OPTION, e.args[0])
|
||||
|
||||
try:
|
||||
self.curl.perform()
|
||||
@@ -47,8 +50,11 @@ class SshKeyCbTest(unittest.TestCase):
|
||||
def keyfunction(known_key, found_key, match):
|
||||
return pycurl.KHSTAT_REJECT
|
||||
|
||||
- self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
|
||||
- self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)
|
||||
+ try:
|
||||
+ self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
|
||||
+ self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)
|
||||
+ except pycurl.error as e:
|
||||
+ self.assertEqual(pycurl.E_UNKNOWN_OPTION, e.args[0])
|
||||
|
||||
try:
|
||||
self.curl.perform()
|
||||
@@ -62,8 +68,11 @@ class SshKeyCbTest(unittest.TestCase):
|
||||
def keyfunction(known_key, found_key, match):
|
||||
return 'bogus'
|
||||
|
||||
- self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
|
||||
- self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)
|
||||
+ try:
|
||||
+ self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
|
||||
+ self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)
|
||||
+ except pycurl.error as e:
|
||||
+ self.assertEqual(pycurl.E_UNKNOWN_OPTION, e.args[0])
|
||||
|
||||
try:
|
||||
self.curl.perform()
|
||||
@@ -82,9 +91,15 @@ class SshKeyCbUnsetTest(unittest.TestCas
|
||||
@util.min_libcurl(7, 19, 6)
|
||||
@util.guard_unknown_libcurl_option
|
||||
def test_keyfunction_none(self):
|
||||
- self.curl.setopt(pycurl.SSH_KEYFUNCTION, None)
|
||||
+ try:
|
||||
+ self.curl.setopt(pycurl.SSH_KEYFUNCTION, None)
|
||||
+ except pycurl.error as e:
|
||||
+ self.assertEqual(pycurl.E_UNKNOWN_OPTION, e.args[0])
|
||||
|
||||
@util.min_libcurl(7, 19, 6)
|
||||
@util.guard_unknown_libcurl_option
|
||||
def test_keyfunction_unset(self):
|
||||
- self.curl.unsetopt(pycurl.SSH_KEYFUNCTION)
|
||||
+ try:
|
||||
+ self.curl.unsetopt(pycurl.SSH_KEYFUNCTION)
|
||||
+ except pycurl.error as e:
|
||||
+ self.assertEqual(pycurl.E_UNKNOWN_OPTION, e.args[0])
|
||||
Reference in New Issue
Block a user