Hello community, here is the log from the commit of package python3-fixtures for openSUSE:Factory checked in at 2015-10-22 12:59:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-fixtures (Old) and /work/SRC/openSUSE:Factory/.python3-fixtures.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-fixtures" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-fixtures/python3-fixtures.changes 2015-09-30 05:49:27.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-fixtures.new/python3-fixtures.changes 2015-10-22 12:59:20.000000000 +0200 @@ -1,0 +2,15 @@ +Sun Oct 18 21:11:45 UTC 2015 - [email protected] + +- specfile: + * add mock requirement + +- update to version 1.4.0: + * "fixtures" now has CI testing via Travis, no more manual work. + (Robert Collins) + * "mock" is used in preference to "unittest.mock" now, as the + rolling backport has significant bugfixes over older but still + supported CPython stdlib versions. (Robert Collins) + * "fixtures.FakeLogger" now detects incorrectly formatted log + messages. (John Villalovos, #1503049) + +------------------------------------------------------------------- Old: ---- fixtures-1.3.1.tar.gz New: ---- fixtures-1.4.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-fixtures.spec ++++++ --- /var/tmp/diff_new_pack.nPQARz/_old 2015-10-22 12:59:20.000000000 +0200 +++ /var/tmp/diff_new_pack.nPQARz/_new 2015-10-22 12:59:20.000000000 +0200 @@ -17,7 +17,7 @@ Name: python3-fixtures -Version: 1.3.1 +Version: 1.4.0 Release: 0 Summary: Fixtrues, reusable state for writing clean tests and more License: Apache-2.0 or BSD-3-Clause @@ -25,6 +25,7 @@ Url: https://launchpad.net/python-fixtures Source: http://pypi.python.org/packages/source/f/fixtures/fixtures-%{version}.tar.gz BuildRequires: python3-devel +BuildRequires: python3-mock BuildRequires: python3-pbr BuildRequires: python3-setuptools BuildRequires: python3-testtools >= 0.9.22 ++++++ fixtures-1.3.1.tar.gz -> fixtures-1.4.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/.travis.yml new/fixtures-1.4.0/.travis.yml --- old/fixtures-1.3.1/.travis.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/fixtures-1.4.0/.travis.yml 2015-10-08 02:18:09.000000000 +0200 @@ -0,0 +1,24 @@ +sudo: false +language: python + +python: + - "2.6" + - "2.7" + - "3.2" + - "3.3" + - "3.4" + - "3.5" + - "pypy" + - pypy3 + - "nightly" + +install: + - pip install -U pip + - pip install -U wheel setuptools pbr + - pip install -U .[docs,test] + - pip list + - python --version + +script: + - make check + - rst2html.py README README.html diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/AUTHORS new/fixtures-1.4.0/AUTHORS --- old/fixtures-1.3.1/AUTHORS 2015-06-30 04:22:04.000000000 +0200 +++ new/fixtures-1.4.0/AUTHORS 2015-10-08 03:09:33.000000000 +0200 @@ -6,6 +6,7 @@ Gavin Panella <[email protected]> Gavin Panella <[email protected]> James Westby <[email protected]> +John L. Villalovos <[email protected]> Jonathan Lange <[email protected]> Jonathan Lange <[email protected]> Joshua Harlow <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/ChangeLog new/fixtures-1.4.0/ChangeLog --- old/fixtures-1.3.1/ChangeLog 2015-06-30 04:22:04.000000000 +0200 +++ new/fixtures-1.4.0/ChangeLog 2015-10-08 03:09:33.000000000 +0200 @@ -1,6 +1,16 @@ CHANGES ======= +1.4 +--- + +* Release 1.4 +* Trivial pep8 fix to logger.py +* FakeLogger: Mis-formatted log messages will raise Exception +* Use mock in preference to unittest.mock +* Add a .travis.yml +* Note how to push on releases + 1.3.1 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/HACKING new/fixtures-1.4.0/HACKING --- old/fixtures-1.3.1/HACKING 2015-06-22 01:52:32.000000000 +0200 +++ new/fixtures-1.4.0/HACKING 2015-07-01 23:37:33.000000000 +0200 @@ -38,7 +38,9 @@ 1. Add a version to NEWS. -1. commit, tag. +1. commit, tag:: + + git push --tags origin master:master 1. Upload to pypi, signed. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/NEWS new/fixtures-1.4.0/NEWS --- old/fixtures-1.3.1/NEWS 2015-06-30 04:21:13.000000000 +0200 +++ new/fixtures-1.4.0/NEWS 2015-10-08 03:06:14.000000000 +0200 @@ -6,6 +6,19 @@ NEXT ~~~~ +1.4 +~~~ + +* ``fixtures`` now has CI testing via Travis, no more manual work. + (Robert Collins) + +* ``mock`` is used in preference to ``unittest.mock`` now, as the rolling + backport has significant bugfixes over older but still supported CPython + stdlib versions. (Robert Collins) + +* ``fixtures.FakeLogger`` now detects incorrectly formatted log messages. + (John Villalovos, #1503049) + 1.3.1 ~~~~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/PKG-INFO new/fixtures-1.4.0/PKG-INFO --- old/fixtures-1.3.1/PKG-INFO 2015-06-30 04:22:04.000000000 +0200 +++ new/fixtures-1.4.0/PKG-INFO 2015-10-08 03:09:34.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: fixtures -Version: 1.3.1 +Version: 1.4.0 Summary: Fixtures, reusable state for writing clean tests and more. Home-page: https://launchpad.net/python-fixtures Author: Robert Collins diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/fixtures/_fixtures/logger.py new/fixtures-1.4.0/fixtures/_fixtures/logger.py --- old/fixtures-1.3.1/fixtures/_fixtures/logger.py 2015-06-22 08:56:00.000000000 +0200 +++ new/fixtures-1.4.0/fixtures/_fixtures/logger.py 2015-10-08 03:05:35.000000000 +0200 @@ -14,7 +14,9 @@ # limitations under that license. from logging import StreamHandler, getLogger, INFO, Formatter +import sys +import six from testtools.compat import _u from fixtures import Fixture @@ -61,6 +63,12 @@ self.addCleanup(logger.removeHandler, self.handler) +class StreamHandlerRaiseException(StreamHandler): + """Handler class that will raise an exception on formatting errors.""" + def handleError(self, record): + six.reraise(*sys.exc_info()) + + class FakeLogger(Fixture): """Replace a logger and capture its output.""" @@ -98,7 +106,7 @@ name = _u("pythonlogging:'%s'") % self._name output = self.useFixture(StringStream(name)).stream self._output = output - handler = StreamHandler(output) + handler = StreamHandlerRaiseException(output) if self._format: formatter = (self._formatter or Formatter) handler.setFormatter(formatter(self._format, self._datefmt)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/fixtures/_fixtures/mockpatch.py new/fixtures-1.4.0/fixtures/_fixtures/mockpatch.py --- old/fixtures-1.3.1/fixtures/_fixtures/mockpatch.py 2015-06-22 08:56:00.000000000 +0200 +++ new/fixtures-1.4.0/fixtures/_fixtures/mockpatch.py 2015-10-08 02:12:56.000000000 +0200 @@ -19,9 +19,9 @@ import fixtures -mock = extras.try_imports(['unittest.mock', 'mock'], None) +mock = extras.try_imports(['mock', 'unittest.mock'], None) mock_default = extras.try_imports( - ['unittest.mock.DEFAULT', 'mock.DEFAULT'], None) + ['mock.DEFAULT', 'unittest.mock.DEFAULT'], None) class _Base(fixtures.Fixture): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/fixtures/tests/_fixtures/test_logger.py new/fixtures-1.4.0/fixtures/tests/_fixtures/test_logger.py --- old/fixtures-1.3.1/fixtures/tests/_fixtures/test_logger.py 2015-06-22 01:52:32.000000000 +0200 +++ new/fixtures-1.4.0/fixtures/tests/_fixtures/test_logger.py 2015-10-08 03:05:15.000000000 +0200 @@ -17,6 +17,7 @@ import sys import time +import testtools from testtools import TestCase from testtools.compat import StringIO @@ -140,6 +141,11 @@ except: pass + def test_exceptionraised(self): + with FakeLogger(): + with testtools.ExpectedException(TypeError): + logging.info("Some message", "wrongarg") + class LogHandlerTest(TestCase, TestWithFixtures): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/fixtures/tests/_fixtures/test_mockpatch.py new/fixtures-1.4.0/fixtures/tests/_fixtures/test_mockpatch.py --- old/fixtures-1.3.1/fixtures/tests/_fixtures/test_mockpatch.py 2015-06-22 02:24:03.000000000 +0200 +++ new/fixtures-1.4.0/fixtures/tests/_fixtures/test_mockpatch.py 2015-10-08 02:12:56.000000000 +0200 @@ -14,7 +14,7 @@ import extras -mock = extras.try_imports(['unittest.mock', 'mock'], None) +import mock # Yes, we only test the rolling backport import testtools from fixtures import ( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/fixtures.egg-info/PKG-INFO new/fixtures-1.4.0/fixtures.egg-info/PKG-INFO --- old/fixtures-1.3.1/fixtures.egg-info/PKG-INFO 2015-06-30 04:22:04.000000000 +0200 +++ new/fixtures-1.4.0/fixtures.egg-info/PKG-INFO 2015-10-08 03:09:33.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: fixtures -Version: 1.3.1 +Version: 1.4.0 Summary: Fixtures, reusable state for writing clean tests and more. Home-page: https://launchpad.net/python-fixtures Author: Robert Collins diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/fixtures.egg-info/SOURCES.txt new/fixtures-1.4.0/fixtures.egg-info/SOURCES.txt --- old/fixtures-1.3.1/fixtures.egg-info/SOURCES.txt 2015-06-30 04:22:04.000000000 +0200 +++ new/fixtures-1.4.0/fixtures.egg-info/SOURCES.txt 2015-10-08 03:09:34.000000000 +0200 @@ -1,4 +1,5 @@ .testr.conf +.travis.yml AUTHORS Apache-2.0 BSD @@ -13,7 +14,6 @@ requirements.txt setup.cfg setup.py -test-requirements.txt tox.ini fixtures/__init__.py fixtures/callmany.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/fixtures.egg-info/pbr.json new/fixtures-1.4.0/fixtures.egg-info/pbr.json --- old/fixtures-1.3.1/fixtures.egg-info/pbr.json 2015-06-30 04:22:04.000000000 +0200 +++ new/fixtures-1.4.0/fixtures.egg-info/pbr.json 2015-10-08 03:09:33.000000000 +0200 @@ -1 +1 @@ -{"is_release": true, "git_version": "09afde5"} \ No newline at end of file +{"is_release": true, "git_version": "6d941c6"} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/fixtures.egg-info/requires.txt new/fixtures-1.4.0/fixtures.egg-info/requires.txt --- old/fixtures-1.3.1/fixtures.egg-info/requires.txt 2015-06-30 04:22:04.000000000 +0200 +++ new/fixtures-1.4.0/fixtures.egg-info/requires.txt 2015-10-08 03:09:33.000000000 +0200 @@ -1,3 +1,9 @@ pbr>=0.11 six testtools>=0.9.22 + +[docs] +docutils + +[test] +mock diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/setup.cfg new/fixtures-1.4.0/setup.cfg --- old/fixtures-1.3.1/setup.cfg 2015-06-30 04:22:04.000000000 +0200 +++ new/fixtures-1.4.0/setup.cfg 2015-10-08 03:09:34.000000000 +0200 @@ -24,6 +24,12 @@ [bdist_wheel] universal = 1 +[extras] +test = + mock +docs = + docutils + [egg_info] tag_build = tag_date = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/test-requirements.txt new/fixtures-1.4.0/test-requirements.txt --- old/fixtures-1.3.1/test-requirements.txt 2015-06-22 02:24:03.000000000 +0200 +++ new/fixtures-1.4.0/test-requirements.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -mock;python_version<'3.3' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fixtures-1.3.1/tox.ini new/fixtures-1.4.0/tox.ini --- old/fixtures-1.3.1/tox.ini 2015-06-22 01:52:32.000000000 +0200 +++ new/fixtures-1.4.0/tox.ini 2015-10-08 02:12:56.000000000 +0200 @@ -1,5 +1,5 @@ [tox] -envlist = py27 +envlist = py26,py27,py32,py33,py34,py35,pypy,pypy3 minversion = 1.6 skipsdist = True @@ -8,5 +8,5 @@ install_command = pip install -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} whitelist_externals = make -deps = -r{toxinidir}/requirements.txt +deps = .[docs,test] commands = make check
