Hello community, here is the log from the commit of package python-fudge for openSUSE:Leap:15.2 checked in at 2020-03-09 18:05:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-fudge (Old) and /work/SRC/openSUSE:Leap:15.2/.python-fudge.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-fudge" Mon Mar 9 18:05:45 2020 rev:17 rq:776638 version:1.1.1 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-fudge/python-fudge.changes 2020-01-15 15:49:00.159445184 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-fudge.new.26092/python-fudge.changes 2020-03-09 18:05:46.284829605 +0100 @@ -1,0 +2,23 @@ +Sat Sep 14 01:46:16 UTC 2019 - John Vandenberg <jay...@gmail.com> + +- Skip the tests for the flavors not being built + +------------------------------------------------------------------- +Mon Mar 18 19:15:00 UTC 2019 - Jan Engelhardt <jeng...@inai.de> + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Mon Mar 4 13:56:49 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Update to 1.1.1: + * no changelog provided +- Do not bother with sphinx docu as the upstream homepage is + the docu itself + +------------------------------------------------------------------- +Tue Dec 4 12:48:17 UTC 2018 - Matej Cepl <mc...@suse.com> + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- Old: ---- fudge-1.1.0.tar.gz New: ---- fudge-1.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-fudge.spec ++++++ --- /var/tmp/diff_new_pack.r4vZ3b/_old 2020-03-09 18:05:46.564829743 +0100 +++ /var/tmp/diff_new_pack.r4vZ3b/_new 2020-03-09 18:05:46.564829743 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-fudge # -# Copyright (c) 2017 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,25 +12,23 @@ # 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-fudge -Version: 1.1.0 +Version: 1.1.1 Release: 0 -Summary: Replace real objects with fakes (mocks, stubs, etc) while testing +Summary: Module for replacing real objects with fakes (mocks, stubs, etc) while testing License: MIT Group: Development/Languages/Python -Url: http://farmdev.com/projects/fudge/ +URL: http://farmdev.com/projects/fudge/ Source: https://files.pythonhosted.org/packages/source/f/fudge/fudge-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module nose} +BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-2to3 -BuildRequires: python3-Sphinx -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -46,47 +44,34 @@ object was used incorrectly then you'll see an informative exception message with a traceback that points to the culprit. -Here is a quick preview of how you can test code that sends -email without actually sending email:: - - @fudge.patch('smtplib.SMTP') - def test_mailer(FakeSMTP): - # Declare how the SMTP class should be used: - (FakeSMTP.expects_call() - .expects('connect') - .expects('sendmail').with_arg_count(3)) - # Run production code: - send_mail() - # ...expectations are verified automatically at the end of the test - %prep %setup -q -n fudge-%{version} -# drop build date from doc to fix build-compare -sed -i "s/\(html_last_updated_fmt = \).*/\\1None/" ./docs/conf.py %build %python_build -cd docs && make html && rm -r _build/html/.buildinfo # Build HTML documentation %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check mkdir testdir pushd testdir +%if 0%{?have_python2} && ! 0%{?skip_python2} cp -r ../fudge/tests tests2 export PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests-%{python2_bin_suffix} -w tests2 +%endif +%if 0%{?have_python3} && ! 0%{?skip_python3} cp -r ../fudge/tests tests3 2to3 -w tests3 export PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_bin_suffix} -w tests3 +%endif popd %files %{python_files} -%defattr(-,root,root,-) %license LICENSE.txt -%doc docs/_build/html %{python_sitelib}/* %changelog ++++++ fudge-1.1.0.tar.gz -> fudge-1.1.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fudge-1.1.0/PKG-INFO new/fudge-1.1.1/PKG-INFO --- old/fudge-1.1.0/PKG-INFO 2015-06-08 22:33:40.000000000 +0200 +++ new/fudge-1.1.1/PKG-INFO 2017-12-12 16:19:03.000000000 +0100 @@ -1,13 +1,14 @@ Metadata-Version: 1.1 Name: fudge -Version: 1.1.0 +Version: 1.1.1 Summary: Replace real objects with fakes (mocks, stubs, etc) while testing. Home-page: https://github.com/fudge-py/fudge Author: Kumar McMillan Author-email: kumar.mcmil...@gmail.com License: The MIT License +Description-Content-Type: UNKNOWN Description: - Complete documentation is available at http://farmdev.com/projects/fudge/ + Complete documentation is available at https://fudge.readthedocs.org/en/latest/ Fudge is a Python module for using fake objects (mocks and stubs) to test real ones. @@ -20,7 +21,7 @@ Here is a quick preview of how you can test code that sends email without actually sending email:: - + @fudge.patch('smtplib.SMTP') def test_mailer(FakeSMTP): # Declare how the SMTP class should be used: @@ -30,7 +31,7 @@ # Run production code: send_mail() # ...expectations are verified automatically at the end of the test - + Platform: UNKNOWN Classifier: Intended Audience :: Developers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fudge-1.1.0/README.md new/fudge-1.1.1/README.md --- old/fudge-1.1.0/README.md 1970-01-01 01:00:00.000000000 +0100 +++ new/fudge-1.1.1/README.md 2015-07-24 23:16:57.000000000 +0200 @@ -0,0 +1,25 @@ +Fudge is a module for replacing real objects with fakes (mocks, stubs, etc) while testing. + +Documentation is available at +[https://fudge.readthedocs.org/en/latest/](https://fudge.readthedocs.org/en/latest/) +or else, you can build it from source like this: + + $ easy_install Sphinx + $ cd docs + $ make html + +then open `_build/html/index.html` in your web browser. + +To run tests, you can use tox for all supported versions of Python. +You can install it with pip: + + $ pip install tox + +Then execute: + + $ ./run_tests.sh + +Or simply: + + $ tox + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fudge-1.1.0/docs/index.rst new/fudge-1.1.1/docs/index.rst --- old/fudge-1.1.0/docs/index.rst 2015-06-08 22:17:32.000000000 +0200 +++ new/fudge-1.1.1/docs/index.rst 2017-12-12 16:17:01.000000000 +0100 @@ -81,6 +81,10 @@ Changelog ========= +- 1.1.1 + + - Fixes error when providing tuple or list to arg.isinstance + - 1.1.0 - **Changed** `moved to github <https://github.com/fudge-py/fudge/>`_ and added maintainers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fudge-1.1.0/fudge/__init__.py new/fudge-1.1.1/fudge/__init__.py --- old/fudge-1.1.0/fudge/__init__.py 2015-06-08 21:56:00.000000000 +0200 +++ new/fudge-1.1.1/fudge/__init__.py 2017-12-12 16:17:01.000000000 +0100 @@ -5,7 +5,7 @@ """ -__version__ = '1.1.0' +__version__ = '1.1.1' import os import re import sys diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fudge-1.1.0/fudge/inspector.py new/fudge-1.1.1/fudge/inspector.py --- old/fudge-1.1.0/fudge/inspector.py 2015-06-08 21:51:37.000000000 +0200 +++ new/fudge-1.1.1/fudge/inspector.py 2017-12-12 16:17:01.000000000 +0100 @@ -585,7 +585,10 @@ return isinstance(other, self.cls) def _repr_argspec(self): - return self._make_argspec(repr(self.cls.__name__)) + if isinstance(self.cls, (tuple, list)): + return self._make_argspec(repr(tuple((cls.__name__ for cls in self.cls)))) + else: + return self._make_argspec(repr(self.cls.__name__)) class NotValue(ValueTest): def __init__(self, item): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fudge-1.1.0/fudge/tests/test_inspector.py new/fudge-1.1.1/fudge/tests/test_inspector.py --- old/fudge-1.1.0/fudge/tests/test_inspector.py 2015-06-08 21:54:38.000000000 +0200 +++ new/fudge-1.1.1/fudge/tests/test_inspector.py 2017-12-12 16:17:01.000000000 +0100 @@ -87,6 +87,10 @@ passes = inspector.IsInstance(str) eq_(str(passes), "arg.isinstance('str')") + def test_list(self): + passes = inspector.IsInstance((str, int)) + eq_(str(passes), "arg.isinstance(('str', 'int'))") + class TestObjectlike(unittest.TestCase): def tearDown(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fudge-1.1.0/fudge.egg-info/PKG-INFO new/fudge-1.1.1/fudge.egg-info/PKG-INFO --- old/fudge-1.1.0/fudge.egg-info/PKG-INFO 2015-06-08 22:33:40.000000000 +0200 +++ new/fudge-1.1.1/fudge.egg-info/PKG-INFO 2017-12-12 16:19:03.000000000 +0100 @@ -1,13 +1,14 @@ Metadata-Version: 1.1 Name: fudge -Version: 1.1.0 +Version: 1.1.1 Summary: Replace real objects with fakes (mocks, stubs, etc) while testing. Home-page: https://github.com/fudge-py/fudge Author: Kumar McMillan Author-email: kumar.mcmil...@gmail.com License: The MIT License +Description-Content-Type: UNKNOWN Description: - Complete documentation is available at http://farmdev.com/projects/fudge/ + Complete documentation is available at https://fudge.readthedocs.org/en/latest/ Fudge is a Python module for using fake objects (mocks and stubs) to test real ones. @@ -20,7 +21,7 @@ Here is a quick preview of how you can test code that sends email without actually sending email:: - + @fudge.patch('smtplib.SMTP') def test_mailer(FakeSMTP): # Declare how the SMTP class should be used: @@ -30,7 +31,7 @@ # Run production code: send_mail() # ...expectations are verified automatically at the end of the test - + Platform: UNKNOWN Classifier: Intended Audience :: Developers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fudge-1.1.0/fudge.egg-info/SOURCES.txt new/fudge-1.1.1/fudge.egg-info/SOURCES.txt --- old/fudge-1.1.0/fudge.egg-info/SOURCES.txt 2015-06-08 22:33:40.000000000 +0200 +++ new/fudge-1.1.1/fudge.egg-info/SOURCES.txt 2017-12-12 16:19:03.000000000 +0100 @@ -1,5 +1,6 @@ LICENSE.txt MANIFEST.in +README.md run_tests.sh setup.py docs/Makefile diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fudge-1.1.0/setup.cfg new/fudge-1.1.1/setup.cfg --- old/fudge-1.1.0/setup.cfg 2015-06-08 22:33:40.000000000 +0200 +++ new/fudge-1.1.1/setup.cfg 2017-12-12 16:19:03.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/fudge-1.1.0/setup.py new/fudge-1.1.1/setup.py --- old/fudge-1.1.0/setup.py 2015-06-08 21:57:05.000000000 +0200 +++ new/fudge-1.1.1/setup.py 2015-07-24 23:27:46.000000000 +0200 @@ -22,7 +22,7 @@ version=version, description="Replace real objects with fakes (mocks, stubs, etc) while testing.", long_description=""" -Complete documentation is available at http://farmdev.com/projects/fudge/ +Complete documentation is available at https://fudge.readthedocs.org/en/latest/ Fudge is a Python module for using fake objects (mocks and stubs) to test real ones. @@ -35,7 +35,7 @@ Here is a quick preview of how you can test code that sends email without actually sending email:: - + @fudge.patch('smtplib.SMTP') def test_mailer(FakeSMTP): # Declare how the SMTP class should be used: @@ -45,7 +45,7 @@ # Run production code: send_mail() # ...expectations are verified automatically at the end of the test - + """, author='Kumar McMillan', author_email='kumar.mcmil...@gmail.com',