summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 08:14:23 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 08:14:23 +0000
commit895c1892eb1bbb3c97f9783c73f303b342405d36 (patch)
tree61f47d115e60b51cef26f7ca55c2f67245a788c6
parenta7ab2c0e5812cf9e0099d3dd7e9ff7e68ed04f6e (diff)
automatic import of python-xesmf
-rw-r--r--.gitignore1
-rw-r--r--python-xesmf.spec111
-rw-r--r--sources1
3 files changed, 113 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..352516d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/xesmf-0.7.1.tar.gz
diff --git a/python-xesmf.spec b/python-xesmf.spec
new file mode 100644
index 0000000..456e1fd
--- /dev/null
+++ b/python-xesmf.spec
@@ -0,0 +1,111 @@
+%global _empty_manifest_terminate_build 0
+Name: python-xesmf
+Version: 0.7.1
+Release: 1
+Summary: Universal Regridder for Geospatial Data
+License: MIT
+URL: https://pypi.org/project/xesmf/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4f/c6/2e2a78679e445fbb559b8d1e5f1f43bf5049b08f59c84d372609c0ec3259/xesmf-0.7.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-cf-xarray
+Requires: python3-numba
+Requires: python3-numpy
+Requires: python3-shapely
+Requires: python3-sparse
+Requires: python3-xarray
+
+%description
+|Binder| |conda| |Build Status| |codecov| |docs| |license| |DOI|
+xESMF is a Python package for
+`regridding <https://climatedataguide.ucar.edu/climate-data-tools-and-analysis/regridding-overview>`_.
+It is
+- **Powerful**: It uses ESMF_/ESMPy_ as backend and can regrid between **general curvilinear grids**
+ with all `ESMF regridding algorithms <https://www.earthsystemcog.org/projects/esmf/regridding>`_,
+ such as **bilinear**, **conservative** and **nearest neighbour**.
+- **Easy-to-use**: It abstracts away ESMF's complicated infrastructure
+ and provides a simple, high-level API, compatible with xarray_ as well as basic numpy arrays.
+- **Fast**: It is faster than ESMPy's original Fortran regridding engine in serial case, and also supports dask_ for `out-of-core, parallel computation <http://xarray.pydata.org/en/stable/dask.html>`_.
+Please see `online documentation <http://xesmf.readthedocs.io/en/latest/>`_, or `play with example notebooks on Binder <https://mybinder.org/v2/gh/pangeo-data/xESMF/master?filepath=doc%2Fnotebooks>`_.
+For new users, I also recommend reading `How to ask for help <https://xesmf.readthedocs.io/en/latest/#how-to-ask-for-help>`_ and `How to support xESMF <https://xesmf.readthedocs.io/en/latest/#how-to-support-xesmf>`_.
+
+%package -n python3-xesmf
+Summary: Universal Regridder for Geospatial Data
+Provides: python-xesmf
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-xesmf
+|Binder| |conda| |Build Status| |codecov| |docs| |license| |DOI|
+xESMF is a Python package for
+`regridding <https://climatedataguide.ucar.edu/climate-data-tools-and-analysis/regridding-overview>`_.
+It is
+- **Powerful**: It uses ESMF_/ESMPy_ as backend and can regrid between **general curvilinear grids**
+ with all `ESMF regridding algorithms <https://www.earthsystemcog.org/projects/esmf/regridding>`_,
+ such as **bilinear**, **conservative** and **nearest neighbour**.
+- **Easy-to-use**: It abstracts away ESMF's complicated infrastructure
+ and provides a simple, high-level API, compatible with xarray_ as well as basic numpy arrays.
+- **Fast**: It is faster than ESMPy's original Fortran regridding engine in serial case, and also supports dask_ for `out-of-core, parallel computation <http://xarray.pydata.org/en/stable/dask.html>`_.
+Please see `online documentation <http://xesmf.readthedocs.io/en/latest/>`_, or `play with example notebooks on Binder <https://mybinder.org/v2/gh/pangeo-data/xESMF/master?filepath=doc%2Fnotebooks>`_.
+For new users, I also recommend reading `How to ask for help <https://xesmf.readthedocs.io/en/latest/#how-to-ask-for-help>`_ and `How to support xESMF <https://xesmf.readthedocs.io/en/latest/#how-to-support-xesmf>`_.
+
+%package help
+Summary: Development documents and examples for xesmf
+Provides: python3-xesmf-doc
+%description help
+|Binder| |conda| |Build Status| |codecov| |docs| |license| |DOI|
+xESMF is a Python package for
+`regridding <https://climatedataguide.ucar.edu/climate-data-tools-and-analysis/regridding-overview>`_.
+It is
+- **Powerful**: It uses ESMF_/ESMPy_ as backend and can regrid between **general curvilinear grids**
+ with all `ESMF regridding algorithms <https://www.earthsystemcog.org/projects/esmf/regridding>`_,
+ such as **bilinear**, **conservative** and **nearest neighbour**.
+- **Easy-to-use**: It abstracts away ESMF's complicated infrastructure
+ and provides a simple, high-level API, compatible with xarray_ as well as basic numpy arrays.
+- **Fast**: It is faster than ESMPy's original Fortran regridding engine in serial case, and also supports dask_ for `out-of-core, parallel computation <http://xarray.pydata.org/en/stable/dask.html>`_.
+Please see `online documentation <http://xesmf.readthedocs.io/en/latest/>`_, or `play with example notebooks on Binder <https://mybinder.org/v2/gh/pangeo-data/xESMF/master?filepath=doc%2Fnotebooks>`_.
+For new users, I also recommend reading `How to ask for help <https://xesmf.readthedocs.io/en/latest/#how-to-ask-for-help>`_ and `How to support xESMF <https://xesmf.readthedocs.io/en/latest/#how-to-support-xesmf>`_.
+
+%prep
+%autosetup -n xesmf-0.7.1
+
+%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-xesmf -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..adf7014
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d4a440ccaebd0cca85e83114b8624b24 xesmf-0.7.1.tar.gz