Hello community,
here is the log from the commit of package python-monotonic for openSUSE:Factory checked in at 2016-03-02 14:21:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-monotonic (Old)
and /work/SRC/openSUSE:Factory/.python-monotonic.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-monotonic"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-monotonic/python-monotonic.changes 2015-09-02 00:35:34.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-monotonic.new/python-monotonic.changes 2016-03-02 14:21:32.000000000 +0100
@@ -1,0 +2,7 @@
+Mon Feb 15 14:09:38 UTC 2016 - dmueller@suse.com
+
+- update to 0.6:
+ * Changed AttributeError flow control to getattr-with-default-argument
+ * Added support for pre-Vista Windows versions using GetTickCount
+
+-------------------------------------------------------------------
Old:
----
monotonic-0.3.tar.gz
New:
----
monotonic-0.6.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-monotonic.spec ++++++
--- /var/tmp/diff_new_pack.6j1PbR/_old 2016-03-02 14:21:33.000000000 +0100
+++ /var/tmp/diff_new_pack.6j1PbR/_new 2016-03-02 14:21:33.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-monotonic
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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-monotonic
-Version: 0.3
+Version: 0.6
Release: 0
Summary: An implementation of time.monotonic() for Python 2 & < 33
License: Apache-2.0
++++++ monotonic-0.3.tar.gz -> monotonic-0.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monotonic-0.3/PKG-INFO new/monotonic-0.6/PKG-INFO
--- old/monotonic-0.3/PKG-INFO 2015-07-29 19:01:32.000000000 +0200
+++ new/monotonic-0.6/PKG-INFO 2016-01-24 12:50:03.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: monotonic
-Version: 0.3
+Version: 0.6
Summary: An implementation of time.monotonic() for Python 2 & < 3.3
Home-page: https://github.com/atdt/monotonic
Author: Ori Livneh
@@ -20,7 +20,7 @@
+-------------+--------------------+
| Linux, BSD | clock_gettime(3) |
+-------------+--------------------+
- | Windows | GetTickCount64 |
+ | Windows | GetTickCount[64] |
+-------------+--------------------+
| OS X | mach_absolute_time |
+-------------+--------------------+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monotonic-0.3/monotonic.egg-info/PKG-INFO new/monotonic-0.6/monotonic.egg-info/PKG-INFO
--- old/monotonic-0.3/monotonic.egg-info/PKG-INFO 2015-07-29 19:01:32.000000000 +0200
+++ new/monotonic-0.6/monotonic.egg-info/PKG-INFO 2016-01-24 12:50:03.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: monotonic
-Version: 0.3
+Version: 0.6
Summary: An implementation of time.monotonic() for Python 2 & < 3.3
Home-page: https://github.com/atdt/monotonic
Author: Ori Livneh
@@ -20,7 +20,7 @@
+-------------+--------------------+
| Linux, BSD | clock_gettime(3) |
+-------------+--------------------+
- | Windows | GetTickCount64 |
+ | Windows | GetTickCount[64] |
+-------------+--------------------+
| OS X | mach_absolute_time |
+-------------+--------------------+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monotonic-0.3/monotonic.egg-info/pbr.json new/monotonic-0.6/monotonic.egg-info/pbr.json
--- old/monotonic-0.3/monotonic.egg-info/pbr.json 2015-07-29 19:01:32.000000000 +0200
+++ new/monotonic-0.6/monotonic.egg-info/pbr.json 2016-01-24 12:50:03.000000000 +0100
@@ -1 +1 @@
-{"is_release": false, "git_version": "cb3c90150f"}
\ No newline at end of file
+{"is_release": true, "git_version": "945f255545"}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monotonic-0.3/monotonic.py new/monotonic-0.6/monotonic.py
--- old/monotonic-0.3/monotonic.py 2015-07-29 18:58:47.000000000 +0200
+++ new/monotonic-0.6/monotonic.py 2016-01-24 12:47:27.000000000 +0100
@@ -13,7 +13,7 @@
+-------------+--------------------+
| Linux, BSD | clock_gettime(3) |
+-------------+--------------------+
- | Windows | GetTickCount64 |
+ | Windows | GetTickCount[64] |
+-------------+--------------------+
| OS X | mach_absolute_time |
+-------------+--------------------+
@@ -41,27 +41,14 @@
import ctypes
import ctypes.util
import os
-import platform
-import re
import sys
import time
+import threading
__all__ = ('monotonic',)
-def get_os_release():
- """Get the leading numeric component of the OS release."""
- return re.match('[\d.]+', platform.release()).group(0)
-
-
-def compare_versions(v1, v2):
- """Compare two version strings."""
- def normalize(v):
- return map(int, re.sub(r'(\.0+)*$', '', v).split('.'))
- return cmp(normalize(v1), normalize(v2))
-
-
try:
monotonic = time.monotonic
except AttributeError:
@@ -69,7 +56,7 @@
if sys.platform == 'darwin': # OS X, iOS
# See Technical Q&A QA1398 of the Mac Developer Library:
# https://developer.apple.com/library/mac/qa/qa1398/
- libc = ctypes.CDLL('libc.dylib', use_errno=True)
+ libc = ctypes.CDLL('/usr/lib/libc.dylib', use_errno=True)
class mach_timebase_info_data_t(ctypes.Structure):
"""System timebase info. Defined in