summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Runge <mrunge@redhat.com>2013-05-29 08:02:06 +0200
committerMatthias Runge <mrunge@redhat.com>2013-05-29 08:02:06 +0200
commit1e7b27e0380b7d703a17798b2eb596d5442e301d (patch)
treec5847a0041546554d9a846bb8c2840ab169f4727
parentdcd439c9cad62a47a66c8d70a4066999ae152b5a (diff)
downloadpython-testscenarios-1e7b27e0380b7d703a17798b2eb596d5442e301d.tar.gz
python-testscenarios-1e7b27e0380b7d703a17798b2eb596d5442e301d.tar.xz
python-testscenarios-1e7b27e0380b7d703a17798b2eb596d5442e301d.zip
initial import
-rw-r--r--.gitignore1
-rw-r--r--python-testscenarios.spec49
-rw-r--r--sources1
3 files changed, 51 insertions, 0 deletions
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 <mrunge@redhat.com> - 0.4-2
+- correct License: ASL 2.0 and BSD
+- include doc files
+
+* Fri May 17 2013 Matthias Runge <mrunge@redhat.com> - 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