Compare commits

..

No commits in common. "factory" and "factory" have entirely different histories.

5 changed files with 37 additions and 40 deletions

View File

@ -1,25 +1,12 @@
diff -Nru pyquery-2.0.1.orig/conftest.py pyquery-2.0.1/conftest.py
--- pyquery-2.0.1.orig/conftest.py 2024-08-30 10:12:19.000000000 +0200
+++ pyquery-2.0.1/conftest.py 2024-11-15 14:36:47.617602776 +0100
@@ -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
diff -Nru pyquery-2.0.1.orig/tests/test_pyquery.py pyquery-2.0.1/tests/test_pyquery.py
--- pyquery-2.0.1.orig/tests/test_pyquery.py 2024-08-30 10:12:19.000000000 +0200
+++ pyquery-2.0.1/tests/test_pyquery.py 2024-11-15 14:36:47.607602471 +0100
@@ -7,9 +7,12 @@
---
tests/test_pyquery.py | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
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
from pyquery.openers import HAS_REQUEST
@ -35,7 +22,7 @@ diff -Nru pyquery-2.0.1.orig/tests/test_pyquery.py pyquery-2.0.1/tests/test_pyqu
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
@@ -888,6 +891,7 @@
@@ -894,6 +897,7 @@ class TestXMLNamespace(TestCase):
self.assertEqual(repr(val), repr('b'))
@ -43,11 +30,30 @@ diff -Nru pyquery-2.0.1.orig/tests/test_pyquery.py pyquery-2.0.1/tests/test_pyqu
class TestWebScrapping(TestCase):
def setUp(self):
@@ -932,6 +936,7 @@
self.assertEqual(d('#pt-login').text(), 'Войти')
@@ -938,6 +942,7 @@ class TestWebScrappingEncoding(TestCase)
self.assertEqual(d('#pt-login').text(), u'Войти')
+@skipIf(http is None, "Cannot test without WebTest")
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

BIN
pyquery-2.0.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

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

View File

@ -1,12 +1,3 @@
-------------------------------------------------------------------
Fri Nov 15 13:38:40 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.0.1
* Breaking change: its seems no longer possible to use the
html parser with a xml file so its no longer tested
* Drop support for python 3.7
- Refresh make_webtest_optional.patch
-------------------------------------------------------------------
Mon Apr 24 16:44:07 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pyquery
# spec file
#
# Copyright (c) 2024 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 @@
%endif
%{?sle15_python_module_pythons}
Name: python-pyquery%{psuffix}
Version: 2.0.1
Version: 2.0.0
Release: 0
Summary: A jQuery-like library for python
License: BSD-3-Clause