Hello community, here is the log from the commit of package python-monotonic for openSUSE:Factory checked in at 2017-04-13 10:45:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-monotonic (Old) and /work/SRC/openSUSE:Factory/.python-monotonic.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-monotonic" Thu Apr 13 10:45:07 2017 rev:4 rq:482301 version:1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-monotonic/python-monotonic.changes 2016-03-02 14:21:32.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-monotonic.new/python-monotonic.changes 2017-04-13 10:45:08.620802768 +0200 @@ -1,0 +2,11 @@ +Thu Mar 23 15:24:45 UTC 2017 - [email protected] + +- Convert to singlespec build +- Update to version 1.3 + +------------------------------------------------------------------- +Tue Nov 15 10:57:09 UTC 2016 - [email protected] + +- update to 1.2 + +------------------------------------------------------------------- Old: ---- monotonic-0.6.tar.gz New: ---- monotonic-1.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-monotonic.spec ++++++ --- /var/tmp/diff_new_pack.KkGGRm/_old 2017-04-13 10:45:09.164725848 +0200 +++ /var/tmp/diff_new_pack.KkGGRm/_new 2017-04-13 10:45:09.164725848 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-monotonic # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -16,22 +16,24 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-monotonic -Version: 0.6 +Version: 1.3 Release: 0 Summary: An implementation of time.monotonic() for Python 2 & < 33 License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/atdt/monotonic -Source: https://pypi.python.org/packages/source/m/monotonic/monotonic-%{version}.tar.gz -BuildRequires: python-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +Source: https://pypi.io/packages/source/m/monotonic/monotonic-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +%if 0%{?suse_version} > 1110 BuildArch: noarch %endif +%python_subpackages + %description This module provides a ``monotonic()`` function which returns the value (in fractional seconds) of a clock which never goes backwards. @@ -40,12 +42,12 @@ %setup -q -n monotonic-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE %{python_sitelib}/* ++++++ monotonic-0.6.tar.gz -> monotonic-1.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monotonic-0.6/PKG-INFO new/monotonic-1.3/PKG-INFO --- old/monotonic-0.6/PKG-INFO 2016-01-24 12:50:03.000000000 +0100 +++ new/monotonic-1.3/PKG-INFO 2017-03-14 16:52:13.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: monotonic -Version: 0.6 +Version: 1.3 Summary: An implementation of time.monotonic() for Python 2 & < 3.3 Home-page: https://github.com/atdt/monotonic Author: Ori Livneh @@ -17,21 +17,21 @@ ``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, AIX | ``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. Platform: UNKNOWN -Classifier: Development Status :: 4 - Beta +Classifier: Development Status :: 5 - Production/Stable Classifier: License :: OSI Approved :: Apache Software License Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monotonic-0.6/monotonic.egg-info/PKG-INFO new/monotonic-1.3/monotonic.egg-info/PKG-INFO --- old/monotonic-0.6/monotonic.egg-info/PKG-INFO 2016-01-24 12:50:03.000000000 +0100 +++ new/monotonic-1.3/monotonic.egg-info/PKG-INFO 2017-03-14 16:52:13.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: monotonic -Version: 0.6 +Version: 1.3 Summary: An implementation of time.monotonic() for Python 2 & < 3.3 Home-page: https://github.com/atdt/monotonic Author: Ori Livneh @@ -17,21 +17,21 @@ ``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, AIX | ``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. Platform: UNKNOWN -Classifier: Development Status :: 4 - Beta +Classifier: Development Status :: 5 - Production/Stable Classifier: License :: OSI Approved :: Apache Software License Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monotonic-0.6/monotonic.egg-info/SOURCES.txt new/monotonic-1.3/monotonic.egg-info/SOURCES.txt --- old/monotonic-0.6/monotonic.egg-info/SOURCES.txt 2016-01-24 12:50:03.000000000 +0100 +++ new/monotonic-1.3/monotonic.egg-info/SOURCES.txt 2017-03-14 16:52:13.000000000 +0100 @@ -1,6 +1,7 @@ LICENSE MANIFEST.in monotonic.py +setup.cfg setup.py monotonic.egg-info/PKG-INFO monotonic.egg-info/SOURCES.txt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monotonic-0.6/monotonic.egg-info/pbr.json new/monotonic-1.3/monotonic.egg-info/pbr.json --- old/monotonic-0.6/monotonic.egg-info/pbr.json 2016-01-24 12:50:03.000000000 +0100 +++ new/monotonic-1.3/monotonic.egg-info/pbr.json 2016-08-03 18:49:28.000000000 +0200 @@ -1 +1 @@ -{"is_release": true, "git_version": "945f255545"} \ No newline at end of file +{"is_release": true, "git_version": "8447153178"} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monotonic-0.6/monotonic.py new/monotonic-1.3/monotonic.py --- old/monotonic-0.6/monotonic.py 2016-01-24 12:47:27.000000000 +0100 +++ new/monotonic-1.3/monotonic.py 2017-03-14 16:41:51.000000000 +0100 @@ -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 <[email protected]> + Copyright 2014, 2015, 2016 Ori Livneh <[email protected]> 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.util import os import sys -import time import threading +import time __all__ = ('monotonic',) @@ -89,7 +89,10 @@ # 2. libffi masks the problem because after making the call it doesn't # touch anything through esp and epilogue code restores a correct # esp from ebp afterwards. - kernel32 = ctypes.cdll.kernel32 + try: + kernel32 = ctypes.cdll.kernel32 + except OSError: # 'No such file or directory' + kernel32 = ctypes.cdll.LoadLibrary('kernel32.dll') else: kernel32 = ctypes.windll.kernel32 @@ -147,6 +150,8 @@ CLOCK_MONOTONIC = 4 elif 'bsd' in sys.platform: CLOCK_MONOTONIC = 3 + elif sys.platform.startswith('aix'): + CLOCK_MONOTONIC = ctypes.c_longlong(10) def monotonic(): """Monotonic clock, cannot go backward.""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monotonic-0.6/setup.cfg new/monotonic-1.3/setup.cfg --- old/monotonic-0.6/setup.cfg 2016-01-24 12:50:03.000000000 +0100 +++ new/monotonic-1.3/setup.cfg 2017-03-14 16:52:13.000000000 +0100 @@ -1,3 +1,9 @@ +[bdist_wheel] +universal = 1 + +[metadata] +description-file = README.md + [egg_info] tag_build = tag_date = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/monotonic-0.6/setup.py new/monotonic-1.3/setup.py --- old/monotonic-0.6/setup.py 2016-01-24 12:48:11.000000000 +0100 +++ new/monotonic-1.3/setup.py 2017-03-14 16:46:01.000000000 +0100 @@ -10,17 +10,17 @@ ``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, AIX | ``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,19 +31,19 @@ setup( name='monotonic', - version='0.6', + version='1.3', license='Apache', author='Ori Livneh', author_email='[email protected]', url='https://github.com/atdt/monotonic', description='An implementation of time.monotonic() for Python 2 & < 3.3', long_description=__doc__, - classifiers=( - 'Development Status :: 4 - Beta', + classifiers=[ + 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Topic :: Software Development :: Libraries :: Python Modules', - ), + ], py_modules=('monotonic',), )
