Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pipx for openSUSE:Factory 
checked in at 2023-11-07 21:28:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pipx (Old)
 and      /work/SRC/openSUSE:Factory/.python-pipx.new.17445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pipx"

Tue Nov  7 21:28:16 2023 rev:5 rq:1123995 version:1.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pipx/python-pipx.changes  2023-08-10 
15:34:57.132557340 +0200
+++ /work/SRC/openSUSE:Factory/.python-pipx.new.17445/python-pipx.changes       
2023-11-07 21:29:11.753782687 +0100
@@ -1,0 +2,6 @@
+Tue Nov  7 13:01:47 UTC 2023 - Eyad Issa <[email protected]>
+
+- Upstream version 1.2.1
+  * Fix compatibility to packaging 23.2+
+
+-------------------------------------------------------------------

Old:
----
  pipx-1.2.0.tar.gz

New:
----
  pipx-1.2.1.tar.gz

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

Other differences:
------------------
++++++ python-pipx.spec ++++++
--- /var/tmp/diff_new_pack.p1LWZ6/_old  2023-11-07 21:29:12.153797417 +0100
+++ /var/tmp/diff_new_pack.p1LWZ6/_new  2023-11-07 21:29:12.153797417 +0100
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-pipx
-Version:        1.2.0
+Version:        1.2.1
 Release:        0
 Summary:        Install and Run Python Applications in Isolated Environments
 License:        MIT

++++++ pipx-1.2.0.tar.gz -> pipx-1.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pipx-1.2.0/CHANGELOG.md new/pipx-1.2.1/CHANGELOG.md
--- old/pipx-1.2.0/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100
+++ new/pipx-1.2.1/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100
@@ -1,3 +1,7 @@
+## 1.2.1
+
+- Fix compatibility to packaging 23.2+ by removing reliance on packaging's 
requirement validation logic and detecting a URL-based requirement in pipx. 
(#1070)
+
 ## 1.2.0
 
 - Add test for pip module in `pipx reinstall` to fix an issue with `pipx 
reinstall-all` (#935)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pipx-1.2.0/PKG-INFO new/pipx-1.2.1/PKG-INFO
--- old/pipx-1.2.0/PKG-INFO     2020-02-02 01:00:00.000000000 +0100
+++ new/pipx-1.2.1/PKG-INFO     2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pipx
-Version: 1.2.0
+Version: 1.2.1
 Summary: Install and Run Python Applications in Isolated Environments
 Project-URL: Documentation, https://pypa.github.io/pipx/
 Project-URL: Source Code, https://github.com/pypa/pipx
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pipx-1.2.0/src/pipx/package_specifier.py 
new/pipx-1.2.1/src/pipx/package_specifier.py
--- old/pipx-1.2.0/src/pipx/package_specifier.py        2020-02-02 
01:00:00.000000000 +0100
+++ new/pipx-1.2.1/src/pipx/package_specifier.py        2020-02-02 
01:00:00.000000000 +0100
@@ -8,6 +8,7 @@
 
 import logging
 import re
+import urllib.parse
 from pathlib import Path
 from typing import List, NamedTuple, Optional, Set, Tuple
 
@@ -73,24 +74,17 @@
         else:
             raise PipxError(f"{package_path} does not exist")
 
-    # packaging currently (2020-07-19) only does basic syntax checks on URL.
-    #   Some examples of what it will not catch:
-    #       - invalid RCS string (e.g. "gat+https://...";)
-    #       - non-existent scheme (e.g. "zzzzz://...")
+    # If this looks like a URL, treat it as such.
     if not valid_pep508:
-        try:
-            package_req = Requirement("notapackagename @ " + package_spec)
-        except InvalidRequirement:
-            # not a valid url
-            pass
-        else:
+        parsed_url = urllib.parse.urlsplit(package_spec)
+        if parsed_url.scheme and parsed_url.netloc:
             valid_url = package_spec
 
+    # Treat the input as a local path if it does not look like a PEP 508
+    # specifier nor a URL. In this case we want to split out the extra part.
     if not valid_pep508 and not valid_url:
         (package_path_str, package_extras_str) = 
_split_path_extras(package_spec)
-
         (package_path, package_path_exists) = 
_check_package_path(package_path_str)
-
         if package_path_exists:
             valid_local_path = str(package_path.resolve()) + package_extras_str
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pipx-1.2.0/src/pipx/version.py 
new/pipx-1.2.1/src/pipx/version.py
--- old/pipx-1.2.0/src/pipx/version.py  2020-02-02 01:00:00.000000000 +0100
+++ new/pipx-1.2.1/src/pipx/version.py  2020-02-02 01:00:00.000000000 +0100
@@ -1,2 +1,2 @@
-__version_info__ = (1, 2, 0)
+__version_info__ = (1, 2, 1)
 __version__ = ".".join(str(i) for i in __version_info__)

Reply via email to