From 1e7b27e0380b7d703a17798b2eb596d5442e301d Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Wed, 29 May 2013 08:02:06 +0200 Subject: initial import --- .gitignore | 1 + python-testscenarios.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 51 insertions(+) create mode 100644 python-testscenarios.spec diff --git a/.gitignore b/.gitignore index e69de29..17ed1ed 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/testscenarios-0.4.tar.gz diff --git a/python-testscenarios.spec b/python-testscenarios.spec new file mode 100644 index 0000000..3e0b433 --- /dev/null +++ b/python-testscenarios.spec @@ -0,0 +1,49 @@ +%global pypi_name testscenarios + +Name: python-%{pypi_name} +Version: 0.4 +Release: 2%{?dist} +Summary: Testscenarios, a pyunit extension for dependency injection + +License: ASL 2.0 and BSD +URL: https://launchpad.net/testscenarios +Source0: http://pypi.python.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python-setuptools +Requires: python-testtools + +%description +testscenarios provides clean dependency injection for python unittest style +tests. This can be used for interface testing (testing many implementations via +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). + +%prep +%setup -q -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + + +%build +%{__python} setup.py build + + +%install +%{__python} setup.py install --skip-build --root %{buildroot} + + +%files +%doc Apache-2.0 BSD GOALS HACKING NEWS README doc/ +%{python_sitelib}/%{pypi_name} +%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + +%changelog +* Tue May 21 2013 Matthias Runge - 0.4-2 +- correct License: ASL 2.0 and BSD +- include doc files + +* Fri May 17 2013 Matthias Runge - 0.4-1 +- Initial package. diff --git a/sources b/sources index e69de29..45a1a67 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +433cb8cd4d444b0deded3787240ee586 testscenarios-0.4.tar.gz -- cgit