Blame python-mne.spec

c980313
# setup.py does not list all requirements, and we also unbundle quite a few
c980313
# from the externals folder, so we can't only rely on the automatic generator
c980313
# here.
c980313
# Additionally, requirements.txt seems to be dev requirements, and is not used
c980313
# in setup.py for install_requires.
c980313
b202460
%global modname mne
b202460
b202460
Name:           python-%{modname}
69910f2
Version:        0.19.1
d25fb84
Release:        1%{?dist}
b202460
Summary:        Magnetoencephalography (MEG) and Electroencephalography (EEG) data analysis
b202460
b202460
# Bundled FieldTrip
b202460
# https://github.com/fieldtrip/fieldtrip/blob/master/realtime/src/buffer/python/FieldTrip.py
b202460
# Not possible to package because it is matlab package with some plugins
b202460
b202460
License:        BSD
b202460
URL:            http://martinos.org/mne/
b202460
Source0:        https://github.com/mne-tools/mne-python/archive/v%{version}/%{name}-%{version}.tar.gz
b202460
#Source1:        https://s3.amazonaws.com/mne-python/datasets/MNE-sample-data-processed.tar.gz
b202460
BuildArch:      noarch
b202460
b202460
%description
b202460
This package is designed for sensor- and source-space analysis of M-EEG data,
b202460
including frequency-domain and time-frequency analyses and non-parametric
b202460
statistics.
b202460
c980313
%{?python_enable_dependency_generator}
c980313
b202460
%package -n python3-%{modname}
b202460
Summary:        %{summary}
b202460
%{?python_provide:%python_provide python3-%{modname}}
b202460
Provides:       bundled(bootstrap)
b202460
Provides:       bundled(js-jquery)
b202460
Provides:       bundled(js-jquery-ui)
b202460
Provides:       bundled(js-d3)
b202460
Provides:       bundled(js-mpld3)
b202460
Provides:       bundled(python3-FieldTrip)
7e59b9e
BuildRequires:  python3-devel
7e59b9e
BuildRequires:  python3-setuptools
7e59b9e
BuildRequires:  python3-nose
b202460
BuildRequires:  python3-numpy
b202460
# Test deps
c980313
BuildRequires:  python3-pytest
b202460
BuildRequires:  python3-scipy
b202460
BuildRequires:  python3-matplotlib
7e59b9e
BuildRequires:  python3-decorator
7e59b9e
BuildRequires:  python3-h5io
7e59b9e
BuildRequires:  python3-jdcal
7e59b9e
BuildRequires:  python3-six
7e59b9e
BuildRequires:  python3-tempita
b202460
BuildRequires:  python3-scikit-learn
b202460
BuildRequires:  python3-patsy
b202460
BuildRequires:  python3-Traits
b202460
Requires:       python3-matplotlib
7e59b9e
Requires:       python3-decorator
7e59b9e
Requires:       python3-h5io
7e59b9e
Requires:       python3-jdcal
7e59b9e
Requires:       python3-six
7e59b9e
Requires:       python3-tempita
a2e354a
Requires:       python3-funcsigs
a2e354a
Requires:       python3-pymatreader
b202460
Recommends:     python3-scikit-learn
b202460
Recommends:     python3-pandas
b202460
Recommends:     python3-patsy
b202460
Recommends:     python3-pillow
b202460
Recommends:     python3-h5py
b202460
Recommends:     python3-statsmodels
b202460
Recommends:     python3-Traits
b202460
c980313
# Should be included by the dep generator as they're mentioned in setup.py
c980313
# Requires:       python3-numpy
c980313
# Requires:       python3-scipy
c980313
b202460
%description -n python3-%{modname}
b202460
This package is designed for sensor- and source-space analysis of M-EEG data,
b202460
including frequency-domain and time-frequency analyses and non-parametric
b202460
statistics.
b202460
b202460
Python 3 version.
b202460
b202460
%prep
feabee8
%autosetup -n %{modname}-python-%{version}
b202460
feabee8
pushd %{modname}/externals/
b202460
  # Remove bundled six, jdcal, decorator, tempita, h5io
b202460
  # Save bundled FieldTrip (can't find upstream)
c980313
  rm -rf six.py jdcal.py decorator.py funcsigs.py pymatreader tempita/ h5io/ doccer.py
b202460
  echo > __init__.py
c980313
  # Check that only {FieldTrip,__init__}.py remain
b202460
  [ $(find -maxdepth 1 -mindepth 1 | grep -v FieldTrip.py | grep -v __init__.py | wc -l) -eq 0 ] || exit 1
b202460
popd
a2e354a
# use all six/jdcal/decorator/h5io/funcsigs/pymatreader from system
feabee8
# fix API change for jdjcal/jcal2jd
feabee8
find -type f -name '*.py' -exec sed -i \
feabee8
  -e "s/from mne.externals.six/from six/" \
feabee8
  -e "s/from \.*externals.six/from six/" \
feabee8
  -e "s/from mne.externals import six/import six/" \
feabee8
  -e "s/from \.*externals import six/import six/" \
feabee8
  -e "s/from \.*externals.jdcal/from jdcal/" \
feabee8
  -e "s/from \.*externals.decorator/from decorator/" \
feabee8
  -e "s/from \.*externals.h5io/from h5io/" \
feabee8
  -e "s/from \.*externals.tempita/from tempita/" \
a2e354a
  -e "s/from \.*externals.funcsigs/from funcsigs/" \
a2e354a
  -e "s/from \.*externals.pymatreader/from pymatreader/" \
c980313
  -e "s/from \.*externals.doccer/from scipy.misc.doccer/" \
feabee8
  -e "s/jd2jcal(\(.*\))/jd2jcal(\1, 0)[:-1]/" \
feabee8
  -e "s/(jcal2jd(\(.*\)))/(jcal2jd(\1)[-1])/" \
feabee8
  {} ';'
feabee8
sed -i -e "/mne\.externals\.[^']*/d" setup.py
feabee8
feabee8
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{modname}/commands/*.py
feabee8
sed -i -e '1s|^#!.*$|#!%{__python3}|' bin/%{modname}
b202460
b202460
#cp -p %{SOURCE1} .
b202460
#python -c "import mne; mne.datasets.sample.data_path(verbose=True, download=False)"
b202460
b202460
%build
feabee8
%py3_build
b202460
b202460
%install
feabee8
%py3_install
b202460
b202460
%check
b202460
export MNE_SKIP_TESTING_DATASET_TESTS=true
b202460
export MNE_SKIP_NETWORK_TESTS=1
3d4711d
# In koji it is timing out
3d4711d
%global to_skip test_spectral_connectivity
feabee8
nosetests-%{python3_version} -v %{?to_skip:-e %{to_skip}} || :
b202460
b202460
%files -n python3-%{modname}
feabee8
%license LICENSE.txt
c980313
%doc README.rst examples
b202460
%{_bindir}/%{modname}
b202460
%{python3_sitelib}/%{modname}/
7e59b9e
%{python3_sitelib}/%{modname}-*.egg-info/
b202460
b202460
%changelog
69910f2
* Mon Nov 11 2019 Aniket Pradhan <major AT fedoraproject DOT org> - 0.19.1-1
69910f2
- Update to v0.19.1
69910f2
d25fb84
* Thu Oct 10 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.19.0-1
d25fb84
- Update to new upstream release
d25fb84
29bb5be
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.18.1-3
29bb5be
- Rebuilt for Python 3.8
29bb5be
049f4c3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.1-2
049f4c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
049f4c3
c980313
* Tue May 28 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.18.1-1
c980313
- Update to 0.18.1 (rbhz 1695469)
c980313
- Use dep generator
c980313
- Remove bundled doccer
c980313
- Remove missing AUTHORS file
c980313
Manas Mangaonkar 11c0534
* Fri Feb 22 2019 Manas Mangaonkar <pac23 AT fedoraproject DOT org> - 0.17.1-1
Manas Mangaonkar 11c0534
- Update to latest release
Manas Mangaonkar 11c0534
d194d60
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-2
d194d60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d194d60
a2e354a
* Tue Nov 20 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.17-1
a2e354a
- Update to latest release
a2e354a
- Use system funcsigs and pymatreader
a2e354a
828c22a
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.13.1-9
828c22a
- Subpackage python2-mne has been removed
828c22a
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
828c22a
a395230
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-8
a395230
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a395230
8f8765f
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13.1-7
8f8765f
- Rebuilt for Python 3.7
8f8765f
1a6d561
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-6
1a6d561
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1a6d561
99cde2c
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.13.1-5
99cde2c
- Update Python 2 dependency declarations to new packaging standards
99cde2c
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
99cde2c
c2a11a4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-4
c2a11a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c2a11a4
0c0de40
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-3
0c0de40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0c0de40
6114011
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.13.1-2
6114011
- Rebuild for Python 3.6
6114011
7e59b9e
* Tue Nov 29 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.13.1-1
7e59b9e
- Update to 0.13.1
7e59b9e
Dominik 'Rathann' Mierzejewski 49542ad
* Mon Sep 26 2016 Dominik Mierzejewski <rpm@greysector.net> - 0.10-8
Dominik 'Rathann' Mierzejewski 49542ad
- rebuilt for matplotlib-2.0.0
Dominik 'Rathann' Mierzejewski 49542ad
a431e29
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-7
a431e29
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
a431e29
e7f3740
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-6
e7f3740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e7f3740
f7645b8
* Sun Nov 29 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.10-5
f7645b8
- Rebuild for fixed scipy
f7645b8
b202460
* Wed Nov 11 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.10-4
b202460
- Fix non-executable-script
b202460
b202460
* Mon Nov 09 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.10-3
b202460
- Fix unbundling jdcal
b202460
b202460
* Sun Nov 08 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.10-2
b202460
- /usr/bin/mne uses python3
b202460
- fix dependencies around Traits (add py3 version)
b202460
- unbundle jdcal/six/decorator/tempita/h5io
b202460
- add Provides: bundled(pythonX-FieldTrip)
b202460
- More better Summary
b202460
b202460
* Fri Oct 30 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.10-1
b202460
- Initial package