Hello community, here is the log from the commit of package python-py for openSUSE:Factory checked in at 2017-11-21 15:27:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-py (Old) and /work/SRC/openSUSE:Factory/.python-py.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-py" Tue Nov 21 15:27:58 2017 rev:27 rq:542942 version:1.5.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-py/python-py-doc.changes 2017-11-19 11:05:54.243391945 +0100 +++ /work/SRC/openSUSE:Factory/.python-py.new/python-py-doc.changes 2017-11-21 15:28:11.570298081 +0100 @@ -1,0 +2,14 @@ +Sun Nov 19 05:51:49 UTC 2017 - [email protected] + +- specfile: + * updated url + +- update to version 1.5.2: + * fix #169, #170: error importing py.log on Windows: no module named + "syslog". + +- changes from version 1.5.1: + * fix #167 - prevent pip from installing py in unsupported Python + versions. + +------------------------------------------------------------------- python-py.changes: same change Old: ---- py-1.5.0.tar.gz New: ---- py-1.5.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-py-doc.spec ++++++ --- /var/tmp/diff_new_pack.fnCcb9/_old 2017-11-21 15:28:17.182094690 +0100 +++ /var/tmp/diff_new_pack.fnCcb9/_new 2017-11-21 15:28:17.186094545 +0100 @@ -18,12 +18,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-py-doc -Version: 1.5.0 +Version: 1.5.2 Release: 0 Summary: Library with cross-python path, ini-parsing, io, code, log facilities License: MIT Group: Development/Languages/Python -Url: http://pylib.org +Url: https://py.readthedocs.io/en/latest/ Source: https://files.pythonhosted.org/packages/source/p/py/py-%{version}.tar.gz # Documentation requirements: BuildRequires: dos2unix ++++++ python-py.spec ++++++ --- /var/tmp/diff_new_pack.fnCcb9/_old 2017-11-21 15:28:17.206093820 +0100 +++ /var/tmp/diff_new_pack.fnCcb9/_new 2017-11-21 15:28:17.206093820 +0100 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-py -Version: 1.5.0 +Version: 1.5.2 Release: 0 Summary: Library with cross-python path, ini-parsing, io, code, log facilities License: MIT ++++++ py-1.5.0.tar.gz -> py-1.5.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py-1.5.0/CHANGELOG new/py-1.5.2/CHANGELOG --- old/py-1.5.0/CHANGELOG 2017-11-14 23:02:21.000000000 +0100 +++ new/py-1.5.2/CHANGELOG 2017-11-16 00:45:42.000000000 +0100 @@ -1,3 +1,13 @@ +1.5.2 +===== + +- fix #169, #170: error importing py.log on Windows: no module named ``syslog``. + +1.5.1 +===== + +- fix #167 - prevent pip from installing py in unsupported Python versions. + 1.5.0 ===== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py-1.5.0/PKG-INFO new/py-1.5.2/PKG-INFO --- old/py-1.5.0/PKG-INFO 2017-11-14 23:02:24.000000000 +0100 +++ new/py-1.5.2/PKG-INFO 2017-11-16 00:46:09.000000000 +0100 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: py -Version: 1.5.0 +Version: 1.5.2 Summary: library with cross-python path, ini-parsing, io, code, log facilities Home-page: http://py.readthedocs.io/ Author: holger krekel, Ronny Pfannschmidt, Benjamin Peterson and others @@ -65,3 +65,4 @@ Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy +Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py-1.5.0/py/__init__.py new/py-1.5.2/py/__init__.py --- old/py-1.5.0/py/__init__.py 2017-11-14 23:02:21.000000000 +0100 +++ new/py-1.5.2/py/__init__.py 2017-11-16 00:45:42.000000000 +0100 @@ -8,7 +8,7 @@ (c) Holger Krekel and others, 2004-2014 """ -__version__ = '1.5.0' +__version__ = '1.5.2' try: from py._vendored_packages import apipkg diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py-1.5.0/py/_log/log.py new/py-1.5.2/py/_log/log.py --- old/py-1.5.0/py/_log/log.py 2017-11-14 23:02:21.000000000 +0100 +++ new/py-1.5.2/py/_log/log.py 2017-11-16 00:45:42.000000000 +0100 @@ -16,7 +16,6 @@ """ import py import sys -import syslog class Message(object): @@ -190,11 +189,18 @@ def __call__(self, msg): """ write a message to the log """ + import syslog syslog.syslog(self.priority, str(msg)) -for _prio in "EMERG ALERT CRIT ERR WARNING NOTICE INFO DEBUG".split(): - _prio = "LOG_" + _prio - try: - setattr(Syslog, _prio, getattr(syslog, _prio)) - except AttributeError: - pass + +try: + import syslog +except ImportError: + pass +else: + for _prio in "EMERG ALERT CRIT ERR WARNING NOTICE INFO DEBUG".split(): + _prio = "LOG_" + _prio + try: + setattr(Syslog, _prio, getattr(syslog, _prio)) + except AttributeError: + pass diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py-1.5.0/py.egg-info/PKG-INFO new/py-1.5.2/py.egg-info/PKG-INFO --- old/py-1.5.0/py.egg-info/PKG-INFO 2017-11-14 23:02:24.000000000 +0100 +++ new/py-1.5.2/py.egg-info/PKG-INFO 2017-11-16 00:46:09.000000000 +0100 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: py -Version: 1.5.0 +Version: 1.5.2 Summary: library with cross-python path, ini-parsing, io, code, log facilities Home-page: http://py.readthedocs.io/ Author: holger krekel, Ronny Pfannschmidt, Benjamin Peterson and others @@ -65,3 +65,4 @@ Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy +Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py-1.5.0/setup.py new/py-1.5.2/setup.py --- old/py-1.5.0/setup.py 2017-11-14 23:02:21.000000000 +0100 +++ new/py-1.5.2/setup.py 2017-11-15 15:41:17.000000000 +0100 @@ -23,6 +23,7 @@ url='http://py.readthedocs.io/', license='MIT license', platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'], + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', author='holger krekel, Ronny Pfannschmidt, Benjamin Peterson and others', author_email='[email protected]', classifiers=['Development Status :: 6 - Mature', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py-1.5.0/testing/log/test_log.py new/py-1.5.2/testing/log/test_log.py --- old/py-1.5.0/testing/log/test_log.py 2017-11-14 23:02:21.000000000 +0100 +++ new/py-1.5.2/testing/log/test_log.py 2017-11-16 00:45:42.000000000 +0100 @@ -1,11 +1,9 @@ import py -import sys -import pytest +from py._log.log import default_keywordmapper callcapture = py.io.StdCapture.call -default_keywordmapper = pytest.importorskip('py._log.log.default_keywordmapper') def setup_module(mod): mod._oldstate = default_keywordmapper.getstate() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py-1.5.0/testing/root/test_py_imports.py new/py-1.5.2/testing/root/test_py_imports.py --- old/py-1.5.0/testing/root/test_py_imports.py 2017-11-14 23:02:21.000000000 +0100 +++ new/py-1.5.2/testing/root/test_py_imports.py 2017-11-16 00:45:42.000000000 +0100 @@ -4,8 +4,6 @@ @py.test.mark.parametrize('name', [x for x in dir(py) if x[0] != '_']) def test_dir(name): - if name == 'log' and sys.platform.startswith('win'): - py.test.skip('syslog is not available on Windows') obj = getattr(py, name) if hasattr(obj, '__map__'): # isinstance(obj, Module): keys = dir(obj) @@ -54,8 +52,6 @@ def check_import(modpath): - if modpath == 'py._log.log' and sys.platform.startswith('win'): - py.test.skip('syslog is not available on Windows') py.builtin.print_("checking import", modpath) assert __import__(modpath)
