Dirk Mueller
2eba9bf66a
update to version 1.1.0 * Note explicit support for Python 3.5 * Catch ImportErrors and improve coverage metrics * Document the YAML support * Refactor error functions in process_file_data * Bump version to 1.1.0 * Add basic support for YAML data files * Bump version to 1.0.2 * Bump version number * Properly handle file object * Fix the no-YAML installed test * Fix Flake8 warnings * Add more tests for YAML data files * Split process_file_data into 2 functions * Remove broken badge 'caniusepython3' * Variable naming changes * Flake8: make lambda into 'def' function * Unconditionally use PyPI mock * Fix copy-paste error * Fix unittest with object instance as data * Add mock to test requirements * Add PyYAML as a test dependency * RTD build trigger to use project name * Load the YAML data safely - Use pypi.io as Source url OBS-URL: https://build.opensuse.org/request/show/424119 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ddt?expand=0&rev=10
56 lines
1.6 KiB
RPMSpec
56 lines
1.6 KiB
RPMSpec
#
|
|
# spec file for package python-ddt
|
|
#
|
|
# 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: python-ddt
|
|
Version: 1.1.0
|
|
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
|
|
|
|
%description
|
|
A library to multiply test cases
|
|
|
|
%prep
|
|
%setup -q -n ddt-%{version}
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%check
|
|
python setup.py test
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|