diff options
Diffstat (limited to 'python-turfpy.spec')
| -rw-r--r-- | python-turfpy.spec | 255 |
1 files changed, 255 insertions, 0 deletions
diff --git a/python-turfpy.spec b/python-turfpy.spec new file mode 100644 index 0000000..e6fe096 --- /dev/null +++ b/python-turfpy.spec @@ -0,0 +1,255 @@ +%global _empty_manifest_terminate_build 0 +Name: python-turfpy +Version: 0.0.7 +Release: 1 +Summary: A Python library for performing geospatial data analysis which reimplements turf.js. +License: MIT +URL: https://pypi.org/project/turfpy/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/14/ef/30a4d7affda418275a00601a59da69ebf1575d8ccc0ae00f7943e36fb472/turfpy-0.0.7.tar.gz +BuildArch: noarch + + +%description +# Turfpy +[](https://travis-ci.com/omanges/turfpy) +[](https://pypi.org/project/turfpy/) +[](https://pypi.org/project/turfpy/) +[](https://pypi.org/project/turfpy/) +[](https://pypi.org/project/turfpy/) +[](https://lgtm.com/projects/g/omanges/turfpy/alerts/) +[](https://lgtm.com/projects/g/omanges/turfpy/context:python) +[](https://pepy.tech/project/turfpy/month) +[](https://anaconda.org/conda-forge/turfpy) +[](https://anaconda.org/conda-forge/turfpy) +[](https://gitter.im/turfpy/turfpy-user-group?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +[](https://turfpy.readthedocs.io/en/latest/?badge=latest) +[](https://github.com/psf/black) +[](https://github.com/omanges/turfpy/commits/master) +[](https://github.com/omanges/turfpy/graphs/contributors) + +Demo: + +[](https://mybinder.org/v2/gh/omanges/turfpy/master?urlpath=lab/tree/examples) + + +A Python library for performing geospatial data analysis which reimplements turf.js. + +## Installation + +You can install the Turfpy from [PyPI](https://pypi.org/project/turfpy/): + + pip install turfpy + +If you prefer to use [conda](https://anaconda.org/conda-forge/turfpy): + + conda install -c conda-forge turfpy + +## Test Suite + +You can run the test suite locally: + +```bash +pip install -r dev_requirements.txt +pytest -s -v --cov=turfpy tests +``` + +## Features +It supports below features: + +- [Measurements](https://github.com/omanges/turfpy/blob/master/measurements.md) + +- [Transformations](https://github.com/omanges/turfpy/blob/master/transformation.md) + +- [Misc](https://github.com/omanges/turfpy/blob/master/misc.md) + +- [Random](https://github.com/omanges/turfpy/blob/master/random.md) + +## Documentation + +Documentation can be found at: [docs](https://turfpy.readthedocs.io/en/latest/) + + + + + + +%package -n python3-turfpy +Summary: A Python library for performing geospatial data analysis which reimplements turf.js. +Provides: python-turfpy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-turfpy +# Turfpy +[](https://travis-ci.com/omanges/turfpy) +[](https://pypi.org/project/turfpy/) +[](https://pypi.org/project/turfpy/) +[](https://pypi.org/project/turfpy/) +[](https://pypi.org/project/turfpy/) +[](https://lgtm.com/projects/g/omanges/turfpy/alerts/) +[](https://lgtm.com/projects/g/omanges/turfpy/context:python) +[](https://pepy.tech/project/turfpy/month) +[](https://anaconda.org/conda-forge/turfpy) +[](https://anaconda.org/conda-forge/turfpy) +[](https://gitter.im/turfpy/turfpy-user-group?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +[](https://turfpy.readthedocs.io/en/latest/?badge=latest) +[](https://github.com/psf/black) +[](https://github.com/omanges/turfpy/commits/master) +[](https://github.com/omanges/turfpy/graphs/contributors) + +Demo: + +[](https://mybinder.org/v2/gh/omanges/turfpy/master?urlpath=lab/tree/examples) + + +A Python library for performing geospatial data analysis which reimplements turf.js. + +## Installation + +You can install the Turfpy from [PyPI](https://pypi.org/project/turfpy/): + + pip install turfpy + +If you prefer to use [conda](https://anaconda.org/conda-forge/turfpy): + + conda install -c conda-forge turfpy + +## Test Suite + +You can run the test suite locally: + +```bash +pip install -r dev_requirements.txt +pytest -s -v --cov=turfpy tests +``` + +## Features +It supports below features: + +- [Measurements](https://github.com/omanges/turfpy/blob/master/measurements.md) + +- [Transformations](https://github.com/omanges/turfpy/blob/master/transformation.md) + +- [Misc](https://github.com/omanges/turfpy/blob/master/misc.md) + +- [Random](https://github.com/omanges/turfpy/blob/master/random.md) + +## Documentation + +Documentation can be found at: [docs](https://turfpy.readthedocs.io/en/latest/) + + + + + + +%package help +Summary: Development documents and examples for turfpy +Provides: python3-turfpy-doc +%description help +# Turfpy +[](https://travis-ci.com/omanges/turfpy) +[](https://pypi.org/project/turfpy/) +[](https://pypi.org/project/turfpy/) +[](https://pypi.org/project/turfpy/) +[](https://pypi.org/project/turfpy/) +[](https://lgtm.com/projects/g/omanges/turfpy/alerts/) +[](https://lgtm.com/projects/g/omanges/turfpy/context:python) +[](https://pepy.tech/project/turfpy/month) +[](https://anaconda.org/conda-forge/turfpy) +[](https://anaconda.org/conda-forge/turfpy) +[](https://gitter.im/turfpy/turfpy-user-group?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +[](https://turfpy.readthedocs.io/en/latest/?badge=latest) +[](https://github.com/psf/black) +[](https://github.com/omanges/turfpy/commits/master) +[](https://github.com/omanges/turfpy/graphs/contributors) + +Demo: + +[](https://mybinder.org/v2/gh/omanges/turfpy/master?urlpath=lab/tree/examples) + + +A Python library for performing geospatial data analysis which reimplements turf.js. + +## Installation + +You can install the Turfpy from [PyPI](https://pypi.org/project/turfpy/): + + pip install turfpy + +If you prefer to use [conda](https://anaconda.org/conda-forge/turfpy): + + conda install -c conda-forge turfpy + +## Test Suite + +You can run the test suite locally: + +```bash +pip install -r dev_requirements.txt +pytest -s -v --cov=turfpy tests +``` + +## Features +It supports below features: + +- [Measurements](https://github.com/omanges/turfpy/blob/master/measurements.md) + +- [Transformations](https://github.com/omanges/turfpy/blob/master/transformation.md) + +- [Misc](https://github.com/omanges/turfpy/blob/master/misc.md) + +- [Random](https://github.com/omanges/turfpy/blob/master/random.md) + +## Documentation + +Documentation can be found at: [docs](https://turfpy.readthedocs.io/en/latest/) + + + + + + +%prep +%autosetup -n turfpy-0.0.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-turfpy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.7-1 +- Package Spec generated |
