commit python-sure for openSUSE:Factory

Hello community, here is the log from the commit of package python-sure for openSUSE:Factory checked in at 2018-08-31 10:46:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sure (Old) and /work/SRC/openSUSE:Factory/.python-sure.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-sure" Fri Aug 31 10:46:33 2018 rev:6 rq:632155 version:1.4.11 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sure/python-sure.changes 2018-02-05 10:48:42.360396939 +0100 +++ /work/SRC/openSUSE:Factory/.python-sure.new/python-sure.changes 2018-08-31 10:46:34.311356810 +0200 @@ -1,0 +2,6 @@ +Wed Aug 29 11:47:15 UTC 2018 - tchvatal@suse.com + +- Version update to 1.4.11: + * Reading the version dynamically was causing import errors that caused error when installing package. Refs #144 + +------------------------------------------------------------------- Old: ---- sure-1.4.7.tar.gz New: ---- sure-1.4.11.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sure.spec ++++++ --- /var/tmp/diff_new_pack.EYcYxS/_old 2018-08-31 10:46:35.019357674 +0200 +++ /var/tmp/diff_new_pack.EYcYxS/_new 2018-08-31 10:46:35.019357674 +0200 @@ -18,14 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-sure -Version: 1.4.7 +Version: 1.4.11 Release: 0 Summary: Utility belt for automated testing in python for python -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/Python -Url: https://github.com/requests/sure +URL: https://github.com/gabrielfalcao/sure Source: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module mock >= 2.0.0} BuildRequires: %{python_module nose} BuildRequires: %{python_module setuptools} @@ -56,7 +55,8 @@ %python_expand nosetests-%{$python_bin_suffix} %files %{python_files} -%doc COPYING README.rst +%license COPYING +%doc README.rst %{python_sitelib}/* %changelog ++++++ sure-1.4.7.tar.gz -> sure-1.4.11.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sure-1.4.7/PKG-INFO new/sure-1.4.11/PKG-INFO --- old/sure-1.4.7/PKG-INFO 2017-10-02 15:46:06.000000000 +0200 +++ new/sure-1.4.11/PKG-INFO 2018-05-16 23:40:44.000000000 +0200 @@ -1,10 +1,12 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: sure -Version: 1.4.7 +Version: 1.4.11 Summary: utility belt for automated testing in python for python Home-page: http://github.com/gabrielfalcao/sure -Author: Timo Furrer -Author-email: tuxtimo@gmail.com +Author: Gabriel Falcao +Author-email: gabriel@nacaolivre.org +Maintainer: Timo Furrer +Maintainer-email: tuxtimo@gmail.com License: UNKNOWN Description: sure ==== @@ -87,10 +89,10 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: Implementation Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sure-1.4.7/setup.py new/sure-1.4.11/setup.py --- old/sure-1.4.7/setup.py 2017-10-02 15:45:40.000000000 +0200 +++ new/sure-1.4.11/setup.py 2018-05-16 23:37:56.000000000 +0200 @@ -18,7 +18,6 @@ "utility belt for automated testing in python for python" -import ast import os import sys import codecs @@ -39,30 +38,6 @@ PROJECT_ROOT = os.path.dirname(__file__) -class VersionFinder(ast.NodeVisitor): - - def __init__(self): - self.version = None - - def visit_Assign(self, node): - try: - if node.targets[0].id == 'version': - self.version = node.value.s - except: - pass - - -def read_version(): - """Read version from sure/__init__.py without loading any files""" - finder = VersionFinder() - path = os.path.join(PROJECT_ROOT, 'sure', '__init__.py') - with codecs.open(path, 'r', encoding='utf-8') as fp: - file_data = fp.read().encode('utf-8') - finder.visit(ast.parse(file_data)) - - return finder.version - - def local_text_file(*f): path = os.path.join(PROJECT_ROOT, *f) with open(path, 'rt') as fp: @@ -89,7 +64,7 @@ if __name__ == '__main__': setup(name='sure', - version=read_version(), + version='1.4.11', description=__doc__, long_description=read_readme(), url='http://github.com/gabrielfalcao/sure', @@ -113,10 +88,10 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: Implementation', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sure-1.4.7/sure/__init__.py new/sure-1.4.11/sure/__init__.py --- old/sure-1.4.7/sure/__init__.py 2017-10-02 15:45:40.000000000 +0200 +++ new/sure-1.4.11/sure/__init__.py 2018-05-16 23:38:03.000000000 +0200 @@ -48,7 +48,7 @@ if not PY2: basestring = str -version = '1.4.7' +version = '1.4.11' not_here_error = \ @@ -381,7 +381,11 @@ def assertionmethod(func): @wraps(func) def wrapper(self, *args, **kw): - value = func(self, *args, **kw) + try: + value = func(self, *args, **kw) + except AssertionError as e: + raise AssertionError(e) + msg = "{0}({1}) failed".format( func.__name__, ", ".join(map(safe_repr, args)), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sure-1.4.7/sure/old.py new/sure-1.4.11/sure/old.py --- old/sure-1.4.7/sure/old.py 2017-10-02 15:45:40.000000000 +0200 +++ new/sure-1.4.11/sure/old.py 2018-05-16 13:56:57.000000000 +0200 @@ -32,6 +32,11 @@ except ImportError: import builtins +try: + from re import Pattern +except ImportError: + Pattern = re._pattern_type + from six import string_types, text_type from sure.core import DeepComparison @@ -127,7 +132,7 @@ msg = exc exc = type(e) - elif isinstance(exc, re._pattern_type): + elif isinstance(exc, Pattern): msg = exc exc = type(e) @@ -147,7 +152,7 @@ type(e).__name__, msg, err)) - elif isinstance(msg, re._pattern_type) and not msg.search(err): + elif isinstance(msg, Pattern) and not msg.search(err): raise AssertionError( 'When calling %r the exception message does not match. ' \ 'Expected to match regex: %r\n against:\n %r' % (identify_callable_location(self._src), msg.pattern, err)) @@ -157,7 +162,7 @@ 'When calling %r the exception message does not match. ' \ 'Expected: %r\n got:\n %r' % (self._src, msg, err)) - elif isinstance(msg, re._pattern_type) and not msg.search(err): + elif isinstance(msg, Pattern) and not msg.search(err): raise AssertionError( 'When calling %r the exception message does not match. ' \ 'Expected to match regex: %r\n against:\n %r' % (identify_callable_location(self._src), msg.pattern, err)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sure-1.4.7/sure.egg-info/PKG-INFO new/sure-1.4.11/sure.egg-info/PKG-INFO --- old/sure-1.4.7/sure.egg-info/PKG-INFO 2017-10-02 15:46:06.000000000 +0200 +++ new/sure-1.4.11/sure.egg-info/PKG-INFO 2018-05-16 23:40:44.000000000 +0200 @@ -1,10 +1,12 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: sure -Version: 1.4.7 +Version: 1.4.11 Summary: utility belt for automated testing in python for python Home-page: http://github.com/gabrielfalcao/sure -Author: Timo Furrer -Author-email: tuxtimo@gmail.com +Author: Gabriel Falcao +Author-email: gabriel@nacaolivre.org +Maintainer: Timo Furrer +Maintainer-email: tuxtimo@gmail.com License: UNKNOWN Description: sure ==== @@ -87,10 +89,10 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: Implementation Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sure-1.4.7/tox.ini new/sure-1.4.11/tox.ini --- old/sure-1.4.7/tox.ini 2017-10-02 15:45:40.000000000 +0200 +++ new/sure-1.4.11/tox.ini 2018-05-16 13:56:57.000000000 +0200 @@ -4,11 +4,13 @@ # and then run "tox" from this directory. [tox] -envlist = py27, pypy, py33, py34, py35, py36 +envlist = py27, pypy, py34, py35, py36, py37 [testenv] commands = nosetests --rednose -vv --with-coverage --cover-package=sure deps = + six + mock nose rednose coverage
participants (1)
-
root