summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-eeglabio.spec260
-rw-r--r--sources1
3 files changed, 262 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f6a5179 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/eeglabio-0.0.2.post3.tar.gz
diff --git a/python-eeglabio.spec b/python-eeglabio.spec
new file mode 100644
index 0000000..a3e6de8
--- /dev/null
+++ b/python-eeglabio.spec
@@ -0,0 +1,260 @@
+%global _empty_manifest_terminate_build 0
+Name: python-eeglabio
+Version: 0.0.2.post3
+Release: 1
+Summary: I/O support for EEGLAB files in Python
+License: BSD (3-clause)
+URL: https://github.com/jackz314/eeglabio
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/15/26/4ac88178f48e4263a7dd8c939eb5f8762f23708627ba10411bf5cfcfddb1/eeglabio-0.0.2.post3.tar.gz
+BuildArch: noarch
+
+Requires: python3-numpy
+Requires: python3-scipy
+
+%description
+# eeglabio [![Documentation Status](https://readthedocs.org/projects/eeglabio/badge/?version=latest)](https://eeglabio.readthedocs.io/en/latest/?badge=latest) [![Test & Publish](https://github.com/jackz314/eeglabio/actions/workflows/test_publish.yml/badge.svg)](https://github.com/jackz314/eeglabio/actions/workflows/test_publish.yml) [![PyPI version](https://badge.fury.io/py/eeglabio.svg)](https://badge.fury.io/py/eeglabio) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/eeglabio.svg)](https://anaconda.org/conda-forge/eeglabio)
+
+I/O support for EEGLAB files in Python.
+
+### Installation
+
+Install from [PyPI](https://pypi.org/project/eeglabio):
+
+```shell
+pip install eeglabio
+```
+
+Install from [Test PyPI](https://test.pypi.org/project/eeglabio) (built from
+[stable](https://github.com/jackz314/eeglabio/tree/stable) branch):
+
+```shell
+pip install -i https://test.pypi.org/simple/ eeglabio
+```
+
+Install from [conda-forge](https://github.com/conda-forge/eeglabio-feedstock):
+
+```shell
+conda install -c conda-forge eeglabio
+```
+
+Install the latest version of the code from GitHub directly (unstable):
+
+```shell
+pip install https://github.com/jackz314/eeglabio/archive/main.zip
+```
+
+### Dependencies
+
+eeglabio requires Python >= 3.6 and the following packages:
+
+* [numpy](http://numpy.org/)
+* [scipy](https://www.scipy.org/)
+
+For testing, we also require the following additional packages:
+
+* [mne](https://github.com/mne-tools/mne-python)
+
+
+### Example Usage (with [MNE](https://github.com/mne-tools/mne-python))
+
+Export from MNE [`Epochs`](https://mne.tools/stable/generated/mne.Epochs.html) to EEGLAB (`.set`):
+
+```python
+import mne
+from eeglabio.utils import export_mne_epochs
+epochs = mne.Epochs(...)
+export_mne_epochs(epochs, "file_name.set")
+```
+
+Export from MNE [`Raw`](https://mne.tools/stable/generated/mne.io.Raw.html) to EEGLAB (`.set`):
+
+```python
+import mne
+from eeglabio.utils import export_mne_raw
+raw = mne.io.read_raw(...)
+export_mne_raw(raw, "file_name.set")
+```
+
+
+%package -n python3-eeglabio
+Summary: I/O support for EEGLAB files in Python
+Provides: python-eeglabio
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-eeglabio
+# eeglabio [![Documentation Status](https://readthedocs.org/projects/eeglabio/badge/?version=latest)](https://eeglabio.readthedocs.io/en/latest/?badge=latest) [![Test & Publish](https://github.com/jackz314/eeglabio/actions/workflows/test_publish.yml/badge.svg)](https://github.com/jackz314/eeglabio/actions/workflows/test_publish.yml) [![PyPI version](https://badge.fury.io/py/eeglabio.svg)](https://badge.fury.io/py/eeglabio) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/eeglabio.svg)](https://anaconda.org/conda-forge/eeglabio)
+
+I/O support for EEGLAB files in Python.
+
+### Installation
+
+Install from [PyPI](https://pypi.org/project/eeglabio):
+
+```shell
+pip install eeglabio
+```
+
+Install from [Test PyPI](https://test.pypi.org/project/eeglabio) (built from
+[stable](https://github.com/jackz314/eeglabio/tree/stable) branch):
+
+```shell
+pip install -i https://test.pypi.org/simple/ eeglabio
+```
+
+Install from [conda-forge](https://github.com/conda-forge/eeglabio-feedstock):
+
+```shell
+conda install -c conda-forge eeglabio
+```
+
+Install the latest version of the code from GitHub directly (unstable):
+
+```shell
+pip install https://github.com/jackz314/eeglabio/archive/main.zip
+```
+
+### Dependencies
+
+eeglabio requires Python >= 3.6 and the following packages:
+
+* [numpy](http://numpy.org/)
+* [scipy](https://www.scipy.org/)
+
+For testing, we also require the following additional packages:
+
+* [mne](https://github.com/mne-tools/mne-python)
+
+
+### Example Usage (with [MNE](https://github.com/mne-tools/mne-python))
+
+Export from MNE [`Epochs`](https://mne.tools/stable/generated/mne.Epochs.html) to EEGLAB (`.set`):
+
+```python
+import mne
+from eeglabio.utils import export_mne_epochs
+epochs = mne.Epochs(...)
+export_mne_epochs(epochs, "file_name.set")
+```
+
+Export from MNE [`Raw`](https://mne.tools/stable/generated/mne.io.Raw.html) to EEGLAB (`.set`):
+
+```python
+import mne
+from eeglabio.utils import export_mne_raw
+raw = mne.io.read_raw(...)
+export_mne_raw(raw, "file_name.set")
+```
+
+
+%package help
+Summary: Development documents and examples for eeglabio
+Provides: python3-eeglabio-doc
+%description help
+# eeglabio [![Documentation Status](https://readthedocs.org/projects/eeglabio/badge/?version=latest)](https://eeglabio.readthedocs.io/en/latest/?badge=latest) [![Test & Publish](https://github.com/jackz314/eeglabio/actions/workflows/test_publish.yml/badge.svg)](https://github.com/jackz314/eeglabio/actions/workflows/test_publish.yml) [![PyPI version](https://badge.fury.io/py/eeglabio.svg)](https://badge.fury.io/py/eeglabio) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/eeglabio.svg)](https://anaconda.org/conda-forge/eeglabio)
+
+I/O support for EEGLAB files in Python.
+
+### Installation
+
+Install from [PyPI](https://pypi.org/project/eeglabio):
+
+```shell
+pip install eeglabio
+```
+
+Install from [Test PyPI](https://test.pypi.org/project/eeglabio) (built from
+[stable](https://github.com/jackz314/eeglabio/tree/stable) branch):
+
+```shell
+pip install -i https://test.pypi.org/simple/ eeglabio
+```
+
+Install from [conda-forge](https://github.com/conda-forge/eeglabio-feedstock):
+
+```shell
+conda install -c conda-forge eeglabio
+```
+
+Install the latest version of the code from GitHub directly (unstable):
+
+```shell
+pip install https://github.com/jackz314/eeglabio/archive/main.zip
+```
+
+### Dependencies
+
+eeglabio requires Python >= 3.6 and the following packages:
+
+* [numpy](http://numpy.org/)
+* [scipy](https://www.scipy.org/)
+
+For testing, we also require the following additional packages:
+
+* [mne](https://github.com/mne-tools/mne-python)
+
+
+### Example Usage (with [MNE](https://github.com/mne-tools/mne-python))
+
+Export from MNE [`Epochs`](https://mne.tools/stable/generated/mne.Epochs.html) to EEGLAB (`.set`):
+
+```python
+import mne
+from eeglabio.utils import export_mne_epochs
+epochs = mne.Epochs(...)
+export_mne_epochs(epochs, "file_name.set")
+```
+
+Export from MNE [`Raw`](https://mne.tools/stable/generated/mne.io.Raw.html) to EEGLAB (`.set`):
+
+```python
+import mne
+from eeglabio.utils import export_mne_raw
+raw = mne.io.read_raw(...)
+export_mne_raw(raw, "file_name.set")
+```
+
+
+%prep
+%autosetup -n eeglabio-0.0.2.post3
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-eeglabio -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.2.post3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..fb0e353
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9e4b00924451cfa5f6337ae115358c34 eeglabio-0.0.2.post3.tar.gz