Hello community,

here is the log from the commit of package python-semver for openSUSE:Factory 
checked in at 2017-11-17 10:54:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-semver (Old)
 and      /work/SRC/openSUSE:Factory/.python-semver.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-semver"

Fri Nov 17 10:54:42 2017 rev:3 rq:541981 version:2.7.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-semver/python-semver.changes      
2017-10-13 14:16:27.803237343 +0200
+++ /work/SRC/openSUSE:Factory/.python-semver.new/python-semver.changes 
2017-11-17 10:59:37.381558920 +0100
@@ -1,0 +2,6 @@
+Tue Nov 14 16:43:50 UTC 2017 - [email protected]
+
+- update to version 2.7.9:
+  * Issue #65 (PR #66). Add finalize_version function
+
+-------------------------------------------------------------------

Old:
----
  semver-2.7.8.tar.gz

New:
----
  semver-2.7.9.tar.gz

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

Other differences:
------------------
++++++ python-semver.spec ++++++
--- /var/tmp/diff_new_pack.jfdDjV/_old  2017-11-17 10:59:38.037534912 +0100
+++ /var/tmp/diff_new_pack.jfdDjV/_new  2017-11-17 10:59:38.037534912 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %bcond_without test
 Name:           python-semver
-Version:        2.7.8
+Version:        2.7.9
 Release:        0
 Summary:        Python helper for Semantic Versioning
 License:        BSD-3-Clause

++++++ semver-2.7.8.tar.gz -> semver-2.7.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/semver-2.7.8/PKG-INFO new/semver-2.7.9/PKG-INFO
--- old/semver-2.7.8/PKG-INFO   2017-08-25 09:05:25.000000000 +0200
+++ new/semver-2.7.9/PKG-INFO   2017-09-23 19:13:21.000000000 +0200
@@ -1,12 +1,13 @@
 Metadata-Version: 1.1
 Name: semver
-Version: 2.7.8
+Version: 2.7.9
 Summary: Python helper for Semantic Versioning (http://semver.org/)
 Home-page: https://github.com/k-bx/python-semver
 Author: Kostiantyn Rybnikov
 Author-email: [email protected]
 License: BSD
 Download-URL: https://github.com/k-bx/python-semver/downloads
+Description-Content-Type: UNKNOWN
 Description: Semver |latest-version|
         =======================
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/semver-2.7.8/semver.egg-info/PKG-INFO 
new/semver-2.7.9/semver.egg-info/PKG-INFO
--- old/semver-2.7.8/semver.egg-info/PKG-INFO   2017-08-25 09:05:24.000000000 
+0200
+++ new/semver-2.7.9/semver.egg-info/PKG-INFO   2017-09-23 19:13:21.000000000 
+0200
@@ -1,12 +1,13 @@
 Metadata-Version: 1.1
 Name: semver
-Version: 2.7.8
+Version: 2.7.9
 Summary: Python helper for Semantic Versioning (http://semver.org/)
 Home-page: https://github.com/k-bx/python-semver
 Author: Kostiantyn Rybnikov
 Author-email: [email protected]
 License: BSD
 Download-URL: https://github.com/k-bx/python-semver/downloads
+Description-Content-Type: UNKNOWN
 Description: Semver |latest-version|
         =======================
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/semver-2.7.8/semver.py new/semver-2.7.9/semver.py
--- old/semver-2.7.8/semver.py  2017-08-25 09:04:45.000000000 +0200
+++ new/semver-2.7.9/semver.py  2017-09-23 19:09:47.000000000 +0200
@@ -6,7 +6,7 @@
 import re
 
 
-__version__ = '2.7.8'
+__version__ = '2.7.9'
 __author__ = 'Kostiantyn Rybnikov'
 __author_email__ = '[email protected]'
 
@@ -358,3 +358,14 @@
     )
     return format_version(verinfo['major'], verinfo['minor'], verinfo['patch'],
                           verinfo['prerelease'], verinfo['build'])
+
+
+def finalize_version(version):
+    """Remove any prerelease and build metadata from the version
+
+    :param version: version string
+    :return: the finalized version string
+    :rtype: str
+    """
+    verinfo = parse(version)
+    return format_version(verinfo['major'], verinfo['minor'], verinfo['patch'])


Reply via email to