%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.aliyun.com/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 ## 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 ## 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 ## 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 * Thu Jun 08 2023 Python_Bot - 1.6.0-1 - Package Spec generated