Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-urlextract for 
openSUSE:Factory checked in at 2022-11-12 17:41:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-urlextract (Old)
 and      /work/SRC/openSUSE:Factory/.python-urlextract.new.1597 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-urlextract"

Sat Nov 12 17:41:23 2022 rev:5 rq:1035300 version:1.7.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-urlextract/python-urlextract.changes      
2022-10-30 18:29:35.274628167 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-urlextract.new.1597/python-urlextract.changes
    2022-11-12 17:41:44.170370527 +0100
@@ -1,0 +2,6 @@
+Wed Nov  9 19:35:06 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- Update to v1.7.1 
+  * fixes urlextract without authority causes AttributeError
+
+-------------------------------------------------------------------

Old:
----
  urlextract-1.7.0.tar.gz

New:
----
  urlextract-1.7.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-urlextract.spec ++++++
--- /var/tmp/diff_new_pack.l9T8rV/_old  2022-11-12 17:41:44.598373075 +0100
+++ /var/tmp/diff_new_pack.l9T8rV/_new  2022-11-12 17:41:44.606373123 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-urlextract
-Version:        1.7.0
+Version:        1.7.1
 Release:        0
 Summary:        Collects and extracts URLs from given text
 License:        MIT

++++++ urlextract-1.7.0.tar.gz -> urlextract-1.7.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/URLExtract-1.7.0/.bumpversion.cfg 
new/URLExtract-1.7.1/.bumpversion.cfg
--- old/URLExtract-1.7.0/.bumpversion.cfg       2022-10-22 19:41:56.000000000 
+0200
+++ new/URLExtract-1.7.1/.bumpversion.cfg       2022-10-25 20:59:57.000000000 
+0200
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 1.7.0
+current_version = 1.7.1
 commit = True
 tag = True
 message = Version {new_version}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/URLExtract-1.7.0/CHANGELOG.rst 
new/URLExtract-1.7.1/CHANGELOG.rst
--- old/URLExtract-1.7.0/CHANGELOG.rst  2022-10-22 19:41:56.000000000 +0200
+++ new/URLExtract-1.7.1/CHANGELOG.rst  2022-10-25 20:59:57.000000000 +0200
@@ -2,6 +2,9 @@
 ~~~~~~~~~
 - N/A
 
+- 1.7.1 (2022-10-25)
+    - fixes urlextract without authority causes AttributeError
+
 - 1.7.0 (2022-10-22)
     - correct handling when authority starts with @ symbol
     - remove unreserved characters from the beginning of found URL
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/URLExtract-1.7.0/setup.py 
new/URLExtract-1.7.1/setup.py
--- old/URLExtract-1.7.0/setup.py       2022-10-22 19:41:56.000000000 +0200
+++ new/URLExtract-1.7.1/setup.py       2022-10-25 20:59:57.000000000 +0200
@@ -16,7 +16,7 @@
 
 # version of URLExtract
 # (do not forget to change it in urlextract_core.py as well)
-__version__ = "1.7.0"
+__version__ = "1.7.1"
 
 
 def read(readme):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/URLExtract-1.7.0/tests/unit/test_find_urls.py 
new/URLExtract-1.7.1/tests/unit/test_find_urls.py
--- old/URLExtract-1.7.0/tests/unit/test_find_urls.py   2022-10-22 
19:41:56.000000000 +0200
+++ new/URLExtract-1.7.1/tests/unit/test_find_urls.py   2022-10-25 
20:59:57.000000000 +0200
@@ -58,6 +58,7 @@
             ["www.example.com/somejsfile.js"],
         ),
         ("bad.email @address.net>", ['bad.email']),
+        ('[[ "$(giturl)" =~ ^https://gitlab.com ]] echo "found" || echo 
"didnt', []),
     ],
 )
 def test_find_urls(urlextract, text, expected):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/URLExtract-1.7.0/urlextract/urlextract_core.py 
new/URLExtract-1.7.1/urlextract/urlextract_core.py
--- old/URLExtract-1.7.0/urlextract/urlextract_core.py  2022-10-22 
19:41:56.000000000 +0200
+++ new/URLExtract-1.7.1/urlextract/urlextract_core.py  2022-10-25 
20:59:57.000000000 +0200
@@ -25,7 +25,7 @@
 from urlextract.cachefile import CacheFile, CacheFileError
 
 # version of URLExtract (do not forget to change it in setup.py as well)
-__version__ = "1.7.0"
+__version__ = "1.7.1"
 
 # default value for maximum count of processed URLs by find_url
 DEFAULT_LIMIT = 10000
@@ -578,7 +578,7 @@
         # <scheme>://<authority>/<path>?<query>#<fragment>
 
         # authority can't start with @
-        if url_parts.authority.startswith('@'):
+        if url_parts.authority and url_parts.authority.startswith('@'):
             return False
 
         # if URI contains user info and schema was automatically added

Reply via email to