Hello community, here is the log from the commit of package python-mox3 for openSUSE:Factory checked in at 2018-11-09 07:56:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mox3 (Old) and /work/SRC/openSUSE:Factory/.python-mox3.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mox3" Fri Nov 9 07:56:17 2018 rev:6 rq:647407 version:0.26.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mox3/python-mox3.changes 2018-02-28 20:02:20.972793796 +0100 +++ /work/SRC/openSUSE:Factory/.python-mox3.new/python-mox3.changes 2018-11-09 07:56:41.975554791 +0100 @@ -1,0 +2,20 @@ +Tue Nov 6 19:41:59 UTC 2018 - Todd R <toddrme2...@gmail.com> + +- update to version 0.26.0 + * Switch to stestr + * Remove the unnecessary spaces + * Update links in README + * fix tox python3 overrides + * set default python to python3 + * fix a typo in documentation + * add lower-constraints job + * Updated from global requirements +- Update to version 0.25.0 + * Updated from global requirements + * Updated from global requirements + * Updated from global requirements +- Add missing unittest dependency +- Spec file cleanups +- Build documentation with python3 + +------------------------------------------------------------------- Old: ---- _service mox3-0.24.0.tar.gz New: ---- mox3-0.26.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mox3.spec ++++++ --- /var/tmp/diff_new_pack.1Dy7xr/_old 2018-11-09 07:56:42.463554234 +0100 +++ /var/tmp/diff_new_pack.1Dy7xr/_new 2018-11-09 07:56:42.463554234 +0100 @@ -12,35 +12,41 @@ # 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/ # -%global pypi_name mox3 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-mox3 -Version: 0.24.0 +Version: 0.26.0 Release: 0 Summary: An unofficial port of the Google mox framework to Python 3 License: Apache-2.0 Group: Development/Languages/Python Url: http://bugs.launchpad.net/python-mox3 -Source0: https://files.pythonhosted.org/packages/source/m/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/m/mox3/mox3-%{version}.tar.gz +BuildRequires: %{python_module fixtures >= 3.0.0} +BuildRequires: %{python_module pbr >= 2.0.0} +BuildRequires: %{python_module setuptools >= 16.0} +BuildRequires: fdupes BuildRequires: openstack-macros -BuildRequires: python2-fixtures >= 3.0.0 -BuildRequires: python2-pbr >= 2.0.0 -BuildRequires: python2-python-subunit >= 1.0.0 -BuildRequires: python2-setuptools >= 16.0 -BuildRequires: python2-testrepository >= 0.0.18 -BuildRequires: python2-testtools >= 2.2.0 -BuildRequires: python3-fixtures >= 3.0.0 -BuildRequires: python3-pbr >= 2.0.0 -BuildRequires: python3-python-subunit >= 1.0.0 -BuildRequires: python3-setuptools >= 16.0 -BuildRequires: python3-testrepository >= 0.0.18 -BuildRequires: python3-testtools >= 2.2.0 +BuildRequires: python-rpm-macros +# SECTION documentation requirements +BuildRequires: python3-Sphinx >= 1.6.5 +BuildRequires: python3-openstackdocstheme >= 1.18.1 +# /SECTION +# SECTION test requirements +BuildRequires: %{python_module python-subunit >= 1.0.0} +BuildRequires: %{python_module six >= 1.10.0} +BuildRequires: %{python_module stestr >= 2.0.0} +BuildRequires: %{python_module testrepository >= 0.0.18} +BuildRequires: %{python_module testtools >= 2.2.0} +BuildRequires: %{python_module unittest2} +# /SECTION Requires: python-fixtures >= 3.0.0 Requires: python-pbr >= 2.0.0 BuildArch: noarch + %python_subpackages %description @@ -52,8 +58,6 @@ %package -n python-mox3-doc Summary: Documentation for %{name} Group: Documentation/HTML -BuildRequires: python-Sphinx -BuildRequires: python-openstackdocstheme >= 1.18.1 %description -n python-mox3-doc Mox3 is an unofficial port of the Google mox framework to Python 3. It @@ -64,7 +68,7 @@ This package contains documentation in HTML format. %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -n mox3-%{version} %py_req_cleanup sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg @@ -72,24 +76,31 @@ %python_build # generate html docs -%{__python2} setup.py build_sphinx +python3 setup.py build_sphinx +rm doc/build/html/.buildinfo + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +mkdir -p %{buildroot}%{_docdir}/%{name} +cp -r doc/build/html %{buildroot}%{_docdir}/%{name} +%fdupes %{buildroot}%{_docdir}/%{name}/html %check %{python_expand rm -rf .testrepository -$python setup.py testr +stestr-%{$python_bin_suffix} run --slowest } -%install -%python_install - %files %{python_files} %license COPYING.txt %doc README.rst -%{python2_sitelib}/%{pypi_name} -%{python2_sitelib}/%{pypi_name}-*.egg-info +%{python_sitelib}/mox3 +%{python_sitelib}/mox3-*.egg-info %files -n python-mox3-doc %license COPYING.txt -%doc doc/build/html +%dir %{_docdir}/%{name}/ +%{_docdir}/%{name}/html/ %changelog ++++++ mox3-0.24.0.tar.gz -> mox3-0.26.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/.stestr.conf new/mox3-0.26.0/.stestr.conf --- old/mox3-0.24.0/.stestr.conf 1970-01-01 01:00:00.000000000 +0100 +++ new/mox3-0.26.0/.stestr.conf 2018-07-20 03:10:11.000000000 +0200 @@ -0,0 +1,4 @@ +[DEFAULT] +test_path=./mox3/tests +top_dir=./ + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/.testr.conf new/mox3-0.26.0/.testr.conf --- old/mox3-0.24.0/.testr.conf 2017-12-04 11:30:21.000000000 +0100 +++ new/mox3-0.26.0/.testr.conf 1970-01-01 01:00:00.000000000 +0100 @@ -1,4 +0,0 @@ -[DEFAULT] -test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ ./ $LISTOPT $IDOPTION -test_id_option=--load-list $IDFILE -test_list_option=--list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/.zuul.yaml new/mox3-0.26.0/.zuul.yaml --- old/mox3-0.24.0/.zuul.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/mox3-0.26.0/.zuul.yaml 2018-07-20 03:10:11.000000000 +0200 @@ -0,0 +1,7 @@ +- project: + check: + jobs: + - openstack-tox-lower-constraints + gate: + jobs: + - openstack-tox-lower-constraints diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/AUTHORS new/mox3-0.26.0/AUTHORS --- old/mox3-0.24.0/AUTHORS 2017-12-04 11:33:59.000000000 +0100 +++ new/mox3-0.26.0/AUTHORS 2018-07-20 03:12:56.000000000 +0200 @@ -3,6 +3,7 @@ ChangBo Guo(gcb) <eric....@easystack.cn> Davanum Srinivas <dava...@gmail.com> Dawid Fatyga <dawid.fat...@gmail.com> +Dirk Mueller <d...@dmllr.de> Doug Hellmann <d...@doughellmann.com> Dougal Matthews <dou...@redhat.com> Flavio Percoco <flape...@gmail.com> @@ -14,8 +15,12 @@ Tony Breeds <t...@bakeyournoodle.com> Tony Xu <hhkt...@gmail.com> Victor Stinner <vstin...@redhat.com> +Vu Cong Tuan <tua...@vn.fujitsu.com> +XiaojueGuan <guanalbertj...@gmail.com> Zuul <z...@review.openstack.org> dglasser <dglasser@b1010a0a-674b-0410-b734-77272b80c875> kavithahr <kavith...@nectechnologies.in> +melissaml <ma....@99cloud.net> ritesh.arya <ritesh.a...@nectechnologies.in> smiddlek <smiddlek@b1010a0a-674b-0410-b734-77272b80c875> +zhulingjie <easy...@gmail.com> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/ChangeLog new/mox3-0.26.0/ChangeLog --- old/mox3-0.24.0/ChangeLog 2017-12-04 11:33:59.000000000 +0100 +++ new/mox3-0.26.0/ChangeLog 2018-07-20 03:12:56.000000000 +0200 @@ -1,12 +1,33 @@ CHANGES ======= +0.26.0 +------ + +* Switch to stestr +* Remove the unnecessary spaces +* Update links in README +* fix tox python3 overrides +* set default python to python3 +* fix a typo in documentation +* add lower-constraints job +* Updated from global requirements + +0.25.0 +------ + +* Updated from global requirements +* Updated from global requirements +* Updated from global requirements + 0.24.0 ------ * Avoid tox\_install.sh for constraints support * Updated from global requirements * Updated from global requirements +* Remove explicit dependency on pep8/pyflakes +* Fix various pep8 issues * Updated from global requirements * Updated from global requirements diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/PKG-INFO new/mox3-0.26.0/PKG-INFO --- old/mox3-0.24.0/PKG-INFO 2017-12-04 11:34:00.000000000 +0100 +++ new/mox3-0.26.0/PKG-INFO 2018-07-20 03:12:57.000000000 +0200 @@ -1,25 +1,24 @@ Metadata-Version: 1.1 Name: mox3 -Version: 0.24.0 +Version: 0.26.0 Summary: Mock object framework for Python Home-page: https://docs.openstack.org/mox3/latest/ Author: OpenStack Author-email: openstack-...@lists.openstack.org License: UNKNOWN -Description-Content-Type: UNKNOWN Description: =========================================== Mox3 - Mock object framework for Python 3 =========================================== - .. image:: http://governance.openstack.org/badges/mox3.svg - :target: http://governance.openstack.org/reference/tags/index.html + .. image:: https://governance.openstack.org/tc/badges/mox3.svg + :target: https://governance.openstack.org/tc/reference/tags/index.html Mox3 is an unofficial port of the Google mox framework (http://code.google.com/p/pymox/) to Python 3. It was meant to be as compatible with mox as possible, but small enhancements have been made. The library was tested on Python version 3.2, 2.7 and 2.6. - Use at your own risk ;) + Use at your own risk ;) To install: @@ -46,7 +45,7 @@ Basic Usage ----------- - + The basic usage of mox3 is the same as with mox, but the initial import should be made from the mox3 module: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/README.rst new/mox3-0.26.0/README.rst --- old/mox3-0.24.0/README.rst 2017-12-04 11:30:21.000000000 +0100 +++ new/mox3-0.26.0/README.rst 2018-07-20 03:10:11.000000000 +0200 @@ -2,15 +2,15 @@ Mox3 - Mock object framework for Python 3 =========================================== -.. image:: http://governance.openstack.org/badges/mox3.svg - :target: http://governance.openstack.org/reference/tags/index.html +.. image:: https://governance.openstack.org/tc/badges/mox3.svg + :target: https://governance.openstack.org/tc/reference/tags/index.html Mox3 is an unofficial port of the Google mox framework (http://code.google.com/p/pymox/) to Python 3. It was meant to be as compatible with mox as possible, but small enhancements have been made. The library was tested on Python version 3.2, 2.7 and 2.6. -Use at your own risk ;) +Use at your own risk ;) To install: @@ -37,7 +37,7 @@ Basic Usage ----------- - + The basic usage of mox3 is the same as with mox, but the initial import should be made from the mox3 module: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/lower-constraints.txt new/mox3-0.26.0/lower-constraints.txt --- old/mox3-0.24.0/lower-constraints.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/mox3-0.26.0/lower-constraints.txt 2018-07-20 03:10:11.000000000 +0200 @@ -0,0 +1,30 @@ +alabaster==0.7.10 +Babel==2.3.4 +coverage==4.0 +docutils==0.11 +dulwich==0.15.0 +extras==1.0.0 +fixtures==3.0.0 +flake8==2.5.5 +imagesize==0.7.1 +Jinja2==2.10 +linecache2==1.0.0 +MarkupSafe==1.0 +mccabe==0.4.0 +openstackdocstheme==1.18.1 +pbr==2.0.0 +pep8==1.7.1 +pyflakes==1.0.0 +Pygments==2.2.0 +python-mimeparse==1.6.0 +python-subunit==1.0.0 +pytz==2013.6 +requests==2.14.2 +six==1.10.0 +snowballstemmer==1.2.1 +Sphinx==1.6.5 +sphinxcontrib-websupport==1.0.1 +stestr==2.0.0 +testtools==2.2.0 +traceback2==1.4.0 +unittest2==1.1.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/mox3/mox.py new/mox3-0.26.0/mox3/mox.py --- old/mox3-0.24.0/mox3/mox.py 2017-12-04 11:30:21.000000000 +0100 +++ new/mox3-0.26.0/mox3/mox.py 2018-07-20 03:10:11.000000000 +0200 @@ -911,8 +911,8 @@ raise ValueError('Could not get argument specification for %r' % (method,)) if (inspect.ismethod(method) or class_to_bind or ( - hasattr(self, '_args') and len(self._args) > 0 - and self._args[0] == 'self')): + hasattr(self, '_args') and len(self._args) > 0 and + self._args[0] == 'self')): self._args = self._args[1:] # Skip 'self'. self._method = method self._instance = None # May contain the instance this is bound to. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/mox3/stubout.py new/mox3-0.26.0/mox3/stubout.py --- old/mox3-0.24.0/mox3/stubout.py 2017-12-04 11:30:21.000000000 +0100 +++ new/mox3-0.26.0/mox3/stubout.py 2018-07-20 03:10:11.000000000 +0200 @@ -90,8 +90,8 @@ # Calling getattr() on a staticmethod transforms it to a 'normal' # function. We need to ensure that we put it back as a staticmethod. old_attribute = obj.__dict__.get(attr_name) - if (old_attribute is not None - and isinstance(old_attribute, staticmethod)): + if (old_attribute is not None and + isinstance(old_attribute, staticmethod)): orig_attr = staticmethod(orig_attr) self.stubs.append((orig_obj, attr_name, orig_attr)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/mox3/tests/test_mox.py new/mox3-0.26.0/mox3/tests/test_mox.py --- old/mox3-0.24.0/mox3/tests/test_mox.py 2017-12-04 11:30:21.000000000 +0100 +++ new/mox3-0.26.0/mox3/tests/test_mox.py 2018-07-20 03:10:11.000000000 +0200 @@ -110,8 +110,12 @@ def testFuncTrueFalseEvaluation(self): """Should return True if the validating function returns True.""" - equals_one = lambda x: x == 1 - always_none = lambda x: None + + def equals_one(x): + return x == 1 + + def always_none(x): + return None self.assertTrue(mox.Func(equals_one) == 1) self.assertFalse(mox.Func(equals_one) == 0) @@ -210,8 +214,8 @@ def testValidPair(self): """Return True if the object has the key attribute that matches.""" - self.assertTrue(mox.ContainsAttributeValue("key", 1) - == self.test_object) + self.assertTrue(mox.ContainsAttributeValue("key", 1) == + self.test_object) def testInvalidValue(self): """Should return False if the value is not correct.""" @@ -1257,8 +1261,8 @@ # NOT doing dummy[index] dummy._Replay() - function = lambda: [x for x in dummy] - self.assertRaises(mox.UnexpectedMethodCallError, function) + self.assertRaises(mox.UnexpectedMethodCallError, + lambda: [x for x in dummy]) def testMockGetIter_WithSubClassOfNewStyleClass(self): class NewStyleTestClass(object): @@ -2251,7 +2255,7 @@ self.another_critical_variable = 42 def testMethodOverride(self): - """Should be properly overriden in a derived class.""" + """Should be properly overridden in a derived class.""" self.assertEqual(42, self.another_critical_variable) self.another_critical_variable += 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/mox3.egg-info/PKG-INFO new/mox3-0.26.0/mox3.egg-info/PKG-INFO --- old/mox3-0.24.0/mox3.egg-info/PKG-INFO 2017-12-04 11:33:59.000000000 +0100 +++ new/mox3-0.26.0/mox3.egg-info/PKG-INFO 2018-07-20 03:12:56.000000000 +0200 @@ -1,25 +1,24 @@ Metadata-Version: 1.1 Name: mox3 -Version: 0.24.0 +Version: 0.26.0 Summary: Mock object framework for Python Home-page: https://docs.openstack.org/mox3/latest/ Author: OpenStack Author-email: openstack-...@lists.openstack.org License: UNKNOWN -Description-Content-Type: UNKNOWN Description: =========================================== Mox3 - Mock object framework for Python 3 =========================================== - .. image:: http://governance.openstack.org/badges/mox3.svg - :target: http://governance.openstack.org/reference/tags/index.html + .. image:: https://governance.openstack.org/tc/badges/mox3.svg + :target: https://governance.openstack.org/tc/reference/tags/index.html Mox3 is an unofficial port of the Google mox framework (http://code.google.com/p/pymox/) to Python 3. It was meant to be as compatible with mox as possible, but small enhancements have been made. The library was tested on Python version 3.2, 2.7 and 2.6. - Use at your own risk ;) + Use at your own risk ;) To install: @@ -46,7 +45,7 @@ Basic Usage ----------- - + The basic usage of mox3 is the same as with mox, but the initial import should be made from the mox3 module: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/mox3.egg-info/SOURCES.txt new/mox3-0.26.0/mox3.egg-info/SOURCES.txt --- old/mox3-0.24.0/mox3.egg-info/SOURCES.txt 2017-12-04 11:34:00.000000000 +0100 +++ new/mox3-0.26.0/mox3.egg-info/SOURCES.txt 2018-07-20 03:12:57.000000000 +0200 @@ -1,11 +1,13 @@ .mailmap -.testr.conf +.stestr.conf +.zuul.yaml AUTHORS CONTRIBUTING.rst COPYING.txt ChangeLog MANIFEST.in README.rst +lower-constraints.txt requirements.txt setup.cfg setup.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/mox3.egg-info/pbr.json new/mox3-0.26.0/mox3.egg-info/pbr.json --- old/mox3-0.24.0/mox3.egg-info/pbr.json 2017-12-04 11:33:59.000000000 +0100 +++ new/mox3-0.26.0/mox3.egg-info/pbr.json 2018-07-20 03:12:56.000000000 +0200 @@ -1 +1 @@ -{"git_version": "9f2bbc2", "is_release": true} \ No newline at end of file +{"git_version": "b0577a9", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/test-requirements.txt new/mox3-0.26.0/test-requirements.txt --- old/mox3-0.24.0/test-requirements.txt 2017-12-04 11:30:21.000000000 +0100 +++ new/mox3-0.26.0/test-requirements.txt 2018-07-20 03:10:11.000000000 +0200 @@ -3,19 +3,17 @@ # process, which may cause wedges in the gate later. # this file lists dependencies required for the testing of heat -# Install bounded pep8/pyflakes first, then let flake8 install -pep8==1.5.7 # MIT -pyflakes==0.8.1 # MIT +# Install flake8 first, it pulls in the right linter versions flake8<2.6.0,>=2.5.4 # MIT coverage!=4.4,>=4.0 # Apache-2.0 python-subunit>=1.0.0 # Apache-2.0/BSD -testrepository>=0.0.18 # Apache-2.0/BSD +stestr>=2.0.0 # Apache-2.0 testtools>=2.2.0 # MIT six>=1.10.0 # MIT # this is required for the docs build jobs -sphinx>=1.6.2 # BSD -openstackdocstheme>=1.17.0 # Apache-2.0 +sphinx!=1.6.6,!=1.6.7,>=1.6.5 # BSD +openstackdocstheme>=1.18.1 # Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mox3-0.24.0/tox.ini new/mox3-0.26.0/tox.ini --- old/mox3-0.24.0/tox.ini 2017-12-04 11:30:21.000000000 +0100 +++ new/mox3-0.26.0/tox.ini 2018-07-20 03:10:11.000000000 +0200 @@ -8,22 +8,28 @@ -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = - python setup.py testr --slowest --testr-args='{posargs}' +commands = stestr run --slowest {posargs} [testenv:docs] +basepython = python3 commands = python setup.py build_sphinx [testenv:pep8] +basepython = python3 commands = flake8 [testenv:venv] +basepython = python3 commands = {posargs} -[testenv:cover] -commands = - python setup.py testr --coverage - [flake8] show-source = true +ignore = E721 exclude=.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg + +[testenv:lower-constraints] +basepython = python3 +deps = + -c{toxinidir}/lower-constraints.txt + -r{toxinidir}/test-requirements.txt + -r{toxinidir}/requirements.txt