[arch-commits] Commit in python-geopy/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 10 05:10:55 UTC 2020
Date: Tuesday, November 10, 2020 @ 05:10:54
Author: felixonmars
Revision: 749344
archrelease: copy trunk to community-staging-any
Added:
python-geopy/repos/community-staging-any/
python-geopy/repos/community-staging-any/PKGBUILD
(from rev 749343, python-geopy/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-geopy/repos/community-staging-any/PKGBUILD (from rev 749343, python-geopy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 05:10:54 UTC (rev 749344)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=geopy
+pkgname=python-geopy
+pkgver=2.0.0
+pkgrel=2
+pkgdesc="Geocoding library for Python"
+arch=('any')
+url="https://github.com/geopy/geopy"
+license=('MIT')
+depends=('python-geographiclib')
+makedepends=('python-setuptools')
+checkdepends=('python-aiohttp' 'python-async_generator' 'python-mock'
+'python-pytest-aiohttp' 'python-pytest' 'python-pytz' 'python-requests')
+optdepends=('python-aiohttp: for geopy.adapters.AioHTTPAdapter'
+ 'python-requests: for geopy.adapters.RequestsAdapter')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
+sha512sums=('99411b42d8878736a1bd1de5b5eca4d037fea4d465bb8a689d9da99fb9f186dae32d59985ee9ae95eed1094edd7fa2af12e8c69cf63c8c6770aa1266f8de975d'
+ 'SKIP')
+validpgpkeys=('BE3D633AB6792715ECF34D742D3B9C1712FF84F7') # Kostya Esmukov <kostya at esmukov.ru>
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 {AUTHORS,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
More information about the arch-commits
mailing list