commit python-oslotest for openSUSE:Factory
Hello community, here is the log from the commit of package python-oslotest for openSUSE:Factory checked in at 2016-05-04 08:20:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-oslotest (Old) and /work/SRC/openSUSE:Factory/.python-oslotest.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-oslotest" Changes: -------- --- /work/SRC/openSUSE:Factory/python-oslotest/python-oslotest.changes 2015-09-02 07:54:07.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-oslotest.new/python-oslotest.changes 2016-05-04 08:20:00.000000000 +0200 @@ -1,0 +2,22 @@ +Thu Mar 3 07:14:29 UTC 2016 - tbechtold@suse.com + +- update to 2.0.0: + * Updated from global requirements + * Remove Python 2.6 classifier + * mockpatch: deprecate in favor of native fixtures + * Remove python 2.6 and cleanup tox.ini + * Updated from global requirements + * Fix coverage configuration and execution + * Updated from global requirements + * Add documentation about using oslo_debug_helper + * add oslo.config a test requirement + * clean up readme and doc title + * clean up toctree + * auto-generate API documentation + * Fix the home-page with Oslotest wikipage + * Fixup docstrings + * Updated from global requirements + * Updated from global requirements +- Switch to .spec from rpm-packaging upstream project + +------------------------------------------------------------------- Old: ---- oslotest-1.10.0.tar.gz New: ---- oslotest-2.0.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-oslotest.spec ++++++ --- /var/tmp/diff_new_pack.8BZSR7/_old 2016-05-04 08:20:01.000000000 +0200 +++ /var/tmp/diff_new_pack.8BZSR7/_new 2016-05-04 08:20:01.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-oslotest # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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,16 +17,18 @@ Name: python-oslotest -Version: 1.10.0 +Version: 2.0.0 Release: 0 Summary: OpenStack test framework License: Apache-2.0 Group: Development/Languages/Python -Url: http://launchpad.net/oslo +Url: https://launchpad.net/oslotest Source: https://pypi.python.org/packages/source/o/oslotest/oslotest-%{version}.tar.gz +BuildRequires: openstack-macros BuildRequires: python-devel BuildRequires: python-pbr # Test requirements: +BuildRequires: python-debtcollector >= 0.3.0 BuildRequires: python-fixtures >= 0.3.14 BuildRequires: python-mock >= 1.0 BuildRequires: python-mox3 >= 0.7.0 @@ -34,7 +36,7 @@ BuildRequires: python-six BuildRequires: python-testrepository >= 0.0.18 BuildRequires: python-testscenarios >= 0.4 -BuildRequires: python-testtools >= 0.9.34 +BuildRequires: python-testtools >= 1.4.0 Requires: python-fixtures >= 1.3.1 Requires: python-mock >= 1.0.1 Requires: python-mox3 >= 0.7.0 @@ -44,36 +46,31 @@ Requires: python-testrepository >= 0.0.18 Requires: python-testscenarios >= 0.4 Requires: python-testtools >= 1.4.0 -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -BuildRequires: python-discover -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif %description -OpenStack test framework +The Oslo Test framework provides common fixtures, support for debugging, and +better support for mocking results. %prep %setup -q -n oslotest-%{version} %build -python setup.py build +%{__python2} setup.py build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%{__python2} setup.py install --prefix=%{_prefix} --root=%{buildroot} %check testr init && testr run %files -%defattr(-,root,root,-) -%doc ChangeLog README.rst LICENSE AUTHORS +%license LICENSE +%doc ChangeLog README.rst AUTHORS %{_bindir}/oslo_debug_helper %{_bindir}/oslo_run_cross_tests %{_bindir}/oslo_run_pre_release_tests - -%{python_sitelib}/* +%{python2_sitelib}/oslotest +%{python2_sitelib}/oslotest*egg-info %changelog ++++++ oslotest-1.10.0.tar.gz -> oslotest-2.0.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/.coveragerc new/oslotest-2.0.0/.coveragerc --- old/oslotest-1.10.0/.coveragerc 2015-08-03 19:20:54.000000000 +0200 +++ new/oslotest-2.0.0/.coveragerc 2015-11-23 21:59:20.000000000 +0100 @@ -1,7 +1,8 @@ [run] branch = True -source = test -omit = test/tests/*,test/openstack/* +source = oslotest +omit = oslotest/tests/* [report] -ignore-errors = True \ No newline at end of file +ignore_errors = True +precision = 2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/AUTHORS new/oslotest-2.0.0/AUTHORS --- old/oslotest-1.10.0/AUTHORS 2015-08-03 19:21:15.000000000 +0200 +++ new/oslotest-2.0.0/AUTHORS 2015-11-23 21:59:43.000000000 +0100 @@ -5,6 +5,7 @@ Ben Nemec <bnemec@redhat.com> Brant Knudson <bknudson@us.ibm.com> Chang Bo Guo <guochbo@cn.ibm.com> +ChangBo Guo(gcb) <eric.guo@easystack.cn> Christian Berendt <berendt@b1-systems.de> Chuck Short <chuck.short@canonical.com> Davanum Srinivas <davanum@gmail.com> @@ -31,9 +32,11 @@ Monty Taylor <mordred@inaugust.com> Noorul Islam K M <noorul@noorul.com> Rajaram Mallya <rajarammallya@gmail.com> +Ronald Bradford <ronald.bradford@gmail.com> Sergey Kraynev <skraynev@mirantis.com> Soren Hansen <soren@linux2go.dk> Steve Martinelli <stevemar@ca.ibm.com> Victor Stinner <vstinner@redhat.com> Yuriy Taraday <yorik.sar@gmail.com> Zhongyue Luo <zhongyue.nah@intel.com> +venkatamahesh <venkatamaheshkotha@gmail.com> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/ChangeLog new/oslotest-2.0.0/ChangeLog --- old/oslotest-1.10.0/ChangeLog 2015-08-03 19:21:15.000000000 +0200 +++ new/oslotest-2.0.0/ChangeLog 2015-11-23 21:59:43.000000000 +0100 @@ -1,6 +1,34 @@ CHANGES ======= +2.0.0 +----- + +* Updated from global requirements +* Remove Python 2.6 classifier +* mockpatch: deprecate in favor of native fixtures +* Remove python 2.6 and cleanup tox.ini +* Updated from global requirements + +1.12.0 +------ + +* Fix coverage configuration and execution +* Updated from global requirements +* Add documentation about using oslo_debug_helper +* add oslo.config a test requirement +* clean up readme and doc title +* clean up toctree +* auto-generate API documentation +* Fix the home-page with Oslotest wikipage +* Fixup docstrings +* Updated from global requirements + +1.11.0 +------ + +* Updated from global requirements + 1.10.0 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/PKG-INFO new/oslotest-2.0.0/PKG-INFO --- old/oslotest-1.10.0/PKG-INFO 2015-08-03 19:21:15.000000000 +0200 +++ new/oslotest-2.0.0/PKG-INFO 2015-11-23 21:59:43.000000000 +0100 @@ -1,14 +1,14 @@ Metadata-Version: 1.1 Name: oslotest -Version: 1.10.0 +Version: 2.0.0 Summary: Oslo test framework -Home-page: http://launchpad.net/oslo +Home-page: http://wiki.openstack.org/wiki/Oslo#oslotest Author: OpenStack Author-email: openstack-dev@lists.openstack.org License: UNKNOWN -Description: ========== - oslotest - ========== +Description: ======================================================= + oslotest -- OpenStack Testing Framework and Utilities + ======================================================= The Oslo Test framework provides common fixtures, support for debugging, and better support for mocking results. @@ -28,6 +28,5 @@ Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 -Classifier: Programming Language :: Python :: 2.6 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.4 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/README.rst new/oslotest-2.0.0/README.rst --- old/oslotest-1.10.0/README.rst 2015-08-03 19:20:54.000000000 +0200 +++ new/oslotest-2.0.0/README.rst 2015-11-23 21:59:20.000000000 +0100 @@ -1,6 +1,6 @@ -========== - oslotest -========== +======================================================= + oslotest -- OpenStack Testing Framework and Utilities +======================================================= The Oslo Test framework provides common fixtures, support for debugging, and better support for mocking results. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/doc/source/api.rst new/oslotest-2.0.0/doc/source/api.rst --- old/oslotest-1.10.0/doc/source/api.rst 2015-08-03 19:20:54.000000000 +0200 +++ new/oslotest-2.0.0/doc/source/api.rst 1970-01-01 01:00:00.000000000 +0100 @@ -1,51 +0,0 @@ -===== - API -===== - -oslotest.base -============= - -.. automodule:: oslotest.base - -.. autoclass:: oslotest.base.BaseTestCase - :members: - -oslotest.createfile -=================== - -.. automodule:: oslotest.createfile - :members: - :special-members: - -oslotest.log -============ - -.. automodule:: oslotest.log - :members: - :special-members: - -oslotest.mockpatch -================== - -.. automodule:: oslotest.mockpatch - :members: - :special-members: - -oslotest.moxstubout -=================== - -.. automodule:: oslotest.moxstubout - :members: - -oslotest.output -=================== - -.. automodule:: oslotest.output - :members: - -oslotest.timeout -================ - -.. automodule:: oslotest.timeout - :members: - :special-members: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/doc/source/conf.py new/oslotest-2.0.0/doc/source/conf.py --- old/oslotest-1.10.0/doc/source/conf.py 2015-08-03 19:20:54.000000000 +0200 +++ new/oslotest-2.0.0/doc/source/conf.py 2015-11-23 21:59:20.000000000 +0100 @@ -29,6 +29,7 @@ # autodoc generation is a bit aggressive and a nuisance when doing heavy # text edit cycles. # execute "export SPHINX_DEBUG=1" in your terminal to disable +modindex_common_prefix = ['oslotest.'] # The suffix of source filenames. source_suffix = '.rst' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/doc/source/debugging.rst new/oslotest-2.0.0/doc/source/debugging.rst --- old/oslotest-1.10.0/doc/source/debugging.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/oslotest-2.0.0/doc/source/debugging.rst 2015-11-23 21:59:20.000000000 +0100 @@ -0,0 +1,29 @@ +================= + Debugging Tests +================= + +Running tests through testrepository_ makes it difficult to use pdb for +debugging them. oslotest includes ``oslo_debug_helper`` to make using +pdb simpler/possible. + +First, add a pdb call to the test code:: + + import pdb; pdb.set_trace() + +Then run the tests through ``oslo_debug_helper`` like + +:: + + $ oslo_debug_helper [tests to run] + +or + +:: + + $ tox -e venv -- oslo_debug_helper [tests to run] + +.. seealso:: + + * https://wiki.openstack.org/wiki/Testr + +.. _testrepository: https://pypi.python.org/pypi/testrepository diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/doc/source/index.rst new/oslotest-2.0.0/doc/source/index.rst --- old/oslotest-1.10.0/doc/source/index.rst 2015-08-03 19:20:54.000000000 +0200 +++ new/oslotest-2.0.0/doc/source/index.rst 2015-11-23 21:59:20.000000000 +0100 @@ -1,21 +1,32 @@ -Welcome to oslotest's documentation! -==================================== - -OpenStack test framework and test fixtures. - -Contents -======== +======================================================= + oslotest -- OpenStack Testing Framework and Utilities +======================================================= .. toctree:: :maxdepth: 2 installation - api testing features cross-testing + debugging resources contributing + +API +=== + +.. toctree:: + :maxdepth: 1 + + api/autoindex + +Release Notes +============= + +.. toctree:: + :maxdepth: 1 + history Indices and tables diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/oslotest/mockpatch.py new/oslotest-2.0.0/oslotest/mockpatch.py --- old/oslotest-1.10.0/oslotest/mockpatch.py 2015-08-03 19:20:54.000000000 +0200 +++ new/oslotest-2.0.0/oslotest/mockpatch.py 2015-11-23 21:59:20.000000000 +0100 @@ -15,10 +15,16 @@ # License for the specific language governing permissions and limitations # under the License. +from debtcollector import removals import fixtures from six.moves import mock +removals.removed_module("oslotest.mockpatch", replacement="fixtures", + version="1.13", removal_version="2.0", + message="Use fixtures.Mock* classes instead") + + class _Base(fixtures.Fixture): def setUp(self): super(_Base, self).setUp() @@ -28,11 +34,11 @@ class PatchObject(_Base): - """Deal with code around mock. + """Deal with code around :func:`mock.patch.object`. .. py:attribute:: mock - The mock. + The mock as returned by :func:`mock.patch.object`. """ @@ -42,11 +48,11 @@ class Patch(_Base): - """Deal with code around mock. + """Deal with code around :func:`mock.patch`. .. py:attribute:: mock - The mock. + The mock as returned by :func:`mock.patch`. """ @@ -56,12 +62,12 @@ class Multiple(_Base): - """Deal with code around mock.patch.multiple. + """Deal with code around :func:`mock.patch.multiple`. Pass name=value to replace obj.name with value. - Pass name= :py:attr:`Multiple.DEFAULT` to replace obj.name with a MagicMock - instance. + Pass name= :attr:`.DEFAULT` to replace obj.name with a + :class:`mock.MagicMock` instance. :param obj: Object or name containing values being mocked. :type obj: str or object @@ -69,12 +75,14 @@ .. py:attribute:: mock - The mock. + A :class:`dict`, where each key matches a kwarg parameter and the value + is the passed-in value or :class:`mock.MagicMock`. """ DEFAULT = mock.DEFAULT - """Triggers a MagicMock to be created for a named attribute.""" + """Triggers a :class:`mock.MagicMock` to be created for the named + attribute.""" def __init__(self, obj, **kwargs): super(Multiple, self).__init__() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/oslotest.egg-info/PKG-INFO new/oslotest-2.0.0/oslotest.egg-info/PKG-INFO --- old/oslotest-1.10.0/oslotest.egg-info/PKG-INFO 2015-08-03 19:21:15.000000000 +0200 +++ new/oslotest-2.0.0/oslotest.egg-info/PKG-INFO 2015-11-23 21:59:43.000000000 +0100 @@ -1,14 +1,14 @@ Metadata-Version: 1.1 Name: oslotest -Version: 1.10.0 +Version: 2.0.0 Summary: Oslo test framework -Home-page: http://launchpad.net/oslo +Home-page: http://wiki.openstack.org/wiki/Oslo#oslotest Author: OpenStack Author-email: openstack-dev@lists.openstack.org License: UNKNOWN -Description: ========== - oslotest - ========== +Description: ======================================================= + oslotest -- OpenStack Testing Framework and Utilities + ======================================================= The Oslo Test framework provides common fixtures, support for debugging, and better support for mocking results. @@ -28,6 +28,5 @@ Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 -Classifier: Programming Language :: Python :: 2.6 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.4 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/oslotest.egg-info/SOURCES.txt new/oslotest-2.0.0/oslotest.egg-info/SOURCES.txt --- old/oslotest-1.10.0/oslotest.egg-info/SOURCES.txt 2015-08-03 19:21:15.000000000 +0200 +++ new/oslotest-2.0.0/oslotest.egg-info/SOURCES.txt 2015-11-23 21:59:43.000000000 +0100 @@ -13,10 +13,10 @@ setup.py test-requirements.txt tox.ini -doc/source/api.rst doc/source/conf.py doc/source/contributing.rst doc/source/cross-testing.rst +doc/source/debugging.rst doc/source/features.rst doc/source/history.rst doc/source/index.rst diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/oslotest.egg-info/pbr.json new/oslotest-2.0.0/oslotest.egg-info/pbr.json --- old/oslotest-1.10.0/oslotest.egg-info/pbr.json 2015-08-03 19:21:15.000000000 +0200 +++ new/oslotest-2.0.0/oslotest.egg-info/pbr.json 2015-11-23 21:59:43.000000000 +0100 @@ -1 +1 @@ -{"git_version": "358f5b3", "is_release": true} \ No newline at end of file +{"is_release": true, "git_version": "4dbb9e2"} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/oslotest.egg-info/requires.txt new/oslotest-2.0.0/oslotest.egg-info/requires.txt --- old/oslotest-1.10.0/oslotest.egg-info/requires.txt 2015-08-03 19:21:15.000000000 +0200 +++ new/oslotest-2.0.0/oslotest.egg-info/requires.txt 2015-11-23 21:59:43.000000000 +0100 @@ -6,4 +6,5 @@ testtools>=1.4.0 mock>=1.2 mox3>=0.7.0 -os-client-config>=1.4.0 +os-client-config!=1.6.2,>=1.4.0 +debtcollector>=0.3.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/requirements.txt new/oslotest-2.0.0/requirements.txt --- old/oslotest-1.10.0/requirements.txt 2015-08-03 19:20:54.000000000 +0200 +++ new/oslotest-2.0.0/requirements.txt 2015-11-23 21:59:20.000000000 +0100 @@ -10,4 +10,5 @@ testtools>=1.4.0 mock>=1.2 mox3>=0.7.0 -os-client-config>=1.4.0 +os-client-config!=1.6.2,>=1.4.0 +debtcollector>=0.3.0 # Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/setup.cfg new/oslotest-2.0.0/setup.cfg --- old/oslotest-1.10.0/setup.cfg 2015-08-03 19:21:15.000000000 +0200 +++ new/oslotest-2.0.0/setup.cfg 2015-11-23 21:59:43.000000000 +0100 @@ -5,7 +5,7 @@ README.rst author = OpenStack author-email = openstack-dev@lists.openstack.org -home-page = http://launchpad.net/oslo +home-page = http://wiki.openstack.org/wiki/Oslo#oslotest classifier = Environment :: OpenStack Intended Audience :: Developers @@ -15,7 +15,6 @@ Programming Language :: Python Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 - Programming Language :: Python :: 2.6 Programming Language :: Python :: 3 Programming Language :: Python :: 3.4 @@ -37,12 +36,13 @@ [pbr] warnerrors = true +autodoc_index_modules = true [wheel] universal = true [egg_info] -tag_date = 0 tag_build = tag_svn_revision = 0 +tag_date = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/setup.py new/oslotest-2.0.0/setup.py --- old/oslotest-1.10.0/setup.py 2015-08-03 19:20:54.000000000 +0200 +++ new/oslotest-2.0.0/setup.py 2015-11-23 21:59:20.000000000 +0100 @@ -25,5 +25,5 @@ pass setuptools.setup( - setup_requires=['pbr>=1.3'], + setup_requires=['pbr>=1.8'], pbr=True) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/test-requirements.txt new/oslotest-2.0.0/test-requirements.txt --- old/oslotest-1.10.0/test-requirements.txt 2015-08-03 19:20:54.000000000 +0200 +++ new/oslotest-2.0.0/test-requirements.txt 2015-11-23 21:59:20.000000000 +0100 @@ -11,4 +11,5 @@ # this is required for the docs build jobs sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 -oslosphinx>=2.5.0 # Apache-2.0 +oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0 +oslo.config>=2.7.0 # Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslotest-1.10.0/tox.ini new/oslotest-2.0.0/tox.ini --- old/oslotest-1.10.0/tox.ini 2015-08-03 19:20:54.000000000 +0200 +++ new/oslotest-2.0.0/tox.ini 2015-11-23 21:59:20.000000000 +0100 @@ -1,12 +1,9 @@ [tox] distribute = False -envlist = py34,py26,py27,pep8 +envlist = py34,py27,pep8 [testenv] -install_command = pip install -U {opts} {packages} -setenv = VIRTUAL_ENV={envdir} -deps = -r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt +deps = -r{toxinidir}/test-requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}' [testenv:pep8] @@ -15,7 +12,7 @@ [testenv:cover] setenv = VIRTUAL_ENV={envdir} commands = - python setup.py testr --coverage + python setup.py test --coverage --testr-args='{posargs}' [testenv:venv] commands = {posargs}
participants (1)
-
root@hilbert.suse.de