|
 |
9f8af7d |
# Note: package is python 3 only
|
|
 |
9f8af7d |
%global srcname pyphi
|
|
 |
9f8af7d |
|
|
 |
7859f33 |
%bcond_without tests
|
|
 |
9f8af7d |
|
|
 |
5145ea6 |
%global _description %{expand:
|
|
 |
9f8af7d |
PyPhi is a Python library for computing integrated information, and the
|
|
 |
9f8af7d |
associated quantities and objects.
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
If you use this code, please cite the manuscript:
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
Mayner WGP, Marshall W, Albantakis L, Findlay G, Marchman R, Tononi G (2017).
|
|
 |
9f8af7d |
PyPhi: A toolbox for integrated information. arXiv:1712.09644 [q-bio.NC].
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
The manuscript is available at https://arxiv.org/abs/1712.09644.}
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
%{?python_enable_dependency_generator}
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
Name: python-%{srcname}
|
|
 |
5145ea6 |
Version: 1.2.0
|
|
 |
adc496f |
Release: 9%{?dist}
|
|
 |
9f8af7d |
Summary: A library for computing integrated information
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
License: GPLv3
|
|
 |
5145ea6 |
URL: %{pypi_url}
|
|
 |
9f8af7d |
Source0: https://github.com/wmayner/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
 |
9f8af7d |
BuildArch: noarch
|
|
 |
9f8af7d |
|
|
 |
5145ea6 |
%description %_description
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
%package -n python3-%{srcname}
|
|
 |
9f8af7d |
Summary: %{summary}
|
|
 |
3db0a05 |
BuildRequires: make
|
|
 |
9f8af7d |
BuildRequires: python3-devel
|
|
 |
9f8af7d |
# To build docs, and run tests
|
|
 |
5145ea6 |
BuildRequires: %{py3_dist asv}
|
|
 |
5145ea6 |
BuildRequires: %{py3_dist decorator}
|
|
 |
5145ea6 |
BuildRequires: %{py3_dist joblib}
|
|
 |
9f8af7d |
BuildRequires: %{py3_dist numpy}
|
|
 |
5145ea6 |
BuildRequires: %{py3_dist psutil}
|
|
 |
5145ea6 |
BuildRequires: %{py3_dist pyemd}
|
|
 |
5145ea6 |
BuildRequires: %{py3_dist pymongo}
|
|
 |
9f8af7d |
BuildRequires: %{py3_dist pytest}
|
|
 |
7859f33 |
BuildRequires: %{py3_dist pytest-lazy-fixture}
|
|
 |
9f8af7d |
BuildRequires: %{py3_dist pyyaml}
|
|
 |
9f8af7d |
BuildRequires: %{py3_dist redis}
|
|
 |
5145ea6 |
BuildRequires: %{py3_dist scipy}
|
|
 |
5145ea6 |
BuildRequires: %{py3_dist sphinx}
|
|
 |
5145ea6 |
BuildRequires: %{py3_dist sphinx_rtd_theme}
|
|
 |
5145ea6 |
BuildRequires: %{py3_dist setuptools}
|
|
 |
9f8af7d |
BuildRequires: %{py3_dist tblib}
|
|
 |
9f8af7d |
BuildRequires: %{py3_dist tqdm}
|
|
 |
5145ea6 |
BuildRequires: %{py3_dist wheel}
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
 |
9f8af7d |
|
|
 |
5145ea6 |
%description -n python3-%{srcname} %_description
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
%package doc
|
|
 |
9f8af7d |
Summary: %{summary}
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
%description doc
|
|
 |
5145ea6 |
Documentation for %{name}
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
%prep
|
|
 |
9f8af7d |
%autosetup -n %{srcname}-%{version}
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
# sphinx 1.3+, it's an extension
|
|
 |
9f8af7d |
# Also sent upstream: https://github.com/wmayner/pyphi/pull/22
|
|
 |
9f8af7d |
sed -i "s/sphinxcontrib.napoleon/sphinx.ext.napoleon/" docs/conf.py
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
find pyphi -name "*.py" -exec sed -i '/#!\/usr\/bin\/env python3/ d' '{}' \;
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
%build
|
|
 |
9f8af7d |
%py3_build
|
|
 |
9f8af7d |
|
|
 |
5145ea6 |
make -C docs SPHINXBUILD=sphinx-build-3 html
|
|
 |
5145ea6 |
rm docs/_build/html/{.doctrees,.buildinfo} -vf
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
%install
|
|
 |
9f8af7d |
%py3_install
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
%check
|
|
 |
9f8af7d |
%if %{with tests}
|
|
 |
0278b44 |
# Tests fails on s390x: https://github.com/wmayner/pyphi/issues/41
|
|
 |
0278b44 |
%ifnarch s390x
|
|
 |
9f8af7d |
py.test-%{python3_version}
|
|
 |
9f8af7d |
%endif
|
|
 |
0278b44 |
%endif
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
%files -n python3-%{srcname}
|
|
 |
9f8af7d |
%license LICENSE.md
|
|
 |
9f8af7d |
%doc README.md CHANGELOG.md CACHING.rst redis.conf
|
|
 |
9f8af7d |
%{python3_sitelib}/%{srcname}
|
|
 |
ec88ba5 |
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
%files doc
|
|
 |
9f8af7d |
%license LICENSE.md
|
|
 |
9f8af7d |
%doc docs/_build/html/
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
%changelog
|
|
 |
adc496f |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-9
|
|
 |
adc496f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
adc496f |
|
|
 |
02118c1 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-8
|
|
 |
02118c1 |
- Second attempt - Rebuilt for
|
|
 |
02118c1 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
02118c1 |
|
|
 |
c60f216 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-7
|
|
 |
c60f216 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
c60f216 |
|
|
 |
dadee14 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-6
|
|
 |
dadee14 |
- Rebuilt for Python 3.9
|
|
 |
dadee14 |
|
|
 |
207dbdf |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5
|
|
 |
207dbdf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
207dbdf |
|
|
 |
6afdaf2 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-4
|
|
 |
6afdaf2 |
- Rebuilt for Python 3.8
|
|
 |
6afdaf2 |
|
|
 |
87ab514 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
|
|
 |
87ab514 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
87ab514 |
|
|
 |
7859f33 |
* Fri Jul 12 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.2.0-2
|
|
 |
7859f33 |
- Enable tests
|
|
 |
7859f33 |
|
|
 |
5145ea6 |
* Sat Jun 22 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.2.0-1
|
|
 |
5145ea6 |
- Update to 1.2.0
|
|
 |
5145ea6 |
|
|
 |
837d86d |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
|
 |
837d86d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
 |
837d86d |
|
|
 |
9f8af7d |
* Mon Nov 19 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.1.0-2
|
|
 |
9f8af7d |
- Update license
|
|
 |
9f8af7d |
- Fix doc generation
|
|
 |
9f8af7d |
- Correct rpmlint errors
|
|
 |
9f8af7d |
|
|
 |
9f8af7d |
* Wed Nov 14 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.1.0-1
|
|
 |
9f8af7d |
- Initial rpm build
|