From 7d81676cab6d1870912f530f0e0646f79476e211 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 12 Apr 2023 00:30:18 +0000 Subject: automatic import of python-cdshealpix --- .gitignore | 1 + python-cdshealpix.spec | 237 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 239 insertions(+) create mode 100644 python-cdshealpix.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..9068d3a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/cdshealpix-0.6.4.tar.gz diff --git a/python-cdshealpix.spec b/python-cdshealpix.spec new file mode 100644 index 0000000..22e05d6 --- /dev/null +++ b/python-cdshealpix.spec @@ -0,0 +1,237 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cdshealpix +Version: 0.6.4 +Release: 1 +Summary: Python cdshealpix package wrapping code of the cdshealpix crate +License: BSD-3-Clause +URL: https://github.com/cds-astro/cds-healpix-python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ad/3f/b8805657aff7afaf21551eb58c26452bff40eb419fe02eaacce79f55db47/cdshealpix-0.6.4.tar.gz + +Requires: python3-astropy + +%description +# CDSHealpix + +[![Build Status](https://github.com/cds-astro/cds-healpix-python/actions/workflows/test.yml/badge.svg)](https://github.com/cds-astro/cds-healpix-python/actions/workflows/test.yml) +[![Deploy status](https://github.com/cds-astro/cds-healpix-python/actions/workflows/deploy_pypi.yml/badge.svg?branch=master)](https://github.com/cds-astro/cds-healpix-python/actions/workflows/deploy_pypi.yml) +[![PyPI version](https://badge.fury.io/py/cdshealpix.svg)](https://badge.fury.io/py/cdshealpix) +[![Documentation](https://img.shields.io/badge/Documentation-link-green.svg)](https://cds-astro.github.io/cds-healpix-python/) + +This is a BSD-licensed HEALPix package which is wrapped around the [cdshealpix Rust crate](https://github.com/cds-astro/cds-healpix-rust). + +[cdshealpix](https://pypi.org/project/cdshealpix/) is multi-platform and is currently deployed on PyPI for i686, x86_64 and aarch64 archs. + +```bash +pip install cdshealpix +``` + +Or + +```bash +conda install -c conda-forge cdshealpix +``` + +Reminder on conda activation/deactivation: + +```bash +conda config --set auto_activate_base false +conda activate base +conda deactivate +``` + +Test: + +```python +import cdshealpix +from cdshealpix import healpix_to_lonlat +lon, lat = healpix_to_lonlat(0, 0) +assert lon.rad[0] == 0.7853981633974483 +``` + +## Features + +* [Nested and Ring HEALPix notation](https://cds-astro.github.io/cds-healpix-python/api.html#cdshealpix) supported +* [Cone search](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.cone_search.html#cdshealpix.nested.cone_search) +* [Elliptical-Cone search](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.elliptical_cone_search.html#cdshealpix.nested.elliptical_cone_search) +* [Polygon search](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.polygon_search.html#cdshealpix.nested.polygon_search) +* [Bilinear interpolation](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.bilinear_interpolation.html#cdshealpix.nested.bilinear_interpolation) +* [lonlat_to_healpix](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.lonlat_to_healpix.html#cdshealpix.nested.lonlat_to_healpix) and [healpix_to_lonlat](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.healpix_to_lonlat.html#cdshealpix.nested.healpix_to_lonlat) supports numpy broadcasting +* Rust allows easy concurrency. A ``num_threads`` optional parameter can be used to allow parallelism. By default, concurrency is disabled. +* Get the [world vertices corresponding to an HEALPix cell](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.vertices.html#cdshealpix.nested.vertices) +* Get the [neighbours of an HEALPix cell](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.neighbours.html#cdshealpix.nested.neighbours) + +## Documentation + +Here is the link to the [documentation](https://cds-astro.github.io/cds-healpix-python/) for informations about how to use this package. + + + +%package -n python3-cdshealpix +Summary: Python cdshealpix package wrapping code of the cdshealpix crate +Provides: python-cdshealpix +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-cdshealpix +# CDSHealpix + +[![Build Status](https://github.com/cds-astro/cds-healpix-python/actions/workflows/test.yml/badge.svg)](https://github.com/cds-astro/cds-healpix-python/actions/workflows/test.yml) +[![Deploy status](https://github.com/cds-astro/cds-healpix-python/actions/workflows/deploy_pypi.yml/badge.svg?branch=master)](https://github.com/cds-astro/cds-healpix-python/actions/workflows/deploy_pypi.yml) +[![PyPI version](https://badge.fury.io/py/cdshealpix.svg)](https://badge.fury.io/py/cdshealpix) +[![Documentation](https://img.shields.io/badge/Documentation-link-green.svg)](https://cds-astro.github.io/cds-healpix-python/) + +This is a BSD-licensed HEALPix package which is wrapped around the [cdshealpix Rust crate](https://github.com/cds-astro/cds-healpix-rust). + +[cdshealpix](https://pypi.org/project/cdshealpix/) is multi-platform and is currently deployed on PyPI for i686, x86_64 and aarch64 archs. + +```bash +pip install cdshealpix +``` + +Or + +```bash +conda install -c conda-forge cdshealpix +``` + +Reminder on conda activation/deactivation: + +```bash +conda config --set auto_activate_base false +conda activate base +conda deactivate +``` + +Test: + +```python +import cdshealpix +from cdshealpix import healpix_to_lonlat +lon, lat = healpix_to_lonlat(0, 0) +assert lon.rad[0] == 0.7853981633974483 +``` + +## Features + +* [Nested and Ring HEALPix notation](https://cds-astro.github.io/cds-healpix-python/api.html#cdshealpix) supported +* [Cone search](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.cone_search.html#cdshealpix.nested.cone_search) +* [Elliptical-Cone search](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.elliptical_cone_search.html#cdshealpix.nested.elliptical_cone_search) +* [Polygon search](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.polygon_search.html#cdshealpix.nested.polygon_search) +* [Bilinear interpolation](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.bilinear_interpolation.html#cdshealpix.nested.bilinear_interpolation) +* [lonlat_to_healpix](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.lonlat_to_healpix.html#cdshealpix.nested.lonlat_to_healpix) and [healpix_to_lonlat](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.healpix_to_lonlat.html#cdshealpix.nested.healpix_to_lonlat) supports numpy broadcasting +* Rust allows easy concurrency. A ``num_threads`` optional parameter can be used to allow parallelism. By default, concurrency is disabled. +* Get the [world vertices corresponding to an HEALPix cell](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.vertices.html#cdshealpix.nested.vertices) +* Get the [neighbours of an HEALPix cell](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.neighbours.html#cdshealpix.nested.neighbours) + +## Documentation + +Here is the link to the [documentation](https://cds-astro.github.io/cds-healpix-python/) for informations about how to use this package. + + + +%package help +Summary: Development documents and examples for cdshealpix +Provides: python3-cdshealpix-doc +%description help +# CDSHealpix + +[![Build Status](https://github.com/cds-astro/cds-healpix-python/actions/workflows/test.yml/badge.svg)](https://github.com/cds-astro/cds-healpix-python/actions/workflows/test.yml) +[![Deploy status](https://github.com/cds-astro/cds-healpix-python/actions/workflows/deploy_pypi.yml/badge.svg?branch=master)](https://github.com/cds-astro/cds-healpix-python/actions/workflows/deploy_pypi.yml) +[![PyPI version](https://badge.fury.io/py/cdshealpix.svg)](https://badge.fury.io/py/cdshealpix) +[![Documentation](https://img.shields.io/badge/Documentation-link-green.svg)](https://cds-astro.github.io/cds-healpix-python/) + +This is a BSD-licensed HEALPix package which is wrapped around the [cdshealpix Rust crate](https://github.com/cds-astro/cds-healpix-rust). + +[cdshealpix](https://pypi.org/project/cdshealpix/) is multi-platform and is currently deployed on PyPI for i686, x86_64 and aarch64 archs. + +```bash +pip install cdshealpix +``` + +Or + +```bash +conda install -c conda-forge cdshealpix +``` + +Reminder on conda activation/deactivation: + +```bash +conda config --set auto_activate_base false +conda activate base +conda deactivate +``` + +Test: + +```python +import cdshealpix +from cdshealpix import healpix_to_lonlat +lon, lat = healpix_to_lonlat(0, 0) +assert lon.rad[0] == 0.7853981633974483 +``` + +## Features + +* [Nested and Ring HEALPix notation](https://cds-astro.github.io/cds-healpix-python/api.html#cdshealpix) supported +* [Cone search](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.cone_search.html#cdshealpix.nested.cone_search) +* [Elliptical-Cone search](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.elliptical_cone_search.html#cdshealpix.nested.elliptical_cone_search) +* [Polygon search](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.polygon_search.html#cdshealpix.nested.polygon_search) +* [Bilinear interpolation](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.bilinear_interpolation.html#cdshealpix.nested.bilinear_interpolation) +* [lonlat_to_healpix](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.lonlat_to_healpix.html#cdshealpix.nested.lonlat_to_healpix) and [healpix_to_lonlat](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.healpix_to_lonlat.html#cdshealpix.nested.healpix_to_lonlat) supports numpy broadcasting +* Rust allows easy concurrency. A ``num_threads`` optional parameter can be used to allow parallelism. By default, concurrency is disabled. +* Get the [world vertices corresponding to an HEALPix cell](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.vertices.html#cdshealpix.nested.vertices) +* Get the [neighbours of an HEALPix cell](https://cds-astro.github.io/cds-healpix-python/stubs/cdshealpix.nested.neighbours.html#cdshealpix.nested.neighbours) + +## Documentation + +Here is the link to the [documentation](https://cds-astro.github.io/cds-healpix-python/) for informations about how to use this package. + + + +%prep +%autosetup -n cdshealpix-0.6.4 + +%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-cdshealpix -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot - 0.6.4-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..aefa1b0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +5524e3122544b822088b52aec75f0e1b cdshealpix-0.6.4.tar.gz -- cgit v1.2.3