summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 03:55:21 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 03:55:21 +0000
commitbfbfe682d639154ba7b27f04d095e841f4b7dff2 (patch)
treee1544e358f1a623322e67064f72f1960ab9f310f
parentf2f024ddbecf96bd58d3fce874ee5fce0c68e698 (diff)
automatic import of python-read-roi
-rw-r--r--.gitignore1
-rw-r--r--python-read-roi.spec237
-rw-r--r--sources1
3 files changed, 239 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8c65244 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/read-roi-1.6.0.tar.gz
diff --git a/python-read-roi.spec b/python-read-roi.spec
new file mode 100644
index 0000000..cd4d951
--- /dev/null
+++ b/python-read-roi.spec
@@ -0,0 +1,237 @@
+%global _empty_manifest_terminate_build 0
+Name: python-read-roi
+Version: 1.6.0
+Release: 1
+Summary: Read ROI files .zip or .roi generated with ImageJ.
+License: BSD License
+URL: https://github.com/hadim/read-roi/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f4/d9/f59d53def03ad40c4908d231520e3080753701ee00f13bea2f884ea97ec9/read-roi-1.6.0.tar.gz
+BuildArch: noarch
+
+
+%description
+# read-roi
+
+[![PyPI version](https://img.shields.io/pypi/v/read-roi.svg?maxAge=2591000)](https://pypi.org/project/read-roi/)
+[![Build Status](https://travis-ci.com/hadim/read-roi.svg?branch=master)](https://travis-ci.com/hadim/read-roi)
+[![codecov](https://codecov.io/gh/hadim/read-roi/branch/master/graph/badge.svg)](https://codecov.io/gh/hadim/read-roi)
+
+Read ROI files .zip or .roi generated with ImageJ. Code is largely inspired from : http://rsb.info.nih.gov/ij/developer/source/ij/io/RoiDecoder.java.html
+
+## Functions
+
+```python
+from read_roi import read_roi_file
+from read_roi import read_roi_zip
+
+roi = read_roi_file(roi_file_path)
+
+# or
+
+rois = read_roi_zip(roi_zip_path)
+```
+
+## Note
+
+- Some format specifications are not implemented. See `RoiDecoder.java` for details.
+- Most of "normal" ROI files should work.
+- Feel free to hack it and send me modifications.
+
+## Requirements
+
+- Python 3.5 and above.
+
+## Install
+
+`pip install read-roi`
+
+Or you can use Anaconda and `conda-forge` :
+
+```
+conda config --add channels conda-forge
+conda install read-roi
+```
+
+## License
+
+Under BSD license. See [LICENSE](LICENSE).
+
+## Authors
+
+- Hadrien Mary <hadrien.mary@gmail.com>
+
+## Release a new version
+
+- Run tests: `pytest -v read_roi/`.
+- Install [rever](https://regro.github.io/rever-docs): `conda install -y rever`.
+- Run check: `rever check`.
+- Bump and release new version: `rever VERSION_NUMBER`.
+
+%package -n python3-read-roi
+Summary: Read ROI files .zip or .roi generated with ImageJ.
+Provides: python-read-roi
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-read-roi
+# read-roi
+
+[![PyPI version](https://img.shields.io/pypi/v/read-roi.svg?maxAge=2591000)](https://pypi.org/project/read-roi/)
+[![Build Status](https://travis-ci.com/hadim/read-roi.svg?branch=master)](https://travis-ci.com/hadim/read-roi)
+[![codecov](https://codecov.io/gh/hadim/read-roi/branch/master/graph/badge.svg)](https://codecov.io/gh/hadim/read-roi)
+
+Read ROI files .zip or .roi generated with ImageJ. Code is largely inspired from : http://rsb.info.nih.gov/ij/developer/source/ij/io/RoiDecoder.java.html
+
+## Functions
+
+```python
+from read_roi import read_roi_file
+from read_roi import read_roi_zip
+
+roi = read_roi_file(roi_file_path)
+
+# or
+
+rois = read_roi_zip(roi_zip_path)
+```
+
+## Note
+
+- Some format specifications are not implemented. See `RoiDecoder.java` for details.
+- Most of "normal" ROI files should work.
+- Feel free to hack it and send me modifications.
+
+## Requirements
+
+- Python 3.5 and above.
+
+## Install
+
+`pip install read-roi`
+
+Or you can use Anaconda and `conda-forge` :
+
+```
+conda config --add channels conda-forge
+conda install read-roi
+```
+
+## License
+
+Under BSD license. See [LICENSE](LICENSE).
+
+## Authors
+
+- Hadrien Mary <hadrien.mary@gmail.com>
+
+## Release a new version
+
+- Run tests: `pytest -v read_roi/`.
+- Install [rever](https://regro.github.io/rever-docs): `conda install -y rever`.
+- Run check: `rever check`.
+- Bump and release new version: `rever VERSION_NUMBER`.
+
+%package help
+Summary: Development documents and examples for read-roi
+Provides: python3-read-roi-doc
+%description help
+# read-roi
+
+[![PyPI version](https://img.shields.io/pypi/v/read-roi.svg?maxAge=2591000)](https://pypi.org/project/read-roi/)
+[![Build Status](https://travis-ci.com/hadim/read-roi.svg?branch=master)](https://travis-ci.com/hadim/read-roi)
+[![codecov](https://codecov.io/gh/hadim/read-roi/branch/master/graph/badge.svg)](https://codecov.io/gh/hadim/read-roi)
+
+Read ROI files .zip or .roi generated with ImageJ. Code is largely inspired from : http://rsb.info.nih.gov/ij/developer/source/ij/io/RoiDecoder.java.html
+
+## Functions
+
+```python
+from read_roi import read_roi_file
+from read_roi import read_roi_zip
+
+roi = read_roi_file(roi_file_path)
+
+# or
+
+rois = read_roi_zip(roi_zip_path)
+```
+
+## Note
+
+- Some format specifications are not implemented. See `RoiDecoder.java` for details.
+- Most of "normal" ROI files should work.
+- Feel free to hack it and send me modifications.
+
+## Requirements
+
+- Python 3.5 and above.
+
+## Install
+
+`pip install read-roi`
+
+Or you can use Anaconda and `conda-forge` :
+
+```
+conda config --add channels conda-forge
+conda install read-roi
+```
+
+## License
+
+Under BSD license. See [LICENSE](LICENSE).
+
+## Authors
+
+- Hadrien Mary <hadrien.mary@gmail.com>
+
+## Release a new version
+
+- Run tests: `pytest -v read_roi/`.
+- Install [rever](https://regro.github.io/rever-docs): `conda install -y rever`.
+- Run check: `rever check`.
+- Bump and release new version: `rever VERSION_NUMBER`.
+
+%prep
+%autosetup -n read-roi-1.6.0
+
+%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-read-roi -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.6.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..d949162
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7e4278d14d3e8cba20af65999dad500f read-roi-1.6.0.tar.gz