Accepting request 514463 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/514463
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ddt?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2017-08-24 16:45:02 +00:00 committed by Git OBS Bridge
commit c7dec0cc05
4 changed files with 33 additions and 19 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1ab0d77e5ecfae9a2b4244dd8079d8e248a69eae0260238516c260ac5e2bd007
size 6155

3
ddt-1.1.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d6dc0fc0ec23c369090456ceaaf8baa43df8171a6906c44e52909edce78c00b0
size 10021

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Aug 2 10:16:07 UTC 2017 - sebix+novell.com@sebix.at
- update to 1.1.1
* Add `@idata(iterable)` decorator-function. (#40)
* Set __wrapped__ for Python 2 (#45)
* Include more files in generated tarballs (#43)
- convert to singlespec
-------------------------------------------------------------------
Thu Sep 1 05:23:40 UTC 2016 - tbechtold@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-ddt
#
# Copyright (c) 2016 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,40 +16,45 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-ddt
Version: 1.1.0
Version: 1.1.1
Release: 0
Summary: Data-Driven/Decorated Tests
License: MIT
Group: Development/Languages/Python
Url: https://github.com/txels/ddt
Source: https://pypi.io/packages/source/d/ddt/ddt-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
Source: https://files.pythonhosted.org/packages/source/d/ddt/ddt-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
# /SECTION
%python_subpackages
%description
A library to multiply test cases
A library to multiply test cases.
%prep
%setup -q -n ddt-%{version}
%build
python setup.py build
%{python_build}
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%{python_install}
%check
python setup.py test
%{python_exec setup.py test}
%files
%files %{python_files}
%defattr(-,root,root,-)
%{python_sitelib}/*
%doc *.md
%changelog