[arch-commits] Commit in python-geopy/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Mon Jun 29 09:42:43 UTC 2020
Date: Monday, June 29, 2020 @ 09:42:42
Author: dvzrv
Revision: 656053
archrelease: copy trunk to community-any
Added:
python-geopy/repos/community-any/PKGBUILD
(from rev 656052, python-geopy/trunk/PKGBUILD)
Deleted:
python-geopy/repos/community-any/PKGBUILD
----------+
PKGBUILD | 88 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 45 insertions(+), 43 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-29 09:42:32 UTC (rev 656052)
+++ PKGBUILD 2020-06-29 09:42:42 UTC (rev 656053)
@@ -1,43 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=geopy
-pkgname=python-geopy
-pkgver=1.22.0
-pkgrel=1
-pkgdesc="Geocoding library for Python"
-arch=('any')
-url="https://github.com/geopy/geopy"
-license=('MIT')
-depends=('python-geographiclib')
-makedepends=('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=('18773b2bfc95c4bf26e27a0a1a09de4b57cdae39e67e4f73ff5ccf92c32844f3b517d3a8fa2a027bd1c4cee189182ad3becb0f4fc8773e1375ea2e22d1f726ba'
- '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-any/PKGBUILD (from rev 656052, python-geopy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-06-29 09:42:42 UTC (rev 656053)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=geopy
+pkgname=python-geopy
+pkgver=2.0.0
+pkgrel=1
+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