[python-django-discover-runner/f18] initial import

Matthias Runge mrunge at fedoraproject.org
Tue Feb 12 07:50:37 UTC 2013


commit 186a0f9af753f295294dae038875b4fd8df1ec18
Author: Matthias Runge <mrunge at redhat.com>
Date:   Tue Feb 12 08:50:22 2013 +0100

    initial import

 .gitignore                                |    1 +
 python-django-discover-runner-license.txt |   27 ++++++++++++++
 python-django-discover-runner.spec        |   55 +++++++++++++++++++++++++++++
 sources                                   |    1 +
 4 files changed, 84 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8dce3fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-discover-runner-0.3.tar.gz
diff --git a/python-django-discover-runner-license.txt b/python-django-discover-runner-license.txt
new file mode 100644
index 0000000..e934dc3
--- /dev/null
+++ b/python-django-discover-runner-license.txt
@@ -0,0 +1,27 @@
+Copyright (c) 2011-2013, The django-discover-runner authors
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above
+      copyright notice, this list of conditions and the following
+      disclaimer in the documentation and/or other materials provided
+      with the distribution.
+    * None of the authors names may be used to endorse or promote products
+      derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/python-django-discover-runner.spec b/python-django-discover-runner.spec
new file mode 100644
index 0000000..8a6dfc3
--- /dev/null
+++ b/python-django-discover-runner.spec
@@ -0,0 +1,55 @@
+%global pypi_name django-discover-runner
+
+Name:           python-%{pypi_name}
+Version:        0.3
+Release:        2%{?dist}
+Summary:        A Django test runner based on unittest2's test discovery
+
+License:        BSD
+URL:            http://pypi.python.org/pypi/django-discover-runner/0.3
+Source0:        http://pypi.python.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+
+# license file is not included
+# https://github.com/jezdez/django-discover-runner/issues/6
+# wget -O python-django-discover-runner-license.txt https://raw.github.com/jezdez/django-discover-runner/master/LICENSE
+Source1:        python-django-discover-runner-license.txt
+BuildArch:      noarch
+ 
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+Requires:       python-unittest2
+
+
+%description
+An alternative Django TEST_RUNNER which uses the unittest2 test discovery
+from a base path specified in the settings, or any other module or package
+specified to the test management command -- including app tests.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+# copy license file to sources as well.
+cp -a %{SOURCE1} .
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+
+%files
+%doc README.rst python-django-discover-runner-license.txt
+%{python_sitelib}/discover_runner
+%{python_sitelib}/django_discover_runner-%{version}-py?.?.egg-info
+
+%changelog
+* Fri Feb 08 2013 Matthias Runge <mrunge at redhat.com> - 0.3-2
+- include license from upstream
+
+* Wed Feb 06 2013 Matthias Runge <mrunge at redhat.com> - 0.3-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..7717c91 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d76d6a683c833ff70d0fc068a0539804  django-discover-runner-0.3.tar.gz


More information about the scm-commits mailing list