Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pyquery for openSUSE:Factory checked in at 2023-04-27 19:56:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyquery (Old) and /work/SRC/openSUSE:Factory/.python-pyquery.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyquery" Thu Apr 27 19:56:48 2023 rev:24 rq:1082798 version:2.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyquery/python-pyquery.changes 2023-04-24 22:30:43.475336358 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyquery.new.1533/python-pyquery.changes 2023-04-27 19:56:51.404487231 +0200 @@ -1,0 +2,6 @@ +Mon Apr 24 16:44:07 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com> + +- Update make_webtest_optional.patch to make the import optional in + conftest.py + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ make_webtest_optional.patch ++++++ --- /var/tmp/diff_new_pack.ELri42/_old 2023-04-27 19:56:51.840489794 +0200 +++ /var/tmp/diff_new_pack.ELri42/_new 2023-04-27 19:56:51.844489817 +0200 @@ -2,8 +2,10 @@ tests/test_pyquery.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) ---- a/tests/test_pyquery.py -+++ b/tests/test_pyquery.py +Index: pyquery-2.0.0/tests/test_pyquery.py +=================================================================== +--- pyquery-2.0.0.orig/tests/test_pyquery.py ++++ pyquery-2.0.0/tests/test_pyquery.py @@ -7,9 +7,12 @@ import time from lxml import etree from pyquery.pyquery import PyQuery as pq, no_default @@ -20,7 +22,7 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) -@@ -835,6 +838,7 @@ class TestXMLNamespace(TestCase): +@@ -894,6 +897,7 @@ class TestXMLNamespace(TestCase): self.assertEqual(repr(val), repr('b')) @@ -28,7 +30,7 @@ class TestWebScrapping(TestCase): def setUp(self): -@@ -879,6 +883,7 @@ class TestWebScrappingEncoding(TestCase) +@@ -938,6 +942,7 @@ class TestWebScrappingEncoding(TestCase) self.assertEqual(d('#pt-login').text(), u'ÐойÑи') @@ -36,4 +38,23 @@ class TestWebScrappingTimeouts(TestCase): def setUp(self): +Index: pyquery-2.0.0/conftest.py +=================================================================== +--- pyquery-2.0.0.orig/conftest.py ++++ pyquery-2.0.0/conftest.py +@@ -1,7 +1,12 @@ + import os + import pytest +-from webtest import http +-from webtest.debugapp import debug_app ++ ++try: ++ from webtest import http ++ from webtest.debugapp import debug_app ++except (ImportError, ModuleNotFoundError): ++ http = None ++ + from urllib.request import urlopen + +