]>
Commit | Line | Data |
---|---|---|
5398b741 JB |
1 | # TODO: system modules: cloudpickle, loky |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_with doc # Sphinx documentation (fails on missing examples???) | |
ce9dca61 | 5 | %bcond_without tests # unit tests (some memmapping tests fail under load) |
5398b741 JB |
6 | |
7 | Summary: Lightweight pipelining: using Python functions as pipeline jobs | |
8 | Summary(pl.UTF-8): Lekkie przetwarzanie potokowe przy użyciu funkcji pythonowych jako zadań | |
ce9dca61 JB |
9 | Name: python3-joblib |
10 | Version: 0.15.1 | |
8d50363c | 11 | Release: 3 |
5398b741 JB |
12 | License: BSD |
13 | Group: Libraries/Python | |
14 | #Source0Download: https://pypi.org/simple/joblib/ | |
15 | Source0: https://files.pythonhosted.org/packages/source/j/joblib/joblib-%{version}.tar.gz | |
ce9dca61 | 16 | # Source0-md5: 8760242e4719ca061aa7d5519a051e4b |
5398b741 | 17 | URL: https://pypi.org/project/joblib/ |
ce9dca61 | 18 | BuildRequires: python3-modules >= 1:3.6 |
5398b741 JB |
19 | BuildRequires: python3-setuptools |
20 | %if %{with tests} | |
21 | BuildRequires: python3-pytest | |
22 | BuildRequires: python3-threadpoolctl | |
23 | %endif | |
5398b741 JB |
24 | BuildRequires: rpm-pythonprov |
25 | BuildRequires: rpmbuild(macros) >= 1.714 | |
26 | %if %{with doc} | |
27 | BuildRequires: python3-numpydoc | |
ce9dca61 | 28 | BuildRequires: python3-pandas |
5398b741 JB |
29 | BuildRequires: python3-sphinx_gallery |
30 | BuildRequires: sphinx-pdg-3 | |
31 | %endif | |
3facbb2e | 32 | Requires: python3-modules >= 1:3.6 |
ce9dca61 | 33 | Conflicts: python3-numpy < 1:1.6.1 |
5398b741 JB |
34 | BuildArch: noarch |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | Joblib is a set of tools to provide lightweight pipelining in Python. | |
39 | In particular: | |
40 | - transparent disk-caching of functions and lazy re-evaluation | |
41 | (memoize pattern) | |
42 | - easy simple parallel computing | |
43 | ||
44 | Joblib is optimized to be fast and robust on large data in particular | |
45 | and has specific optimizations for numpy arrays. It is BSD-licensed. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | Joblib to zbiór narzędzi zapewniających lekkie przetwarzanie potokowe | |
49 | w Pythonie. W szczególności: | |
50 | - przezroczyste zapamiętywanie na dysku funkcji i leniwe ponowne | |
51 | wyliczanie (wzorzec memoize) | |
52 | - łatwe, proste przetwarzanie równoległe | |
53 | ||
54 | Biblioteka jest zoptymalizowana pod kątem szybkości i funkcjonalności, | |
55 | w szczególności na dużych zbiorach danych; ma wyspecjalizowane | |
56 | optymalizacje dla tablic numpy. Jest na licencji BSD. | |
57 | ||
5398b741 JB |
58 | %package apidocs |
59 | Summary: API documentation for Python joblib module | |
60 | Summary(pl.UTF-8): Dokumentacja API modułu Pythona joblib | |
61 | Group: Documentation | |
62 | ||
63 | %description apidocs | |
64 | API documentation for Python joblib module. | |
65 | ||
66 | %description apidocs -l pl.UTF-8 | |
67 | Dokumentacja API modułu Pythona joblib. | |
68 | ||
69 | %prep | |
70 | %setup -q -n joblib-%{version} | |
71 | ||
72 | %build | |
5398b741 JB |
73 | %py3_build |
74 | ||
75 | %if %{with tests} | |
ce9dca61 | 76 | %{__python3} -m pytest joblib |
5398b741 JB |
77 | %endif |
78 | ||
79 | %if %{with doc} | |
80 | PYTHONPATH=$(pwd) \ | |
81 | %{__make} -C doc html \ | |
82 | SPHINXBUILD=sphinx-build-3 | |
83 | %endif | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
5398b741 JB |
88 | %py3_install |
89 | ||
90 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/joblib/test | |
5398b741 JB |
91 | |
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
5398b741 JB |
95 | %files |
96 | %defattr(644,root,root,755) | |
ce9dca61 | 97 | %doc CHANGES.rst LICENSE.txt README.rst TODO.rst |
5398b741 JB |
98 | %{py3_sitescriptdir}/joblib |
99 | %{py3_sitescriptdir}/joblib-%{version}-py*.egg-info | |
5398b741 JB |
100 | |
101 | %if %{with doc} | |
102 | %files apidocs | |
103 | %defattr(644,root,root,755) | |
104 | %doc doc/_build/html/{_static,*.html,*.js} | |
105 | %endif |