diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:10:23 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:10:23 +0000 |
commit | 9f72716d4d9a5001ccbceb9dfcf7a9e9e98adb1d (patch) | |
tree | 602f262674ec42ff7cd0a92c0ac6cf91ed4998b2 | |
parent | fcf62b6d264688b62c5edebf48802d328df17c0a (diff) |
automatic import of python-bioformats-jaropeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-bioformats-jar.spec | 246 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 248 insertions, 0 deletions
@@ -0,0 +1 @@ +/bioformats_jar-2020.5.27.tar.gz diff --git a/python-bioformats-jar.spec b/python-bioformats-jar.spec new file mode 100644 index 0000000..8dc6dce --- /dev/null +++ b/python-bioformats-jar.spec @@ -0,0 +1,246 @@ +%global _empty_manifest_terminate_build 0 +Name: python-bioformats-jar +Version: 2020.5.27 +Release: 1 +Summary: bioformats_package.jar installer for scyjava +License: GPL-2.0 +URL: https://github.com/tlambert03/bioformats_jar +Source0: https://mirrors.aliyun.com/pypi/web/packages/b5/10/0f7b9521bc51d768130bd405122dcde00f6fe9b51de514fccf32f2e531d2/bioformats_jar-2020.5.27.tar.gz +BuildArch: noarch + +Requires: python3-scyjava +Requires: python3-pytest +Requires: python3-pytest-cov + +%description +# bioformats_jar + +[](https://github.com/tlambert03/bioformats_jar/raw/master/LICENSE) +[](https://pypi.org/project/bioformats_jar) +[](https://python.org) +[](https://github.com/tlambert03/bioformats_jar/actions/workflows/ci.yml) + +## deprecated + +This package is deprecated. You should use [scyjava](https://github.com/scijava/scyjava) to download and import jars. The functionality in this +package can be accomplished using scyjava as follows: + +```python +import jpype +import scyjava + +scyjava.config.endpoints.append('ome:formats-gpl:6.7.0') +scyjava.start_jvm() +loci = jpype.JPackage("loci") +loci.common.DebugTools.setRootLevel("ERROR") +``` + +This package remains only for packages that already depend on it. + +## usage + +```python +from bioformats_jar import get_loci, set_loci_log_level + +# start the JVM and get the loci module +loci = get_loci() + +# optionally: +set_loci_log_level("DEBUG") # by default "ERROR" +``` + +The following environment variables can also be used: + +- `BIOFORMATS_VERSION` - version of bioformats to use. by default "LATEST" +- `BIOFORMATS_LOG_LEVEL` - logging level for loci tools. by default "ERROR" +- `BIOFORMATS_LICENSE` - license version of bioformats to use. must be either + `"gpl"` or `"bsd"`. By default `"gpl"` + +*see also:* + +- [Bioformats Docs](https://docs.openmicroscopy.org/bio-formats/latest) +- [Javadocs](https://downloads.openmicroscopy.org/bio-formats/latest/api/) with the loci API + +## install + +```sh +pip install bioformats-jar +``` + +```sh +conda install -c conda-forge bioformats-jar +``` + + +%package -n python3-bioformats-jar +Summary: bioformats_package.jar installer for scyjava +Provides: python-bioformats-jar +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-bioformats-jar +# bioformats_jar + +[](https://github.com/tlambert03/bioformats_jar/raw/master/LICENSE) +[](https://pypi.org/project/bioformats_jar) +[](https://python.org) +[](https://github.com/tlambert03/bioformats_jar/actions/workflows/ci.yml) + +## deprecated + +This package is deprecated. You should use [scyjava](https://github.com/scijava/scyjava) to download and import jars. The functionality in this +package can be accomplished using scyjava as follows: + +```python +import jpype +import scyjava + +scyjava.config.endpoints.append('ome:formats-gpl:6.7.0') +scyjava.start_jvm() +loci = jpype.JPackage("loci") +loci.common.DebugTools.setRootLevel("ERROR") +``` + +This package remains only for packages that already depend on it. + +## usage + +```python +from bioformats_jar import get_loci, set_loci_log_level + +# start the JVM and get the loci module +loci = get_loci() + +# optionally: +set_loci_log_level("DEBUG") # by default "ERROR" +``` + +The following environment variables can also be used: + +- `BIOFORMATS_VERSION` - version of bioformats to use. by default "LATEST" +- `BIOFORMATS_LOG_LEVEL` - logging level for loci tools. by default "ERROR" +- `BIOFORMATS_LICENSE` - license version of bioformats to use. must be either + `"gpl"` or `"bsd"`. By default `"gpl"` + +*see also:* + +- [Bioformats Docs](https://docs.openmicroscopy.org/bio-formats/latest) +- [Javadocs](https://downloads.openmicroscopy.org/bio-formats/latest/api/) with the loci API + +## install + +```sh +pip install bioformats-jar +``` + +```sh +conda install -c conda-forge bioformats-jar +``` + + +%package help +Summary: Development documents and examples for bioformats-jar +Provides: python3-bioformats-jar-doc +%description help +# bioformats_jar + +[](https://github.com/tlambert03/bioformats_jar/raw/master/LICENSE) +[](https://pypi.org/project/bioformats_jar) +[](https://python.org) +[](https://github.com/tlambert03/bioformats_jar/actions/workflows/ci.yml) + +## deprecated + +This package is deprecated. You should use [scyjava](https://github.com/scijava/scyjava) to download and import jars. The functionality in this +package can be accomplished using scyjava as follows: + +```python +import jpype +import scyjava + +scyjava.config.endpoints.append('ome:formats-gpl:6.7.0') +scyjava.start_jvm() +loci = jpype.JPackage("loci") +loci.common.DebugTools.setRootLevel("ERROR") +``` + +This package remains only for packages that already depend on it. + +## usage + +```python +from bioformats_jar import get_loci, set_loci_log_level + +# start the JVM and get the loci module +loci = get_loci() + +# optionally: +set_loci_log_level("DEBUG") # by default "ERROR" +``` + +The following environment variables can also be used: + +- `BIOFORMATS_VERSION` - version of bioformats to use. by default "LATEST" +- `BIOFORMATS_LOG_LEVEL` - logging level for loci tools. by default "ERROR" +- `BIOFORMATS_LICENSE` - license version of bioformats to use. must be either + `"gpl"` or `"bsd"`. By default `"gpl"` + +*see also:* + +- [Bioformats Docs](https://docs.openmicroscopy.org/bio-formats/latest) +- [Javadocs](https://downloads.openmicroscopy.org/bio-formats/latest/api/) with the loci API + +## install + +```sh +pip install bioformats-jar +``` + +```sh +conda install -c conda-forge bioformats-jar +``` + + +%prep +%autosetup -n bioformats_jar-2020.5.27 + +%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-bioformats-jar -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 2020.5.27-1 +- Package Spec generated @@ -0,0 +1 @@ +47690efaf23a00b0d43ec3a174decc02 bioformats_jar-2020.5.27.tar.gz |