diff --git a/python-testscenarios.changes b/python-testscenarios.changes index 53268e9..a07d732 100644 --- a/python-testscenarios.changes +++ b/python-testscenarios.changes @@ -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 diff --git a/python-testscenarios.spec b/python-testscenarios.spec index 718ae98..e990318 100644 --- a/python-testscenarios.spec +++ b/python-testscenarios.spec @@ -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 - %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 \ No newline at end of file +%changelog diff --git a/testscenarios-0.2.tar.bz2 b/testscenarios-0.2.tar.bz2 deleted file mode 100644 index 5d19d2b..0000000 --- a/testscenarios-0.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:33485531d6c67fd3491ca78c47a073be538a303bcaf8718cfdde42f8e5c3fdc7 -size 14779 diff --git a/testscenarios-0.3.tar.gz b/testscenarios-0.3.tar.gz new file mode 100644 index 0000000..b74d3f3 --- /dev/null +++ b/testscenarios-0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4774cc839323bb037f5ee71a7212682ee72402f8f88a6b1e1a9e3499e18700d +size 18507