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.
This commit is contained in:
parent
8a1da0687e
commit
54ccfc8a9f
11
README.md
11
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:
|
it will fall back to an equivalent implementation:
|
||||||
|
|
||||||
OS | Implementation
|
OS | Implementation
|
||||||
-------------|-------------------------
|
-------------|-----------------------------------------
|
||||||
Linux, *BSD | [clock_gettime][1]
|
Linux, *BSD | [clock_gettime][1]
|
||||||
Windows | [GetTickCount[64]][2]
|
Windows | [GetTickCount][2] or [GetTickCount64][3]
|
||||||
OS X | [mach_absolute_time][3]
|
OS X | [mach_absolute_time][3]
|
||||||
|
|
||||||
If no suitable implementation exists for the current platform,
|
If no suitable implementation exists for the current platform,
|
||||||
|
@ -23,7 +23,7 @@ monotonic is available via the Python Cheese Shop (PyPI):
|
||||||
|
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
Copyright 2014-2016 Ori Livneh <ori@wikimedia.org>
|
Copyright 2014, 2015, 2016 Ori Livneh <ori@wikimedia.org>
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with 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
|
[0]: https://docs.python.org/3/library/time.html#time.monotonic
|
||||||
[1]: http://linux.die.net/man/3/clock_gettime
|
[1]: http://linux.die.net/man/3/clock_gettime
|
||||||
[2]: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724411
|
[2]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724408
|
||||||
[3]: https://developer.apple.com/library/mac/qa/qa1398/
|
[3]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724411
|
||||||
|
[4]: https://developer.apple.com/library/mac/qa/qa1398/
|
||||||
|
|
20
monotonic.py
20
monotonic.py
|
@ -10,20 +10,20 @@
|
||||||
``time.monotonic`` from the standard library. On older versions,
|
``time.monotonic`` from the standard library. On older versions,
|
||||||
it will fall back to an equivalent implementation:
|
it will fall back to an equivalent implementation:
|
||||||
|
|
||||||
+-------------+--------------------+
|
+-------------+----------------------------------------+
|
||||||
| Linux, BSD | clock_gettime(3) |
|
| Linux, BSD | ``clock_gettime(3)`` |
|
||||||
+-------------+--------------------+
|
+-------------+----------------------------------------+
|
||||||
| Windows | GetTickCount[64] |
|
| Windows | ``GetTickCount`` or ``GetTickCount64`` |
|
||||||
+-------------+--------------------+
|
+-------------+----------------------------------------+
|
||||||
| OS X | mach_absolute_time |
|
| OS X | ``mach_absolute_time`` |
|
||||||
+-------------+--------------------+
|
+-------------+----------------------------------------+
|
||||||
|
|
||||||
If no suitable implementation exists for the current platform,
|
If no suitable implementation exists for the current platform,
|
||||||
attempting to import this module (or to import from it) will
|
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 <ori@wikimedia.org>
|
Copyright 2014, 2015, 2016 Ori Livneh <ori@wikimedia.org>
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -42,8 +42,8 @@ import ctypes
|
||||||
import ctypes.util
|
import ctypes.util
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
|
||||||
import threading
|
import threading
|
||||||
|
import time
|
||||||
|
|
||||||
|
|
||||||
__all__ = ('monotonic',)
|
__all__ = ('monotonic',)
|
||||||
|
|
20
setup.py
20
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,
|
``time.monotonic`` from the standard library. On older versions,
|
||||||
it will fall back to an equivalent implementation:
|
it will fall back to an equivalent implementation:
|
||||||
|
|
||||||
+-------------+--------------------+
|
+-------------+----------------------------------------+
|
||||||
| Linux, BSD | clock_gettime(3) |
|
| Linux, BSD | ``clock_gettime(3)`` |
|
||||||
+-------------+--------------------+
|
+-------------+----------------------------------------+
|
||||||
| Windows | GetTickCount[64] |
|
| Windows | ``GetTickCount`` or ``GetTickCount64`` |
|
||||||
+-------------+--------------------+
|
+-------------+----------------------------------------+
|
||||||
| OS X | mach_absolute_time |
|
| OS X | ``mach_absolute_time`` |
|
||||||
+-------------+--------------------+
|
+-------------+----------------------------------------+
|
||||||
|
|
||||||
If no suitable implementation exists for the current platform,
|
If no suitable implementation exists for the current platform,
|
||||||
attempting to import this module (or to import from it) will
|
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:
|
try:
|
||||||
|
@ -31,7 +31,7 @@ except ImportError:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='monotonic',
|
name='monotonic',
|
||||||
version='0.6',
|
version='1.0',
|
||||||
license='Apache',
|
license='Apache',
|
||||||
author='Ori Livneh',
|
author='Ori Livneh',
|
||||||
author_email='ori@wikimedia.org',
|
author_email='ori@wikimedia.org',
|
||||||
|
@ -39,7 +39,7 @@ setup(
|
||||||
description='An implementation of time.monotonic() for Python 2 & < 3.3',
|
description='An implementation of time.monotonic() for Python 2 & < 3.3',
|
||||||
long_description=__doc__,
|
long_description=__doc__,
|
||||||
classifiers=(
|
classifiers=(
|
||||||
'Development Status :: 4 - Beta',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'License :: OSI Approved :: Apache Software License',
|
'License :: OSI Approved :: Apache Software License',
|
||||||
'Programming Language :: Python :: 2',
|
'Programming Language :: Python :: 2',
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
|
|
Loading…
Reference in New Issue