Hello community, here is the log from the commit of package python-oslotest for openSUSE:Factory checked in at 2018-10-01 08:18:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-oslotest (Old) and /work/SRC/openSUSE:Factory/.python-oslotest.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-oslotest" Mon Oct 1 08:18:13 2018 rev:16 rq:638870 version:3.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-oslotest/python-oslotest.changes 2018-09-07 15:39:23.474536957 +0200 +++ /work/SRC/openSUSE:Factory/.python-oslotest.new/python-oslotest.changes 2018-10-01 08:18:13.717936745 +0200 @@ -1,0 +2,10 @@ +Wed Sep 19 23:12:13 UTC 2018 - [email protected] + +- update to version 3.6.0 + - Switch to using stestr + - Fix requirements + - fix tox python3 overrides + - Deprecate MoxStubout class + - mock: Perform patch's autospec checks on __enter__ + +------------------------------------------------------------------- Old: ---- oslotest-3.4.2.tar.gz New: ---- oslotest-3.6.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-oslotest.spec ++++++ --- /var/tmp/diff_new_pack.OFZzgW/_old 2018-10-01 08:18:14.061936525 +0200 +++ /var/tmp/diff_new_pack.OFZzgW/_new 2018-10-01 08:18:14.061936525 +0200 @@ -12,12 +12,12 @@ # 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/ # Name: python-oslotest -Version: 3.4.2 +Version: 3.6.0 Release: 0 Summary: OpenStack test framework License: Apache-2.0 @@ -33,7 +33,7 @@ BuildRequires: python2-pbr BuildRequires: python2-python-subunit >= 1.0.0 BuildRequires: python2-six >= 1.10.0 -BuildRequires: python2-testrepository +BuildRequires: python2-stestr >= 2.0.0 BuildRequires: python2-testtools >= 2.2.0 BuildRequires: python3-debtcollector BuildRequires: python3-devel @@ -43,7 +43,7 @@ BuildRequires: python3-pbr BuildRequires: python3-python-subunit >= 1.0.0 BuildRequires: python3-six >= 1.10.0 -BuildRequires: python3-testrepository +BuildRequires: python3-stestr >= 2.0.0 BuildRequires: python3-testtools >= 2.2.0 Requires: python-debtcollector Requires: python-fixtures >= 3.0.0 @@ -53,7 +53,7 @@ # Requires: python-os-client-config >= 1.28.0 Requires: python-python-subunit >= 1.0.0 Requires: python-six >= 1.10.0 -Requires: python-testrepository +Requires: python-stestr >= 2.0.0 Requires: python-testtools >= 2.2.0 BuildArch: noarch %if 0%{?suse_version} @@ -94,9 +94,7 @@ %python_uninstall_alternative oslo_run_pre_release_tests %check -%{python_expand rm -rf .testrepository -$python setup.py testr -} +%python_exec -m stestr.cli run %files %{python_files} %license LICENSE ++++++ oslotest-3.4.2.tar.gz -> oslotest-3.6.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/.stestr.conf new/oslotest-3.6.0/.stestr.conf --- old/oslotest-3.4.2/.stestr.conf 1970-01-01 01:00:00.000000000 +0100 +++ new/oslotest-3.6.0/.stestr.conf 2018-06-27 10:26:25.000000000 +0200 @@ -0,0 +1,3 @@ +[DEFAULT] +test_path=./oslotest/tests/unit +top_path=./ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/.testr.conf new/oslotest-3.6.0/.testr.conf --- old/oslotest-3.4.2/.testr.conf 2018-05-01 23:06:37.000000000 +0200 +++ new/oslotest-3.6.0/.testr.conf 1970-01-01 01:00:00.000000000 +0100 @@ -1,7 +0,0 @@ -[DEFAULT] -test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \ - OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \ - OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \ - ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION -test_id_option=--load-list $IDFILE -test_list_option=--list \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/AUTHORS new/oslotest-3.6.0/AUTHORS --- old/oslotest-3.4.2/AUTHORS 2018-05-01 23:09:53.000000000 +0200 +++ new/oslotest-3.6.0/AUTHORS 2018-06-27 10:29:32.000000000 +0200 @@ -57,4 +57,5 @@ melissaml <[email protected]> ricolin <[email protected]> venkatamahesh <[email protected]> +wangqi <[email protected]> yan.haifeng <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/ChangeLog new/oslotest-3.6.0/ChangeLog --- old/oslotest-3.4.2/ChangeLog 2018-05-01 23:09:53.000000000 +0200 +++ new/oslotest-3.6.0/ChangeLog 2018-06-27 10:29:32.000000000 +0200 @@ -1,6 +1,19 @@ CHANGES ======= +3.6.0 +----- + +* Switch to using stestr +* fix tox python3 overrides + +3.5.0 +----- + +* Deprecate MoxStubout class +* Fix requirements +* mock: Perform patch's autospec checks on \_\_enter\_\_ + 3.4.2 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/PKG-INFO new/oslotest-3.6.0/PKG-INFO --- old/oslotest-3.4.2/PKG-INFO 2018-05-01 23:09:54.000000000 +0200 +++ new/oslotest-3.6.0/PKG-INFO 2018-06-27 10:29:33.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: oslotest -Version: 3.4.2 +Version: 3.6.0 Summary: Oslo test framework Home-page: https://docs.openstack.org/oslotest/latest/ Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/lower-constraints.txt new/oslotest-3.6.0/lower-constraints.txt --- old/oslotest-3.4.2/lower-constraints.txt 2018-05-01 23:06:37.000000000 +0200 +++ new/oslotest-3.6.0/lower-constraints.txt 2018-06-27 10:26:25.000000000 +0200 @@ -39,6 +39,7 @@ snowballstemmer==1.2.1 Sphinx==1.6.5 sphinxcontrib-websupport==1.0.1 +stestr==2.0.0 stevedore==1.20.0 testrepository==0.0.18 testtools==2.2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/oslotest/mock_fixture.py new/oslotest-3.6.0/oslotest/mock_fixture.py --- old/oslotest-3.4.2/oslotest/mock_fixture.py 2018-05-01 23:06:37.000000000 +0200 +++ new/oslotest-3.6.0/oslotest/mock_fixture.py 2018-06-27 10:26:25.000000000 +0200 @@ -128,8 +128,10 @@ https://github.com/testing-cabal/mock/issues/396 """ - def __init__(self, *args, **kwargs): - super(_patch, self).__init__(*args, **kwargs) + def __enter__(self): + # NOTE(claudiub): we're doing the autospec checks here so unit tests + # have a chance to set up mocks in advance (e.g.: mocking platform + # specific libraries, which would cause the patch to fail otherwise). # By default, autospec is None. We will consider it as True. autospec = True if self.autospec is None else self.autospec @@ -152,11 +154,9 @@ # NOTE(claudiub): reset the self.autospec property, so we can handle # the autospec scenario ourselves. - self._autospec = autospec self.autospec = None - def __enter__(self): - if self._autospec: + if autospec: target = self.getter() original_attr = getattr(target, self.attribute) eat_self = mock.mock._must_skip(target, self.attribute, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/oslotest/moxstubout.py new/oslotest-3.6.0/oslotest/moxstubout.py --- old/oslotest-3.4.2/oslotest/moxstubout.py 2018-05-01 23:06:37.000000000 +0200 +++ new/oslotest-3.6.0/oslotest/moxstubout.py 2018-06-27 10:26:25.000000000 +0200 @@ -15,10 +15,12 @@ # License for the specific language governing permissions and limitations # under the License. +from debtcollector import removals import fixtures from mox3 import mox [email protected]_class('MoxStubout', version='3.5.0') class MoxStubout(fixtures.Fixture): """Deal with code around mox and stubout as a fixture.""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/oslotest.egg-info/PKG-INFO new/oslotest-3.6.0/oslotest.egg-info/PKG-INFO --- old/oslotest-3.4.2/oslotest.egg-info/PKG-INFO 2018-05-01 23:09:53.000000000 +0200 +++ new/oslotest-3.6.0/oslotest.egg-info/PKG-INFO 2018-06-27 10:29:32.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: oslotest -Version: 3.4.2 +Version: 3.6.0 Summary: Oslo test framework Home-page: https://docs.openstack.org/oslotest/latest/ Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/oslotest.egg-info/SOURCES.txt new/oslotest-3.6.0/oslotest.egg-info/SOURCES.txt --- old/oslotest-3.4.2/oslotest.egg-info/SOURCES.txt 2018-05-01 23:09:54.000000000 +0200 +++ new/oslotest-3.6.0/oslotest.egg-info/SOURCES.txt 2018-06-27 10:29:33.000000000 +0200 @@ -1,6 +1,6 @@ .coveragerc .mailmap -.testr.conf +.stestr.conf .zuul.yaml AUTHORS CONTRIBUTING.rst diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/oslotest.egg-info/pbr.json new/oslotest-3.6.0/oslotest.egg-info/pbr.json --- old/oslotest-3.4.2/oslotest.egg-info/pbr.json 2018-05-01 23:09:53.000000000 +0200 +++ new/oslotest-3.6.0/oslotest.egg-info/pbr.json 2018-06-27 10:29:32.000000000 +0200 @@ -1 +1 @@ -{"git_version": "325d0c1", "is_release": true} \ No newline at end of file +{"git_version": "897823f", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/oslotest.egg-info/requires.txt new/oslotest-3.6.0/oslotest.egg-info/requires.txt --- old/oslotest-3.4.2/oslotest.egg-info/requires.txt 2018-05-01 23:09:53.000000000 +0200 +++ new/oslotest-3.6.0/oslotest.egg-info/requires.txt 2018-06-27 10:29:32.000000000 +0200 @@ -1,8 +1,9 @@ fixtures>=3.0.0 python-subunit>=1.0.0 six>=1.10.0 -testrepository>=0.0.18 +stestr>=2.0.0 testtools>=2.2.0 mock>=2.0.0 mox3>=0.20.0 os-client-config>=1.28.0 +debtcollector diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/requirements.txt new/oslotest-3.6.0/requirements.txt --- old/oslotest-3.4.2/requirements.txt 2018-05-01 23:06:37.000000000 +0200 +++ new/oslotest-3.6.0/requirements.txt 2018-06-27 10:26:26.000000000 +0200 @@ -5,8 +5,9 @@ fixtures>=3.0.0 # Apache-2.0/BSD python-subunit>=1.0.0 # Apache-2.0/BSD six>=1.10.0 # MIT -testrepository>=0.0.18 # Apache-2.0/BSD +stestr>=2.0.0 # Apache-2.0 testtools>=2.2.0 # MIT mock>=2.0.0 # BSD mox3>=0.20.0 # Apache-2.0 os-client-config>=1.28.0 # Apache-2.0 +debtcollector # Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/test-requirements.txt new/oslotest-3.6.0/test-requirements.txt --- old/oslotest-3.4.2/test-requirements.txt 2018-05-01 23:06:37.000000000 +0200 +++ new/oslotest-3.6.0/test-requirements.txt 2018-06-27 10:26:26.000000000 +0200 @@ -10,8 +10,8 @@ coverage!=4.4,>=4.0 # Apache-2.0 # this is required for the docs build jobs -sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD +sphinx!=1.6.6,!=1.6.7,>=1.6.5 # BSD openstackdocstheme>=1.18.1 # Apache-2.0 oslo.config>=5.2.0 # Apache-2.0 - +stestr==2.0.0 reno>=2.5.0 # Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-3.4.2/tox.ini new/oslotest-3.6.0/tox.ini --- old/oslotest-3.4.2/tox.ini 2018-05-01 23:06:37.000000000 +0200 +++ new/oslotest-3.6.0/tox.ini 2018-06-27 10:26:26.000000000 +0200 @@ -4,28 +4,36 @@ envlist = py35,py27,pep8 [testenv] -basepython = python3 install_command = pip install {opts} {packages} deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt -commands = python setup.py testr --slowest --testr-args='{posargs}' +commands = stestr run --slowest {posargs} [testenv:py27] basepython = python2.7 [testenv:pep8] +basepython = python3 commands = flake8 [testenv:cover] +basepython = python3 +setenv = + PYTHON=coverage run --source $project --parallel-mode commands = - python setup.py test --coverage --testr-args='{posargs}' + stestr run '{posargs}' + coverage combine + coverage html -d cover + coverage xml -o cover/coverage.xml [testenv:venv] +basepython = python3 commands = {posargs} [testenv:docs] +basepython = python3 commands = python setup.py build_sphinx [flake8] @@ -37,9 +45,11 @@ six.moves.mock [testenv:releasenotes] +basepython = python3 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:lower-constraints] +basepython = python3 deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt
