diff options
author | Marcos Ferreira | 2019-03-19 13:27:23 +0000 |
---|---|---|
committer | Marcos Ferreira | 2019-03-19 13:27:23 +0000 |
commit | 4eefc6e0217ce4f29eace0bee28879013a4dc20a (patch) | |
tree | 546f62085336b70cb83d9e692f36ef0e44f01f3c | |
parent | 3ecfd8edfa98b9ae54919236a8a3c763c8dcc187 (diff) | |
download | aur-python-gogs-client.tar.gz |
fix remove `python-gogs-client` tests
infer the pythnon version used in the system so we can delete the package tests
on the right path
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 8 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = python-gogs-client pkgdesc = Python client for Gogs server pkgver = 1.0.6 - pkgrel = 2 + pkgrel = 3 url = https://github.com/unfoldingWord-dev/python-gogs-client arch = any license = MIT @@ -2,7 +2,7 @@ pkgname="python-gogs-client" pkgver=1.0.6 -pkgrel=2 +pkgrel=3 pkgdesc="Python client for Gogs server" arch=("any") url="https://github.com/unfoldingWord-dev/python-gogs-client" @@ -23,9 +23,11 @@ package() { cd "${pkgname}-${pkgver}" python setup.py install --root=${pkgdir} install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - # see #18 in upstream - # https://git.io/vhmg9 - rm "${pkgdir}/usr/lib/python3.6/site-packages/tests/__init__.py" + # see unfoldingWord-dev/python-gogs-client#18 in upstream + # also see SpotlightKid comment on 2019-03-10 20:21 + # https://aur.archlinux.org/packages/python-gogs-client/ + local pyver=$(python -c 'import sys; print("{0}.{1}".format(*sys.version_info))') + rm -f "${pkgdir}/usr/lib/python${pyver}/site-packages/tests/__init__.py" } -# vim:set ts=2 sw=2 et:
\ No newline at end of file +# vim:set ts=2 sw=2 et: |