forked from pool/python-testscenarios
- 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:
@@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 6 21:18:20 UTC 2012 - jfunk@funktronics.ca
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Apr 16 18:56:49 UTC 2011 - jfunk@funktronics.ca
|
Sat Apr 16 18:56:49 UTC 2011 - jfunk@funktronics.ca
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-testscenarios
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -15,19 +15,14 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# 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()")}
|
Name: python-testscenarios
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
Version: 0.3
|
||||||
|
|
||||||
%define mod_name testscenarios
|
|
||||||
|
|
||||||
Name: python-%{mod_name}
|
|
||||||
Version: 0.2
|
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: https://launchpad.net/testscenarios
|
Url: https://launchpad.net/testscenarios
|
||||||
Summary: Testscenarios, a pyunit Extension for Dependency Injection
|
Summary: Testscenarios, a pyunit extension for dependency injection
|
||||||
License: Apache 2.0/BSD
|
License: Apache-2.0 or BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
@@ -36,6 +31,8 @@ BuildRequires: python-devel
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
%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
|
%description
|
||||||
testscenarios provides clean dependency injection for python unittest style
|
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
|
dependencies externally to the test code itself, allowing easy testing in
|
||||||
different situations).
|
different situations).
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Robert Collins <robertc@robertcollins.net>
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{mod_name}-%{version}
|
%setup -q -n testscenarios-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
CFLAGS="%{optflags}" python setup.py build
|
||||||
python setup.py build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc doc Apache-2.0 BSD COPYING GOALS HACKING NEWS README
|
%doc doc Apache-2.0 BSD COPYING GOALS HACKING NEWS README
|
||||||
%python_sitelib/%{mod_name}*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:33485531d6c67fd3491ca78c47a073be538a303bcaf8718cfdde42f8e5c3fdc7
|
|
||||||
size 14779
|
|
3
testscenarios-0.3.tar.gz
Normal file
3
testscenarios-0.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c4774cc839323bb037f5ee71a7212682ee72402f8f88a6b1e1a9e3499e18700d
|
||||||
|
size 18507
|
Reference in New Issue
Block a user