[python-joblib] Import new package python-joblib

Sergio Pascual sergiopr at fedoraproject.org
Wed Aug 28 14:13:22 UTC 2013


commit 8c899b69445ffe4d62e1bf6d8f42c9b3b70293fd
Author: Sergio Pascual <sergiopr at fis.ucm.es>
Date:   Wed Aug 28 16:12:14 2013 +0200

    Import new package python-joblib

 .gitignore         |    1 +
 python-joblib.spec |  110 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 112 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..05df540 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/joblib-0.7.1.tar.gz
diff --git a/python-joblib.spec b/python-joblib.spec
new file mode 100644
index 0000000..0c8cf3d
--- /dev/null
+++ b/python-joblib.spec
@@ -0,0 +1,110 @@
+%global upname joblib
+%global with_python3 1
+
+Name: python-%{upname}
+Version: 0.7.1
+Release: 2%{?dist}
+Summary: Lightweight pipelining: using Python functions as pipeline jobs
+License: BSD
+
+Group: Development/Libraries
+URL: http://pythonhosted.org/joblib
+Source0: https://pypi.python.org/packages/source/j/joblib/joblib-%{version}.tar.gz
+BuildArch: noarch
+BuildRequires: python2-devel python-nose python-sphinx
+# Required by doctests
+BuildRequires: numpy 
+BuildRequires: python-setuptools
+Requires: numpy
+
+%description
+Joblib is a set of tools to provide lightweight pipelining in Python. 
+In particular, joblib offers:
+ * transparent disk-caching of the output values and lazy
+   re-evaluation (memoize pattern)
+ * easy simple parallel computing
+ * logging and tracing of the execution
+
+%if 0%{?with_python3}
+%package -n python3-joblib
+Summary: Lightweight pipelining: using Python functions as pipeline jobs
+BuildRequires: python3-devel python3-nose
+# Required by doctests
+BuildRequires: python3-numpy 
+BuildRequires: python3-setuptools
+Requires: python3-numpy
+
+%description -n python3-joblib
+Joblib is a set of tools to provide lightweight pipelining in Python. 
+In particular, joblib offers:
+ * transparent disk-caching of the output values and lazy
+   re-evaluation (memoize pattern)
+ * easy simple parallel computing
+ * logging and tracing of the execution
+%endif # with_python3
+
+%prep
+%setup -n %{upname}-%{version} -q
+rm -rf %{upname}.egg-info
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+%endif # with_python3
+
+find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
+
+%build
+%{__python} setup.py build
+%{__python} setup.py build_sphinx
+rm -f build/sphinx/html/.buildinfo
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+# The doc system not compatible with python3
+popd
+%endif # with_python3
+
+%check
+nosetests
+%if 0%{?with_python3}
+pushd %{py3dir}
+nosetests-3.3
+popd
+%endif # with_python3
+
+%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root  %{buildroot}
+popd
+%endif # with_python3
+
+%{__python} setup.py install --skip-build --root  %{buildroot}
+ 
+%files
+%doc build/sphinx/html
+%{python_sitelib}/%{upname}
+%{python_sitelib}/%{upname}-%{version}-py2.7.egg-info
+
+%if 0%{?with_python3}
+%files -n python3-%{upname}
+%doc build/sphinx/html
+%{python3_sitelib}/%{upname}
+%{python3_sitelib}/%{upname}-%{version}-py3.3.egg-info
+%endif # with_python3
+
+
+%changelog
+* Sun Aug 25 2013 Sergio Pascual <sergiopr at fedoraproject.org> - 0.7.1-2
+- Removing upstream egg
+- Adding BR python(3)-setuptools
+
+* Sat Aug 24 2013 Sergio Pascual <sergiopr at fedoraproject.org> - 0.7.1-1
+- New upstream version (0.7.1)
+
+* Thu Jul 4 2013 Sergio Pascual <sergiopr at fedoraproject.org> - 0.7.0d-1
+- Adding index.rst before importing
+
diff --git a/sources b/sources
index e69de29..adf1965 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fc650f33c07cfd039c4473850c94e48a  joblib-0.7.1.tar.gz


More information about the scm-commits mailing list