%global _empty_manifest_terminate_build 0 Name: python-geolinks Version: 0.2.1 Release: 1 Summary: Utilities to deal with geospatial links License: MIT URL: https://github.com/geopython/geolinks Source0: https://mirrors.nju.edu.cn/pypi/web/packages/bf/d1/2f821ab41184d9859b47a741ab6377c5e5ec355003a63547d0efe09acf1c/geolinks-0.2.1.tar.gz BuildArch: noarch %description [![Build Status](https://github.com/geopython/geolinks/workflows/build%20%E2%9A%99%EF%B8%8F/badge.svg)](https://github.com/geopython/geolinks/actions) # geolinks Utilities to deal with geospatial links. Working implementation of the Cat-Interop work at https://github.com/OSGeo/Cat-Interop ## Installation geolinks is best installed and used within a Python virtualenv. ### Requirements * Python 3 and above * Python [virtualenv](https://virtualenv.pypa.io/) package ### Dependencies Dependencies are listed in [requirements.txt](requirements.txt). Dependencies are automatically installed during geolinks's installation. ### Installing the Package from source: ```bash python3 -m venv my-env cd my-env . bin/activate git clone https://github.com/geopython/geolinks.git cd geolinks python setup.py build python setup.py install ``` via pip: ```bash pip install geolinks ``` ## Running ```bash geolinks link sniff 'http://host/wms?service=WMS' ``` ## Using the API from Python ```python >>> from geolinks import sniff_link >>> sniff_link('http://host/wms?service=WMS') 'OGC:WMS' >>> sniff_link('http://host/wms?service=WPS') 'OGC:WPS' >>> sniff_link('http://host/wms?service=CSW') 'OGC:CSW' >>> sniff_link('http://host/data/roads.kmz') 'OGC:KML' >>> sniff_link('http://host/data/roads.kml') 'OGC:KML' ``` ### Running Tests ```bash # via setuptools python setup.py test # manually cd tests python run_tests.py ``` ## Development ### Setting up a Development Environment Same as installing a package. Use a virtualenv. Also install developer requirements: ```bash pip install -r requirements-dev.txt ``` ## Releasing ```bash vi geolinks/__init__.py git commit -m 'update release version' geolinks/__init__.py vi debian/changelog # add changelog entry and summary of updates # push changes git push origin master git tag -a x.y.z -m 'tagging release x.y.z' # push tag git push --tags rm -fr build dist *.egg-info python setup.py sdist bdist_wheel --universal twine upload dist/* ``` ### Code Conventions * [PEP8](https://www.python.org/dev/peps/pep-0008) ### Bugs and Issues All bugs, enhancements and issues are managed on [GitHub](https://github.com/geopython/geolinks/issues). ## Contact * [Tom Kralidis](https://github.com/tomkralidis) %package -n python3-geolinks Summary: Utilities to deal with geospatial links Provides: python-geolinks BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-geolinks [![Build Status](https://github.com/geopython/geolinks/workflows/build%20%E2%9A%99%EF%B8%8F/badge.svg)](https://github.com/geopython/geolinks/actions) # geolinks Utilities to deal with geospatial links. Working implementation of the Cat-Interop work at https://github.com/OSGeo/Cat-Interop ## Installation geolinks is best installed and used within a Python virtualenv. ### Requirements * Python 3 and above * Python [virtualenv](https://virtualenv.pypa.io/) package ### Dependencies Dependencies are listed in [requirements.txt](requirements.txt). Dependencies are automatically installed during geolinks's installation. ### Installing the Package from source: ```bash python3 -m venv my-env cd my-env . bin/activate git clone https://github.com/geopython/geolinks.git cd geolinks python setup.py build python setup.py install ``` via pip: ```bash pip install geolinks ``` ## Running ```bash geolinks link sniff 'http://host/wms?service=WMS' ``` ## Using the API from Python ```python >>> from geolinks import sniff_link >>> sniff_link('http://host/wms?service=WMS') 'OGC:WMS' >>> sniff_link('http://host/wms?service=WPS') 'OGC:WPS' >>> sniff_link('http://host/wms?service=CSW') 'OGC:CSW' >>> sniff_link('http://host/data/roads.kmz') 'OGC:KML' >>> sniff_link('http://host/data/roads.kml') 'OGC:KML' ``` ### Running Tests ```bash # via setuptools python setup.py test # manually cd tests python run_tests.py ``` ## Development ### Setting up a Development Environment Same as installing a package. Use a virtualenv. Also install developer requirements: ```bash pip install -r requirements-dev.txt ``` ## Releasing ```bash vi geolinks/__init__.py git commit -m 'update release version' geolinks/__init__.py vi debian/changelog # add changelog entry and summary of updates # push changes git push origin master git tag -a x.y.z -m 'tagging release x.y.z' # push tag git push --tags rm -fr build dist *.egg-info python setup.py sdist bdist_wheel --universal twine upload dist/* ``` ### Code Conventions * [PEP8](https://www.python.org/dev/peps/pep-0008) ### Bugs and Issues All bugs, enhancements and issues are managed on [GitHub](https://github.com/geopython/geolinks/issues). ## Contact * [Tom Kralidis](https://github.com/tomkralidis) %package help Summary: Development documents and examples for geolinks Provides: python3-geolinks-doc %description help [![Build Status](https://github.com/geopython/geolinks/workflows/build%20%E2%9A%99%EF%B8%8F/badge.svg)](https://github.com/geopython/geolinks/actions) # geolinks Utilities to deal with geospatial links. Working implementation of the Cat-Interop work at https://github.com/OSGeo/Cat-Interop ## Installation geolinks is best installed and used within a Python virtualenv. ### Requirements * Python 3 and above * Python [virtualenv](https://virtualenv.pypa.io/) package ### Dependencies Dependencies are listed in [requirements.txt](requirements.txt). Dependencies are automatically installed during geolinks's installation. ### Installing the Package from source: ```bash python3 -m venv my-env cd my-env . bin/activate git clone https://github.com/geopython/geolinks.git cd geolinks python setup.py build python setup.py install ``` via pip: ```bash pip install geolinks ``` ## Running ```bash geolinks link sniff 'http://host/wms?service=WMS' ``` ## Using the API from Python ```python >>> from geolinks import sniff_link >>> sniff_link('http://host/wms?service=WMS') 'OGC:WMS' >>> sniff_link('http://host/wms?service=WPS') 'OGC:WPS' >>> sniff_link('http://host/wms?service=CSW') 'OGC:CSW' >>> sniff_link('http://host/data/roads.kmz') 'OGC:KML' >>> sniff_link('http://host/data/roads.kml') 'OGC:KML' ``` ### Running Tests ```bash # via setuptools python setup.py test # manually cd tests python run_tests.py ``` ## Development ### Setting up a Development Environment Same as installing a package. Use a virtualenv. Also install developer requirements: ```bash pip install -r requirements-dev.txt ``` ## Releasing ```bash vi geolinks/__init__.py git commit -m 'update release version' geolinks/__init__.py vi debian/changelog # add changelog entry and summary of updates # push changes git push origin master git tag -a x.y.z -m 'tagging release x.y.z' # push tag git push --tags rm -fr build dist *.egg-info python setup.py sdist bdist_wheel --universal twine upload dist/* ``` ### Code Conventions * [PEP8](https://www.python.org/dev/peps/pep-0008) ### Bugs and Issues All bugs, enhancements and issues are managed on [GitHub](https://github.com/geopython/geolinks/issues). ## Contact * [Tom Kralidis](https://github.com/tomkralidis) %prep %autosetup -n geolinks-0.2.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-geolinks -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 0.2.1-1 - Package Spec generated