14
0

- Update to 0.3:

* New function per_module_scenarios for tests that should be applied across
    multiple modules providing the same interface, some of which may not be
    available at run time. (Martin Pool)
  * TestWithScenarios is now backed by a mixin - WithScenarios - which can be
    mixed into different unittest implementations more cleanly (e.g.
    unittest2). (James Polley, Robert Collins)
- Recreate spec with current conventions

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testscenarios?expand=0&rev=2
This commit is contained in:
2012-04-06 21:23:03 +00:00
committed by Git OBS Bridge
parent fd6ff379ad
commit c44d7369ab
4 changed files with 27 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-testscenarios
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,19 +15,14 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define mod_name testscenarios
Name: python-%{mod_name}
Version: 0.2
Name: python-testscenarios
Version: 0.3
Release: 0
Url: https://launchpad.net/testscenarios
Summary: Testscenarios, a pyunit Extension for Dependency Injection
License: Apache 2.0/BSD
Summary: Testscenarios, a pyunit extension for dependency injection
License: Apache-2.0 or BSD-3-Clause
Group: Development/Languages/Python
Source: %{mod_name}-%{version}.tar.bz2
Source: http://pypi.python.org/packages/source/t/testscenarios/testscenarios-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
%if 0%{?suse_version}
@@ -36,6 +31,8 @@ BuildRequires: python-devel
BuildArch: noarch
%endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%description
testscenarios provides clean dependency injection for python unittest style
@@ -44,26 +41,18 @@ a single test suite) or for classic dependency injection (provide tests with
dependencies externally to the test code itself, allowing easy testing in
different situations).
Authors:
--------
Robert Collins <robertc@robertcollins.net>
%prep
%setup -q -n %{mod_name}-%{version}
%setup -q -n testscenarios-%{version}
%build
export CFLAGS="%{optflags}"
python setup.py build
CFLAGS="%{optflags}" python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc doc Apache-2.0 BSD COPYING GOALS HACKING NEWS README
%python_sitelib/%{mod_name}*
%{python_sitelib}/*
%changelog
%changelog