From 9283da4cdce7997c1565d1a90d66c4d3016b19781d192a27a2338c49d67e84bf Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Fri, 1 Sep 2017 14:30:05 +0000 Subject: [PATCH] Accepting request 520034 from devel:languages:python:singlespec-staging - Update to version 2.1.0: * no changelog available - singlespec auto-conversion - update to version 1.12.0: * no changelog available - remove python-xml from requirement - add new dependency python-six - add new dependency python-unittest2 for SLE11 - remove sed call on testsuite.py: not needed anymore - remove LICENSE and README.markdown: not provided anymore - Update to version 1.7.0 + No changelog available - Require python-setuptools instead of distribute (upstreams merged) - Initial python3 support - Update to 1.4.3 version: * fix indentation problem - Update to 1.4 version: * Refactor Django test runner to clean up imports * Allow bool values in TEST_OUTPUT_VERBOSE for backwards-compatibility * Fix Django test runner for renamed XMLTestRunner constructor parameter * Fixed syntax error on classifiers section. * Added support for Python 3. * Renamed constructor parameter to make it compatible with the one used in unittest.TextTestRunner. - Added requirement for python-xml - Initial version OBS-URL: https://build.opensuse.org/request/show/520034 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-unittest-xml-reporting?expand=0&rev=13 --- python-unittest-xml-reporting.changes | 12 +++++++++ python-unittest-xml-reporting.spec | 35 +++++++++++++-------------- unittest-xml-reporting-1.12.0.tar.gz | 3 --- unittest-xml-reporting-2.1.0.tar.gz | 3 +++ 4 files changed, 32 insertions(+), 21 deletions(-) delete mode 100644 unittest-xml-reporting-1.12.0.tar.gz create mode 100644 unittest-xml-reporting-2.1.0.tar.gz diff --git a/python-unittest-xml-reporting.changes b/python-unittest-xml-reporting.changes index 6a25bfe..493bd45 100644 --- a/python-unittest-xml-reporting.changes +++ b/python-unittest-xml-reporting.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Aug 31 21:26:38 UTC 2017 - toddrme2178@gmail.com + +- Update to version 2.1.0: + * no changelog available + +------------------------------------------------------------------- +Thu Aug 24 13:56:41 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Thu May 14 12:06:39 UTC 2015 - benoit.monin@gmx.fr @@ -49,3 +60,4 @@ Thu Sep 8 09:10:24 UTC 2011 - saschpe@suse.de - Initial version + diff --git a/python-unittest-xml-reporting.spec b/python-unittest-xml-reporting.spec index 72cf102..864c2d4 100644 --- a/python-unittest-xml-reporting.spec +++ b/python-unittest-xml-reporting.spec @@ -1,7 +1,7 @@ # # spec file for package python-unittest-xml-reporting # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -16,26 +16,23 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_with test Name: python-unittest-xml-reporting -Version: 1.12.0 +Version: 2.1.0 Release: 0 -Url: http://github.com/danielfm/unittest-xml-reporting/tree/master/ Summary: PyUnit-based test runner with JUnit like XML reporting License: LGPL-3.0+ Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/u/unittest-xml-reporting/unittest-xml-reporting-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-six >= 1.4.0 +Url: http://github.com/danielfm/unittest-xml-reporting/tree/master/ +Source: https://files.pythonhosted.org/packages/source/u/unittest-xml-reporting/unittest-xml-reporting-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six >= 1.4.0} +BuildRequires: python-rpm-macros Requires: python-six >= 1.4.0 -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -BuildRequires: python-unittest2 -Requires: python-unittest2 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description unittest-xml-reporting is a unittest test runner that can save test results @@ -46,15 +43,17 @@ systems, IDEs and continuous integration servers. %setup -q -n unittest-xml-reporting-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%if %{with test} %check -python setup.py -q test +%python_exec setup.py test +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %{python_sitelib}/* diff --git a/unittest-xml-reporting-1.12.0.tar.gz b/unittest-xml-reporting-1.12.0.tar.gz deleted file mode 100644 index 8971413..0000000 --- a/unittest-xml-reporting-1.12.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b882a07b25392ad7c88c479944f01bbd09ca27b5ec831c71518abce6904b6fee -size 12904 diff --git a/unittest-xml-reporting-2.1.0.tar.gz b/unittest-xml-reporting-2.1.0.tar.gz new file mode 100644 index 0000000..d09688c --- /dev/null +++ b/unittest-xml-reporting-2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a6d3474bb86331152a798cf6d6d28c3ccee2a09c31ccbe30dbb061bf38ce60b +size 10450