14
0

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
This commit is contained in:
Jan Matejek
2017-09-01 14:30:05 +00:00
committed by Git OBS Bridge
parent db2e1eb797
commit 9283da4cdc
4 changed files with 32 additions and 21 deletions

View File

@@ -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}/*