Hello community,
here is the log from the commit of package python-flexmock for openSUSE:Factory
checked in at 2019-03-13 09:14:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-flexmock (Old)
and /work/SRC/openSUSE:Factory/.python-flexmock.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flexmock"
Wed Mar 13 09:14:30 2019 rev:3 rq:684399 version:0.10.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-flexmock/python-flexmock.changes
2018-12-13 19:47:17.636790354 +0100
+++
/work/SRC/openSUSE:Factory/.python-flexmock.new.28833/python-flexmock.changes
2019-03-13 09:14:33.583390886 +0100
@@ -1,0 +2,7 @@
+Tue Mar 12 15:40:27 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.10.3:
+ - fix compatibility with py.test 4.1
+ - minor documentation fixes
+
+-------------------------------------------------------------------
Old:
----
flexmock-0.10.2.tar.gz
New:
----
flexmock-0.10.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-flexmock.spec ++++++
--- /var/tmp/diff_new_pack.rEr9wG/_old 2019-03-13 09:14:34.399390801 +0100
+++ /var/tmp/diff_new_pack.rEr9wG/_new 2019-03-13 09:14:34.403390801 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-flexmock
#
-# 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
@@ -17,23 +17,19 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without test
Name: python-flexmock
-Version: 0.10.2
+Version: 0.10.3
Release: 0
Summary: Testing library for creating mocks, stubs and fakes
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/bkabrda/flexmock
Source:
https://files.pythonhosted.org/packages/source/f/flexmock/flexmock-%{version}.tar.gz
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
-%if %{with test}
-BuildRequires: %{python_module nose}
-BuildRequires: %{python_module pytest}
-%endif
%python_subpackages
%description
@@ -53,11 +49,8 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
-%if %{with test}
%check
-export PYTHONPATH="."
-%python_exec tests/flexmock_unittest_test.py
-%endif
+%pytest
%files %{python_files}
%license LICENSE
++++++ flexmock-0.10.2.tar.gz -> flexmock-0.10.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flexmock-0.10.2/CHANGELOG
new/flexmock-0.10.3/CHANGELOG
--- old/flexmock-0.10.2/CHANGELOG 2016-01-20 08:26:15.000000000 +0100
+++ new/flexmock-0.10.3/CHANGELOG 2019-01-10 13:39:40.000000000 +0100
@@ -1,3 +1,9 @@
+Release 0.10.3
+--------------
+
+- fix compatibility with py.test 4.1
+- minor documentation fixes
+
Release 0.10.2
--------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flexmock-0.10.2/PKG-INFO new/flexmock-0.10.3/PKG-INFO
--- old/flexmock-0.10.2/PKG-INFO 2016-01-20 08:33:21.000000000 +0100
+++ new/flexmock-0.10.3/PKG-INFO 2019-01-10 13:42:45.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: flexmock
-Version: 0.10.2
+Version: 0.10.3
Summary: flexmock is a testing library for Python that makes it easy to create
mocks,stubs and fakes.
Home-page: http://flexmock.readthedocs.org
Author: Slavek Kabrda, Herman Sheremetyev
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flexmock-0.10.2/docs/conf.py
new/flexmock-0.10.3/docs/conf.py
--- old/flexmock-0.10.2/docs/conf.py 2016-01-20 08:27:44.000000000 +0100
+++ new/flexmock-0.10.3/docs/conf.py 2019-01-10 13:39:56.000000000 +0100
@@ -51,7 +51,7 @@
# built documents.
#
# The short X.Y version.
-version = '0.10.2'
+version = '0.10.3'
# The full version, including alpha/beta/rc tags.
release = version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flexmock-0.10.2/docs/user-guide.rst
new/flexmock-0.10.3/docs/user-guide.rst
--- old/flexmock-0.10.2/docs/user-guide.rst 2016-01-20 08:17:14.000000000
+0100
+++ new/flexmock-0.10.3/docs/user-guide.rst 2019-01-07 12:30:58.000000000
+0100
@@ -594,7 +594,7 @@
(flexmock(HTTP)
.should_receive('get_url.parse_html')
- .and_return(flexmock, display_results='ok', save_results='ok'))
+ .and_return(flexmock(display_results='ok', save_results='ok')))
Replacing methods
@@ -707,7 +707,7 @@
.with_args(regex))
Match any set of three arguments where the first one is an integer,
-second one is anything, and third is string 'foo'
+second one is anything, and third is string 'notes'
(matching against user defined classes is also supported in the same fashion)
::
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flexmock-0.10.2/flexmock.egg-info/PKG-INFO
new/flexmock-0.10.3/flexmock.egg-info/PKG-INFO
--- old/flexmock-0.10.2/flexmock.egg-info/PKG-INFO 2016-01-20
08:33:21.000000000 +0100
+++ new/flexmock-0.10.3/flexmock.egg-info/PKG-INFO 2019-01-10
13:42:45.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: flexmock
-Version: 0.10.2
+Version: 0.10.3
Summary: flexmock is a testing library for Python that makes it easy to create
mocks,stubs and fakes.
Home-page: http://flexmock.readthedocs.org
Author: Slavek Kabrda, Herman Sheremetyev
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flexmock-0.10.2/flexmock.py
new/flexmock-0.10.3/flexmock.py
--- old/flexmock-0.10.2/flexmock.py 2016-01-20 08:27:21.000000000 +0100
+++ new/flexmock-0.10.3/flexmock.py 2019-01-10 13:40:04.000000000 +0100
@@ -25,7 +25,7 @@
# from flexmock import * is evil, keep it from doing any damage
__all__ = ['flexmock']
-__version__ = '0.10.2'
+__version__ = '0.10.3'
import inspect
@@ -1224,8 +1224,11 @@
ret = saved(item, when, **kwargs)
if when != 'call' and ret.excinfo is None:
return ret
- teardown = runner.CallInfo(flexmock_teardown, when=when)
- teardown.result = None
+ if hasattr(runner.CallInfo, "from_call"):
+ teardown = runner.CallInfo.from_call(flexmock_teardown,
when=when)
+ else:
+ teardown = runner.CallInfo(flexmock_teardown, when=when)
+ teardown.result = None
if ret.excinfo is not None and teardown.excinfo is None:
teardown.excinfo = ret.excinfo
return teardown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flexmock-0.10.2/setup.cfg
new/flexmock-0.10.3/setup.cfg
--- old/flexmock-0.10.2/setup.cfg 2016-01-20 08:33:21.000000000 +0100
+++ new/flexmock-0.10.3/setup.cfg 2019-01-10 13:42:45.000000000 +0100
@@ -1,5 +1,4 @@
[egg_info]
tag_build =
tag_date = 0
-tag_svn_revision = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/flexmock-0.10.2/setup.py new/flexmock-0.10.3/setup.py
--- old/flexmock-0.10.2/setup.py 2016-01-20 08:27:07.000000000 +0100
+++ new/flexmock-0.10.3/setup.py 2019-01-10 13:40:16.000000000 +0100
@@ -6,7 +6,7 @@
from distutils.core import setup
setup(name='flexmock',
- version='0.10.2',
+ version='0.10.3',
author='Slavek Kabrda, Herman Sheremetyev',
author_email='[email protected]',
url='http://flexmock.readthedocs.org',