[arch-commits] Commit in python-geopy/repos/community-staging-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Nov 15 17:07:49 UTC 2020
Date: Sunday, November 15, 2020 @ 17:07:49
Author: felixonmars
Revision: 754604
archrelease: copy trunk to community-staging-any
Added:
python-geopy/repos/community-staging-any/PKGBUILD
(from rev 754603, python-geopy/trunk/PKGBUILD)
Deleted:
python-geopy/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 90 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 45 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-15 17:07:39 UTC (rev 754603)
+++ PKGBUILD 2020-11-15 17:07:49 UTC (rev 754604)
@@ -1,45 +0,0 @@
-# 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}"
-}
Copied: python-geopy/repos/community-staging-any/PKGBUILD (from rev 754603, python-geopy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-15 17:07:49 UTC (rev 754604)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=geopy
+pkgname=python-geopy
+pkgver=2.0.0
+pkgrel=3
+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}"
+ # geocoders tests require internet access and are flaky
+ pytest -v --ignore='test/geocoders'
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --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