14
0
forked from pool/python-pycurl

Accepting request 1046272 from devel:languages:python

- update to 7.45.2:
  * Python 3.9 compatibility for Py_TRASHCAN_SAFE_BEGIN
  * Add support for CURL_HTTP_VERSION_3
  * Add CURLOPT_TLS13_CIPHERS and CURLOPT_PROXY_TLS13_CIPHERS options
  * Added HTTP09_ALLOWED option
  * Removed use of distutils
- drop curl-789-error-message.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/1046272
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycurl?expand=0&rev=40
This commit is contained in:
2023-01-04 16:50:45 +00:00
committed by Git OBS Bridge
5 changed files with 16 additions and 32 deletions

View File

@@ -1,25 +0,0 @@
Index: pycurl-7.45.1/tests/error_test.py
===================================================================
--- pycurl-7.45.1.orig/tests/error_test.py
+++ pycurl-7.45.1/tests/error_test.py
@@ -29,7 +29,7 @@ class ErrorTest(unittest.TestCase):
err, msg = exc.args
self.assertEqual(pycurl.E_URL_MALFORMAT, err)
# possibly fragile
- self.assertEqual('No URL set!', msg)
+ self.assertIn("No URL set", msg)
else:
self.fail('Expected pycurl.error to be raised')
@@ -43,9 +43,9 @@ class ErrorTest(unittest.TestCase):
self.curl.perform()
except pycurl.error:
# might be fragile
- self.assertEqual('No URL set!', self.curl.errstr())
+ self.assertIn('No URL set', self.curl.errstr())
# repeated checks do not clear value
- self.assertEqual('No URL set!', self.curl.errstr())
+ self.assertIn('No URL set', self.curl.errstr())
# check the type - on all python versions
self.assertEqual(str, type(self.curl.errstr()))
else:

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a863ad18ff478f5545924057887cdae422e1b2746e41674615f687498ea5b88a
size 233879

BIN
pycurl-7.45.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Jan 2 18:51:53 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 7.45.2:
* Python 3.9 compatibility for Py_TRASHCAN_SAFE_BEGIN
* Add support for CURL_HTTP_VERSION_3
* Add CURLOPT_TLS13_CIPHERS and CURLOPT_PROXY_TLS13_CIPHERS options
* Added HTTP09_ALLOWED option
* Removed use of distutils
- drop curl-789-error-message.patch (upstream)
-------------------------------------------------------------------
Thu Apr 28 06:00:57 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -27,7 +27,7 @@
%bcond_with test
%endif
Name: python-pycurl%{psuffix}
Version: 7.45.1
Version: 7.45.2
Release: 0
Summary: PycURL -- cURL library module
License: LGPL-2.1-or-later AND MIT
@@ -41,8 +41,6 @@ Patch2: disable_randomly_failing_tests.patch
# PATCH-FIX-OPENSUSE make-leap15-compat.patch mcepl@suse.com
# Make tests passing with Leap 15.2
Patch3: make-leap15-compat.patch
# PATCH-FIX-OPENSUSE Handle missing ! in a returned error message
Patch4: curl-789-error-message.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes