Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-findpython for 
openSUSE:Factory checked in at 2023-01-20 17:39:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-findpython (Old)
 and      /work/SRC/openSUSE:Factory/.python-findpython.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-findpython"

Fri Jan 20 17:39:45 2023 rev:4 rq:1059956 version:0.2.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-findpython/python-findpython.changes      
2022-11-08 12:52:37.254876046 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-findpython.new.32243/python-findpython.changes
   2023-01-20 17:40:00.872964047 +0100
@@ -1,0 +2,6 @@
+Fri Jan 20 12:13:56 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 0.2.3:
+  * Strip the local part in python version Fix #12
+
+-------------------------------------------------------------------

Old:
----
  findpython-0.2.2.tar.gz

New:
----
  findpython-0.2.3.tar.gz

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

Other differences:
------------------
++++++ python-findpython.spec ++++++
--- /var/tmp/diff_new_pack.xjVRlS/_old  2023-01-20 17:40:02.528973206 +0100
+++ /var/tmp/diff_new_pack.xjVRlS/_new  2023-01-20 17:40:02.532973228 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-findpython
 #
-# 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
@@ -17,7 +17,7 @@
 
 
 Name:           python-findpython
-Version:        0.2.2
+Version:        0.2.3
 Release:        0
 Summary:        Utility to find python versions on your system
 License:        MIT

++++++ findpython-0.2.2.tar.gz -> findpython-0.2.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/findpython-0.2.2/PKG-INFO 
new/findpython-0.2.3/PKG-INFO
--- old/findpython-0.2.2/PKG-INFO       2022-10-30 03:02:20.815515300 +0100
+++ new/findpython-0.2.3/PKG-INFO       2023-01-18 09:43:57.604261600 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: findpython
-Version: 0.2.2
+Version: 0.2.3
 Summary: A utility to find python versions on your system
 License: MIT
 Author-email: Frost Ming <miangh...@gmail.com>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/findpython-0.2.2/pyproject.toml 
new/findpython-0.2.3/pyproject.toml
--- old/findpython-0.2.2/pyproject.toml 2022-10-30 03:02:02.478616500 +0100
+++ new/findpython-0.2.3/pyproject.toml 2023-01-18 09:43:43.168459200 +0100
@@ -17,7 +17,7 @@
     "Programming Language :: Python :: 3.9",
     "Programming Language :: Python :: 3.10",
 ]
-version = "0.2.2"
+version = "0.2.3"
 
 [project.license]
 text = "MIT"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/findpython-0.2.2/src/findpython/python.py 
new/findpython-0.2.3/src/findpython/python.py
--- old/findpython-0.2.2/src/findpython/python.py       2022-10-30 
03:02:02.482617900 +0100
+++ new/findpython-0.2.3/src/findpython/python.py       2023-01-18 
09:43:43.168459200 +0100
@@ -6,7 +6,7 @@
 from functools import lru_cache
 from pathlib import Path
 
-from packaging.version import Version, InvalidVersion
+from packaging.version import InvalidVersion, Version
 
 from findpython.utils import get_binary_hash
 
@@ -162,6 +162,10 @@
         """Get the version of the python."""
         script = "import platform; print(platform.python_version())"
         version = self._run_script(script, timeout=GET_VERSION_TIMEOUT).strip()
+        # Dev builds may produce version like `3.11.0+` and packaging.version
+        # will reject it. Here we just remove the part after `+`
+        # since it isn't critical for version comparison.
+        version = version.split("+")[0]
         return Version(version)
 
     def _get_architecture(self) -> str:

Reply via email to