New Upstream Snapshot - python-monotonic

Ready changes

Summary

Merged new upstream version: 1.6 (was: 1.5).

Resulting package

Built on 2022-11-14T14:06 (took 4m36s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots python3-monotonic

Lintian Result

Diff

diff --git a/README.md b/README.md
index 20de9ca..1fa8565 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,10 @@
 monotonic
 =========
+NOTE: **This library is considered stable and complete, and will not receive
+any further updates. Python versions 3.3 and newer include
+[``time.monotonic()``][0] in the standard library.**
+
+
 This module provides a ``monotonic()`` function which returns the
 value (in fractional seconds) of a clock which never goes backwards.
 It is compatible with Python 2 and Python 3.
diff --git a/debian/changelog b/debian/changelog
index 73a69c4..adf4bbf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,13 @@
-python-monotonic (1.5-4) UNRELEASED; urgency=medium
+python-monotonic (1.6-1) UNRELEASED; urgency=medium
 
+  [ Ondřej Nový ]
   * Use debhelper-compat instead of debian/compat.
   * Bump Standards-Version to 4.4.1.
 
- -- Ondřej Nový <onovy@debian.org>  Thu, 18 Jul 2019 18:25:29 +0200
+  [ Debian Janitor ]
+  * New upstream release.
+
+ -- Ondřej Nový <onovy@debian.org>  Mon, 14 Nov 2022 14:03:27 -0000
 
 python-monotonic (1.5-3) unstable; urgency=medium
 
diff --git a/monotonic.py b/monotonic.py
index 4ad147b..c4372a3 100644
--- a/monotonic.py
+++ b/monotonic.py
@@ -68,11 +68,12 @@ except AttributeError:
 
             timebase = mach_timebase_info_data_t()
             libc.mach_timebase_info(ctypes.byref(timebase))
-            ticks_per_second = timebase.numer / timebase.denom * 1.0e9
+            nanoseconds_in_second = 1.0e9
 
             def monotonic():
                 """Monotonic clock, cannot go backward."""
-                return mach_absolute_time() / ticks_per_second
+                nanoseconds = mach_absolute_time() * timebase.numer / timebase.denom
+                return nanoseconds / nanoseconds_in_second
 
         elif sys.platform.startswith('win32') or sys.platform.startswith('cygwin'):
             if sys.platform.startswith('cygwin'):
diff --git a/setup.py b/setup.py
index 9ee780c..cd0729d 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,7 @@ except ImportError:
 
 setup(
     name='monotonic',
-    version='1.5',
+    version='1.6',
     license='Apache',
     author='Ori Livneh',
     author_email='ori@wikimedia.org',

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in second set of .debs but not in first

-rw-r--r--  root/root   /usr/lib/python3/dist-packages/monotonic-1.6.egg-info/PKG-INFO
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/monotonic-1.6.egg-info/dependency_links.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/monotonic-1.6.egg-info/top_level.txt

Files in first set of .debs but not in second

-rw-r--r--  root/root   /usr/lib/python3/dist-packages/monotonic-1.5.egg-info/PKG-INFO
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/monotonic-1.5.egg-info/dependency_links.txt
-rw-r--r--  root/root   /usr/lib/python3/dist-packages/monotonic-1.5.egg-info/top_level.txt

No differences were encountered in the control files

More details

Full run details