From 54ccfc8a9fbeec43117063cb55dd1164508fcbb2 Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Fri, 4 Mar 2016 10:58:50 -0800 Subject: [PATCH] 1.0 - Update 'Development Status' trove classifier to 'Production/Stable' - Update README.md to include a link to the MSDN reference page for GetTickCount. - Alphabetize imports. --- README.md | 11 ++++++----- monotonic.py | 20 ++++++++++---------- setup.py | 20 ++++++++++---------- 3 files changed, 26 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index a0c5d06..db4840d 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,9 @@ On Python 3.3 or newer, ``monotonic`` will be an alias of it will fall back to an equivalent implementation: OS | Implementation --------------|------------------------- +-------------|----------------------------------------- Linux, *BSD | [clock_gettime][1] - Windows | [GetTickCount[64]][2] + Windows | [GetTickCount][2] or [GetTickCount64][3] OS X | [mach_absolute_time][3] If no suitable implementation exists for the current platform, @@ -23,7 +23,7 @@ monotonic is available via the Python Cheese Shop (PyPI): License ------- -Copyright 2014-2016 Ori Livneh +Copyright 2014, 2015, 2016 Ori Livneh Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -39,5 +39,6 @@ limitations under the License. [0]: https://docs.python.org/3/library/time.html#time.monotonic [1]: http://linux.die.net/man/3/clock_gettime -[2]: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724411 -[3]: https://developer.apple.com/library/mac/qa/qa1398/ +[2]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724408 +[3]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724411 +[4]: https://developer.apple.com/library/mac/qa/qa1398/ diff --git a/monotonic.py b/monotonic.py index a3552c0..559e3b1 100644 --- a/monotonic.py +++ b/monotonic.py @@ -10,20 +10,20 @@ ``time.monotonic`` from the standard library. On older versions, it will fall back to an equivalent implementation: - +-------------+--------------------+ - | Linux, BSD | clock_gettime(3) | - +-------------+--------------------+ - | Windows | GetTickCount[64] | - +-------------+--------------------+ - | OS X | mach_absolute_time | - +-------------+--------------------+ + +-------------+----------------------------------------+ + | Linux, BSD | ``clock_gettime(3)`` | + +-------------+----------------------------------------+ + | Windows | ``GetTickCount`` or ``GetTickCount64`` | + +-------------+----------------------------------------+ + | OS X | ``mach_absolute_time`` | + +-------------+----------------------------------------+ If no suitable implementation exists for the current platform, attempting to import this module (or to import from it) will - cause a RuntimeError exception to be raised. + cause a ``RuntimeError`` exception to be raised. - Copyright 2014 Ori Livneh + Copyright 2014, 2015, 2016 Ori Livneh Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -42,8 +42,8 @@ import ctypes import ctypes.util import os import sys -import time import threading +import time __all__ = ('monotonic',) diff --git a/setup.py b/setup.py index 2f97dc9..5e76e19 100644 --- a/setup.py +++ b/setup.py @@ -10,17 +10,17 @@ On Python 3.3 or newer, ``monotonic`` will be an alias of ``time.monotonic`` from the standard library. On older versions, it will fall back to an equivalent implementation: -+-------------+--------------------+ -| Linux, BSD | clock_gettime(3) | -+-------------+--------------------+ -| Windows | GetTickCount[64] | -+-------------+--------------------+ -| OS X | mach_absolute_time | -+-------------+--------------------+ ++-------------+----------------------------------------+ +| Linux, BSD | ``clock_gettime(3)`` | ++-------------+----------------------------------------+ +| Windows | ``GetTickCount`` or ``GetTickCount64`` | ++-------------+----------------------------------------+ +| OS X | ``mach_absolute_time`` | ++-------------+----------------------------------------+ If no suitable implementation exists for the current platform, attempting to import this module (or to import from it) will -cause a RuntimeError exception to be raised. +cause a ``RuntimeError`` exception to be raised. """ try: @@ -31,7 +31,7 @@ except ImportError: setup( name='monotonic', - version='0.6', + version='1.0', license='Apache', author='Ori Livneh', author_email='ori@wikimedia.org', @@ -39,7 +39,7 @@ setup( description='An implementation of time.monotonic() for Python 2 & < 3.3', long_description=__doc__, classifiers=( - 'Development Status :: 4 - Beta', + 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3',