Hello community, here is the log from the commit of package python-expects for openSUSE:Factory checked in at 2019-03-12 09:54:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-expects (Old) and /work/SRC/openSUSE:Factory/.python-expects.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-expects" Tue Mar 12 09:54:12 2019 rev:3 rq:683759 version:0.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-expects/python-expects.changes 2018-06-13 15:38:16.323029662 +0200 +++ /work/SRC/openSUSE:Factory/.python-expects.new.28833/python-expects.changes 2019-03-12 09:54:16.207527830 +0100 @@ -1,0 +2,8 @@ +Mon Mar 11 11:10:33 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Update to 0.9.0: + * Fix Python 3.7 collections ABC classes deprecation warning. See GH-55. + * Hide expects internals from pytest tracebacks. See GH-51. + * Dropped Python 2.6 support. + +------------------------------------------------------------------- Old: ---- expects-0.8.0.tar.gz New: ---- expects-0.9.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-expects.spec ++++++ --- /var/tmp/diff_new_pack.35IqXs/_old 2019-03-12 09:54:16.667527738 +0100 +++ /var/tmp/diff_new_pack.35IqXs/_new 2019-03-12 09:54:16.671527737 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-expects # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,13 +12,13 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-expects -Version: 0.8.0 +Version: 0.9.0 Release: 0 Summary: Expressive and extensible TDD/BDD assertion library for Python License: Apache-2.0 ++++++ expects-0.8.0.tar.gz -> expects-0.9.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/MANIFEST.in new/expects-0.9.0/MANIFEST.in --- old/expects-0.8.0/MANIFEST.in 2016-05-15 19:56:14.000000000 +0200 +++ new/expects-0.9.0/MANIFEST.in 2018-10-25 18:01:09.000000000 +0200 @@ -1,5 +1,6 @@ include *requirements.txt include README.rst include LICENSE -recursive-include docs * recursive-include specs *.py +recursive-include examples *.txt *.py +recursive-include docs * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/PKG-INFO new/expects-0.9.0/PKG-INFO --- old/expects-0.8.0/PKG-INFO 2016-05-15 19:56:34.000000000 +0200 +++ new/expects-0.9.0/PKG-INFO 2018-10-25 18:01:46.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: expects -Version: 0.8.0 +Version: 0.9.0 Summary: Expressive and extensible TDD/BDD assertion library for Python Home-page: https://github.com/jaimegildesagredo/expects Author: Jaime Gil de Sagredo Luna @@ -21,14 +21,14 @@ :target: https://www.tldrlegal.com/l/apache2 :alt: License - .. image:: https://img.shields.io/pypi/dm/expects.svg - :target: https://pypi.python.org/pypi/expects - :alt: Number of PyPI downloads - .. image:: https://secure.travis-ci.org/jaimegildesagredo/expects.svg?branch=master :target: http://travis-ci.org/jaimegildesagredo/expects :alt: Build status + .. image:: https://img.shields.io/pypi/pyversions/expects.svg + :target: https://pypi.python.org/pypi/expects + :alt: PyPI versions + **Expects** is an *expressive* and *extensible* TDD/BDD assertion library for Python. Expects can be *extended* by defining `new matchers <http://expects.readthedocs.io/en/latest/custom-matchers.html>`_. Usage @@ -97,8 +97,11 @@ Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2.7 -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 Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: License :: OSI Approved :: Apache Software License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/README.rst new/expects-0.9.0/README.rst --- old/expects-0.8.0/README.rst 2016-05-15 19:56:14.000000000 +0200 +++ new/expects-0.9.0/README.rst 2018-10-25 18:01:09.000000000 +0200 @@ -13,14 +13,14 @@ :target: https://www.tldrlegal.com/l/apache2 :alt: License -.. image:: https://img.shields.io/pypi/dm/expects.svg - :target: https://pypi.python.org/pypi/expects - :alt: Number of PyPI downloads - .. image:: https://secure.travis-ci.org/jaimegildesagredo/expects.svg?branch=master :target: http://travis-ci.org/jaimegildesagredo/expects :alt: Build status +.. image:: https://img.shields.io/pypi/pyversions/expects.svg + :target: https://pypi.python.org/pypi/expects + :alt: PyPI versions + **Expects** is an *expressive* and *extensible* TDD/BDD assertion library for Python. Expects can be *extended* by defining `new matchers <http://expects.readthedocs.io/en/latest/custom-matchers.html>`_. Usage diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/docs/conf.py new/expects-0.9.0/docs/conf.py --- old/expects-0.8.0/docs/conf.py 2016-05-15 19:56:14.000000000 +0200 +++ new/expects-0.9.0/docs/conf.py 2018-10-25 18:01:09.000000000 +0200 @@ -57,9 +57,9 @@ # built documents. # # The short X.Y version. -version = '0.8' +version = '0.9' # The full version, including alpha/beta/rc tags. -release = '0.8.0' +release = '0.9.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/examples/requirements.txt new/expects-0.9.0/examples/requirements.txt --- old/expects-0.8.0/examples/requirements.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/expects-0.9.0/examples/requirements.txt 2018-10-25 18:01:09.000000000 +0200 @@ -0,0 +1 @@ +pytest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/examples/test_pytest.py new/expects-0.9.0/examples/test_pytest.py --- old/expects-0.8.0/examples/test_pytest.py 1970-01-01 01:00:00.000000000 +0100 +++ new/expects-0.9.0/examples/test_pytest.py 2018-10-25 18:01:09.000000000 +0200 @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- + +from expects import * + + +def test_failing(): + expect("foo").to(equal("bar")) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/expects/expectations.py new/expects-0.9.0/expects/expectations.py --- old/expects-0.8.0/expects/expectations.py 2016-05-15 19:56:14.000000000 +0200 +++ new/expects-0.9.0/expects/expectations.py 2018-10-25 18:01:09.000000000 +0200 @@ -8,17 +8,25 @@ @property def not_to(self): + __tracebackhide__ = True + self._negated = True return self.to @property def to_not(self): + __tracebackhide__ = True + return self.not_to def to(self, matcher): + __tracebackhide__ = True + self._assert(matcher) def _assert(self, matcher): + __tracebackhide__ = True + ok, reasons = self._match(matcher) if not ok: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/expects/matchers/built_in/contain.py new/expects-0.9.0/expects/matchers/built_in/contain.py --- old/expects-0.8.0/expects/matchers/built_in/contain.py 2016-05-15 19:56:14.000000000 +0200 +++ new/expects-0.9.0/expects/matchers/built_in/contain.py 2018-10-25 18:01:09.000000000 +0200 @@ -1,7 +1,11 @@ # -*- coding: utf-8 -* import functools -import collections + +try: + import collections.abc as collections_abc +except ImportError: + import collections as collections_abc from .. import Matcher, default_matcher from ...texts import plain_enumerate @@ -10,9 +14,9 @@ class contain(Matcher): _NON_NORMALIZED_SEQUENCE_TYPES = ( - collections.Iterator, - collections.MappingView, - collections.Set + collections_abc.Iterator, + collections_abc.MappingView, + collections_abc.Set ) def __init__(self, *expected): @@ -35,7 +39,7 @@ return self._matches(subject) def _is_not_a_sequence(self, value): - return not isinstance(value, collections.Sequence) + return not isinstance(value, collections_abc.Sequence) def _matches(self, subject): reasons = [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/expects/matchers/built_in/have_keys.py new/expects-0.9.0/expects/matchers/built_in/have_keys.py --- old/expects-0.8.0/expects/matchers/built_in/have_keys.py 2016-05-15 19:56:14.000000000 +0200 +++ new/expects-0.9.0/expects/matchers/built_in/have_keys.py 2018-10-25 18:01:09.000000000 +0200 @@ -1,6 +1,9 @@ # -*- coding: utf-8 -* -import collections +try: + import collections.abc as collections_abc +except ImportError: + import collections as collections_abc from .. import Matcher, default_matcher from ...texts import plain_enumerate @@ -14,7 +17,7 @@ return self._matches(subject) def _not_a_dict(self, value): - return not isinstance(value, collections.Mapping) + return not isinstance(value, collections_abc.Mapping) def _matches(self, subject): args, kwargs = self._expected diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/expects/matchers/built_in/start_end_with.py new/expects-0.9.0/expects/matchers/built_in/start_end_with.py --- old/expects-0.8.0/expects/matchers/built_in/start_end_with.py 2016-05-15 19:56:14.000000000 +0200 +++ new/expects-0.9.0/expects/matchers/built_in/start_end_with.py 2018-10-25 18:01:09.000000000 +0200 @@ -2,6 +2,11 @@ import collections +try: + import collections.abc as collections_abc +except ImportError: + import collections as collections_abc + from .. import Matcher from ...texts import plain_enumerate from ... import _compat @@ -18,13 +23,10 @@ return self._matches(subject) def _is_unordered_dict(self, subject): - if isinstance(subject, collections.Mapping): - if not hasattr(collections, 'OrderedDict'): - return True - - return not isinstance(subject, collections.OrderedDict) - - return False + return ( + isinstance(subject, collections_abc.Mapping) and + not isinstance(subject, collections.OrderedDict) + ) def _match_negated(self, subject): if self._is_unordered_dict(subject): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/expects.egg-info/PKG-INFO new/expects-0.9.0/expects.egg-info/PKG-INFO --- old/expects-0.8.0/expects.egg-info/PKG-INFO 2016-05-15 19:56:34.000000000 +0200 +++ new/expects-0.9.0/expects.egg-info/PKG-INFO 2018-10-25 18:01:46.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: expects -Version: 0.8.0 +Version: 0.9.0 Summary: Expressive and extensible TDD/BDD assertion library for Python Home-page: https://github.com/jaimegildesagredo/expects Author: Jaime Gil de Sagredo Luna @@ -21,14 +21,14 @@ :target: https://www.tldrlegal.com/l/apache2 :alt: License - .. image:: https://img.shields.io/pypi/dm/expects.svg - :target: https://pypi.python.org/pypi/expects - :alt: Number of PyPI downloads - .. image:: https://secure.travis-ci.org/jaimegildesagredo/expects.svg?branch=master :target: http://travis-ci.org/jaimegildesagredo/expects :alt: Build status + .. image:: https://img.shields.io/pypi/pyversions/expects.svg + :target: https://pypi.python.org/pypi/expects + :alt: PyPI versions + **Expects** is an *expressive* and *extensible* TDD/BDD assertion library for Python. Expects can be *extended* by defining `new matchers <http://expects.readthedocs.io/en/latest/custom-matchers.html>`_. Usage @@ -97,8 +97,11 @@ Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2.7 -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 Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: License :: OSI Approved :: Apache Software License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/expects.egg-info/SOURCES.txt new/expects-0.9.0/expects.egg-info/SOURCES.txt --- old/expects-0.8.0/expects.egg-info/SOURCES.txt 2016-05-15 19:56:34.000000000 +0200 +++ new/expects-0.9.0/expects.egg-info/SOURCES.txt 2018-10-25 18:01:46.000000000 +0200 @@ -15,6 +15,8 @@ docs/install.rst docs/make.bat docs/matchers.rst +examples/requirements.txt +examples/test_pytest.py expects/__init__.py expects/_compat.py expects/aliases.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/setup.cfg new/expects-0.9.0/setup.cfg --- old/expects-0.8.0/setup.cfg 2016-05-15 19:56:34.000000000 +0200 +++ new/expects-0.9.0/setup.cfg 2018-10-25 18:01:46.000000000 +0200 @@ -1,5 +1,4 @@ [egg_info] -tag_date = 0 tag_build = -tag_svn_revision = 0 +tag_date = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/setup.py new/expects-0.9.0/setup.py --- old/expects-0.8.0/setup.py 2016-05-15 19:56:14.000000000 +0200 +++ new/expects-0.9.0/setup.py 2018-10-25 18:01:09.000000000 +0200 @@ -6,14 +6,14 @@ setup( name='expects', - version='0.8.0', + version='0.9.0', description='Expressive and extensible TDD/BDD assertion library for Python', long_description=long_description, url='https://github.com/jaimegildesagredo/expects', author='Jaime Gil de Sagredo Luna', author_email='[email protected]', license='Apache 2.0', - packages=find_packages(exclude=['specs', 'specs.*']), + packages=find_packages(exclude=['specs', 'specs.*', 'examples', 'examples.*']), classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', @@ -21,8 +21,11 @@ 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', - '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', 'Topic :: Software Development :: Libraries :: Python Modules', 'License :: OSI Approved :: Apache Software License' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/specs/matchers/built_in/end_with_spec.py new/expects-0.9.0/specs/matchers/built_in/end_with_spec.py --- old/expects-0.8.0/specs/matchers/built_in/end_with_spec.py 2016-05-15 19:56:14.000000000 +0200 +++ new/expects-0.9.0/specs/matchers/built_in/end_with_spec.py 2018-10-25 18:01:09.000000000 +0200 @@ -1,9 +1,6 @@ # -*- coding: utf-8 -* -try: - from collections import OrderedDict -except ImportError: - OrderedDict = lambda *args: None +from collections import OrderedDict from expects import * from expects.testing import failure @@ -28,9 +25,6 @@ expect(self.lst).to(end_with(*self.lst[-2:])) with it('should pass if ordered dict ends with keys'): - if self.ordered_dct is None: - return - expected_args = list(self.ordered_dct)[:2] expect(self.ordered_dct).to(end_with(*expected_args)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/specs/matchers/built_in/start_with_spec.py new/expects-0.9.0/specs/matchers/built_in/start_with_spec.py --- old/expects-0.8.0/specs/matchers/built_in/start_with_spec.py 2016-05-15 19:56:14.000000000 +0200 +++ new/expects-0.9.0/specs/matchers/built_in/start_with_spec.py 2018-10-25 18:01:09.000000000 +0200 @@ -1,9 +1,6 @@ # -*- coding: utf-8 -* -try: - from collections import OrderedDict -except ImportError: - OrderedDict = lambda *args: None +from collections import OrderedDict from expects import * from expects.testing import failure @@ -28,9 +25,6 @@ expect(self.lst).to(start_with(*self.lst[:2])) with it('passes if ordered dict starts with keys'): - if self.ordered_dct is None: - return - expected_args = list(self.ordered_dct)[:2] expect(self.ordered_dct).to(start_with(*expected_args)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/expects-0.8.0/specs/testing/failure_spec.py new/expects-0.9.0/specs/testing/failure_spec.py --- old/expects-0.8.0/specs/testing/failure_spec.py 2016-05-15 19:56:14.000000000 +0200 +++ new/expects-0.9.0/specs/testing/failure_spec.py 2018-10-25 18:01:09.000000000 +0200 @@ -27,7 +27,7 @@ with context('with message'): with before.each: self.message = "to be 'bar'" - self.pattern = "to be '\w+'" + self.pattern = r"to be '\w+'" with it('passes if assertion raised and message ends with'): with failure(self.message):
