[arch-commits] Commit in python-geopy/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Mon Feb 3 08:43:42 UTC 2020


    Date: Monday, February 3, 2020 @ 08:43:41
  Author: dvzrv
Revision: 561917

archrelease: copy trunk to community-any

Added:
  python-geopy/repos/community-any/PKGBUILD
    (from rev 561916, python-geopy/trunk/PKGBUILD)
Deleted:
  python-geopy/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  100 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 49 insertions(+), 51 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-03 08:43:29 UTC (rev 561916)
+++ PKGBUILD	2020-02-03 08:43:41 UTC (rev 561917)
@@ -1,51 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=geopy
-pkgname=python-geopy
-pkgver=1.20.0
-pkgrel=2
-pkgdesc="Geocoding library for Python"
-arch=('any')
-url="https://github.com/geopy/geopy"
-license=('MIT')
-depends=('python-geographiclib')
-makedepends=('git' 'python-setuptools')
-checkdepends=('python-coverage' 'python-mock' 'python-pytest' 'python-pytz' 'python-six')
-# sdist on pypi doesn't include tests:
-# https://github.com/geopy/geopy/issues/385
-# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
-source=("${pkgname}-${pkgver}::git+https://github.com/${_name}/${_name}#tag=${pkgver}?signed")
-sha512sums=('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}"
-  # some endpoint tests fail:
-  # https://github.com/geopy/geopy/issues/386
-  pytest -v -k 'not test_country_codes_list \
-               and not test_country_codes_str \
-               and not test_params \
-               and not test_reverse \
-               and not test_reverse_kind_param \
-               and not test_unicode_name'
-}
-
-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-any/PKGBUILD (from rev 561916, python-geopy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-02-03 08:43:41 UTC (rev 561917)
@@ -0,0 +1,49 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=geopy
+pkgname=python-geopy
+pkgver=1.21.0
+pkgrel=1
+pkgdesc="Geocoding library for Python"
+arch=('any')
+url="https://github.com/geopy/geopy"
+license=('MIT')
+depends=('python-geographiclib')
+makedepends=('git' 'python-setuptools')
+checkdepends=('python-coverage' 'python-mock' 'python-pytest' 'python-pytz' 'python-six')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
+sha512sums=('8060d565d1e86cc3ebea6c5a1f923565f4384faedad478a11dd61ac6c00210a642c2b496802b908bd1bcc12da14f62e0bfc6ce403062205f2d7f39061555f7d5'
+            '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}"
+  # some endpoint tests fail:
+  # https://github.com/geopy/geopy/issues/386
+  pytest -v -k 'not test_country_codes_list \
+               and not test_country_codes_str \
+               and not test_params \
+               and not test_reverse \
+               and not test_reverse_kind_param \
+               and not test_unicode_name'
+}
+
+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