diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:01:26 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:01:26 +0000 |
commit | 60fac037ee45aca0d34883044aa0415f246e5d41 (patch) | |
tree | 8a379e095c50307d43a55d3a482f1e6d8eff29e7 | |
parent | c6ced64c9edcaad5e375b2ccfc18e0298e89785b (diff) |
automatic import of python-space-rocks
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-space-rocks.spec | 327 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 329 insertions, 0 deletions
@@ -0,0 +1 @@ +/space_rocks-1.7.7.tar.gz diff --git a/python-space-rocks.spec b/python-space-rocks.spec new file mode 100644 index 0000000..387e700 --- /dev/null +++ b/python-space-rocks.spec @@ -0,0 +1,327 @@ +%global _empty_manifest_terminate_build 0 +Name: python-space-rocks +Version: 1.7.7 +Release: 1 +Summary: Python client for SsODNet data access. +License: MIT +URL: https://rocks.readthedocs.io/en/latest/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d6/32/88c116461cc21bb44f402409de470a5b0929c83915d10a589603c6f850f1/space_rocks-1.7.7.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-matplotlib +Requires: python3-aiohttp +Requires: python3-cchardet +Requires: python3-aiodns +Requires: python3-pandas +Requires: python3-pydantic +Requires: python3-rich +Requires: python3-click +Requires: python3-nest-asyncio +Requires: python3-requests +Requires: python3-Levenshtein +Requires: python3-furo +Requires: python3-sphinx-copybutton +Requires: python3-sphinx_design +Requires: python3-bs4 +Requires: python3-beautifulsoup4 +Requires: python3-platformdirs + +%description +<p align="center"> + <img width="260" src="https://raw.githubusercontent.com/maxmahlke/rocks/master/docs/_static/logo_rocks.svg"> +</p> + +<p align="center"> + <a href="https://github.com/maxmahlke/rocks#features"> Features </a> - <a href="https://github.com/maxmahlke/rocks#install"> Install </a> - <a href="https://github.com/maxmahlke/rocks#documentation"> Documentation </a> +</p> + +<br> + +<div align="center"> + <a href="https://img.shields.io/pypi/pyversions/space-rocks"> + <img src="https://img.shields.io/pypi/pyversions/space-rocks"/> + </a> + <a href="https://img.shields.io/pypi/v/space-rocks"> + <img src="https://img.shields.io/pypi/v/space-rocks"/> + </a> + <a href="https://readthedocs.org/projects/rocks/badge/?version=latest"> + <img src="https://readthedocs.org/projects/rocks/badge/?version=latest"/> + </a> + <a href="https://arxiv.org/abs/2209.10697"> + <img src="https://img.shields.io/badge/arXiv-2209.10697-f9f107.svg"/> + </a> +</div> + +<br> + +## Features + +Explore asteroid data on the command-line... + +``` sh +$ rocks id 221 +(221) Eos + +$ rocks class Eos +MB>Outer + +$ rocks albedo Eos +0.136 +- 0.004 + +$ rocks taxonomy Eos +K + +$ rocks density Eos +4.559e+03 +- 1.139e+03 kg/m$^3$ +``` + +... and in a `python` script. + +``` python +>>> import rocks +>>> rocks.identify("1902ug") +('Fortuna', 19) +>>> ceres = rocks.Rock("ceres") +>>> ceres.diameter.value +848.4 +>>> ceres.diameter.unit +'km' +>>> ceres.mass.value +9.384e+20 +>>> ceres.mass.error +6.711e+17 +``` + +## Install + +Install from PyPi using `pip`: + + $ pip install space-rocks + +The minimum required `python` version is 3.7. + + +## Documentation + +Check out the documentation at [rocks.readthedocs.io](https://rocks.readthedocs.io/en/latest/) or run + + $ rocks docs + + +%package -n python3-space-rocks +Summary: Python client for SsODNet data access. +Provides: python-space-rocks +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-space-rocks +<p align="center"> + <img width="260" src="https://raw.githubusercontent.com/maxmahlke/rocks/master/docs/_static/logo_rocks.svg"> +</p> + +<p align="center"> + <a href="https://github.com/maxmahlke/rocks#features"> Features </a> - <a href="https://github.com/maxmahlke/rocks#install"> Install </a> - <a href="https://github.com/maxmahlke/rocks#documentation"> Documentation </a> +</p> + +<br> + +<div align="center"> + <a href="https://img.shields.io/pypi/pyversions/space-rocks"> + <img src="https://img.shields.io/pypi/pyversions/space-rocks"/> + </a> + <a href="https://img.shields.io/pypi/v/space-rocks"> + <img src="https://img.shields.io/pypi/v/space-rocks"/> + </a> + <a href="https://readthedocs.org/projects/rocks/badge/?version=latest"> + <img src="https://readthedocs.org/projects/rocks/badge/?version=latest"/> + </a> + <a href="https://arxiv.org/abs/2209.10697"> + <img src="https://img.shields.io/badge/arXiv-2209.10697-f9f107.svg"/> + </a> +</div> + +<br> + +## Features + +Explore asteroid data on the command-line... + +``` sh +$ rocks id 221 +(221) Eos + +$ rocks class Eos +MB>Outer + +$ rocks albedo Eos +0.136 +- 0.004 + +$ rocks taxonomy Eos +K + +$ rocks density Eos +4.559e+03 +- 1.139e+03 kg/m$^3$ +``` + +... and in a `python` script. + +``` python +>>> import rocks +>>> rocks.identify("1902ug") +('Fortuna', 19) +>>> ceres = rocks.Rock("ceres") +>>> ceres.diameter.value +848.4 +>>> ceres.diameter.unit +'km' +>>> ceres.mass.value +9.384e+20 +>>> ceres.mass.error +6.711e+17 +``` + +## Install + +Install from PyPi using `pip`: + + $ pip install space-rocks + +The minimum required `python` version is 3.7. + + +## Documentation + +Check out the documentation at [rocks.readthedocs.io](https://rocks.readthedocs.io/en/latest/) or run + + $ rocks docs + + +%package help +Summary: Development documents and examples for space-rocks +Provides: python3-space-rocks-doc +%description help +<p align="center"> + <img width="260" src="https://raw.githubusercontent.com/maxmahlke/rocks/master/docs/_static/logo_rocks.svg"> +</p> + +<p align="center"> + <a href="https://github.com/maxmahlke/rocks#features"> Features </a> - <a href="https://github.com/maxmahlke/rocks#install"> Install </a> - <a href="https://github.com/maxmahlke/rocks#documentation"> Documentation </a> +</p> + +<br> + +<div align="center"> + <a href="https://img.shields.io/pypi/pyversions/space-rocks"> + <img src="https://img.shields.io/pypi/pyversions/space-rocks"/> + </a> + <a href="https://img.shields.io/pypi/v/space-rocks"> + <img src="https://img.shields.io/pypi/v/space-rocks"/> + </a> + <a href="https://readthedocs.org/projects/rocks/badge/?version=latest"> + <img src="https://readthedocs.org/projects/rocks/badge/?version=latest"/> + </a> + <a href="https://arxiv.org/abs/2209.10697"> + <img src="https://img.shields.io/badge/arXiv-2209.10697-f9f107.svg"/> + </a> +</div> + +<br> + +## Features + +Explore asteroid data on the command-line... + +``` sh +$ rocks id 221 +(221) Eos + +$ rocks class Eos +MB>Outer + +$ rocks albedo Eos +0.136 +- 0.004 + +$ rocks taxonomy Eos +K + +$ rocks density Eos +4.559e+03 +- 1.139e+03 kg/m$^3$ +``` + +... and in a `python` script. + +``` python +>>> import rocks +>>> rocks.identify("1902ug") +('Fortuna', 19) +>>> ceres = rocks.Rock("ceres") +>>> ceres.diameter.value +848.4 +>>> ceres.diameter.unit +'km' +>>> ceres.mass.value +9.384e+20 +>>> ceres.mass.error +6.711e+17 +``` + +## Install + +Install from PyPi using `pip`: + + $ pip install space-rocks + +The minimum required `python` version is 3.7. + + +## Documentation + +Check out the documentation at [rocks.readthedocs.io](https://rocks.readthedocs.io/en/latest/) or run + + $ rocks docs + + +%prep +%autosetup -n space-rocks-1.7.7 + +%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-space-rocks -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 1.7.7-1 +- Package Spec generated @@ -0,0 +1 @@ +258c40b7405b5aef2924e53758d5f4ce space_rocks-1.7.7.tar.gz |