[arch-commits] Commit in python-pytest-tap/trunk (PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Sun Nov 15 18:48:20 UTC 2020
Date: Sunday, November 15, 2020 @ 18:48:19
Author: foutrelis
Revision: 754650
Bump to 3.2; build from GitHub (PyPI lacks tests)
Modified:
python-pytest-tap/trunk/PKGBUILD
----------+
PKGBUILD | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-15 18:46:49 UTC (rev 754649)
+++ PKGBUILD 2020-11-15 18:48:19 UTC (rev 754650)
@@ -2,25 +2,30 @@
pkgname=python-pytest-tap
_pyname=${pkgname#python-}
-pkgver=3.1
-pkgrel=1
+pkgver=3.2
+pkgrel=0
pkgdesc="Test Anything Protocol (TAP) reporting plugin for pytest."
arch=(any)
url="https://github.com/python-tap/pytest-tap"
license=('BSD')
depends=('python-pytest' 'python-tappy')
-makedepends=('python-setuptools' 'python-tox')
-source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
-md5sums=('bab3a774f4a4564c2196f6b40e5a81db')
+makedepends=('python-setuptools')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/python-tap/pytest-tap/archive/v${pkgver}.tar.gz)
+sha256sums=('d5040ba2e1ed5855babfd50bffeb5e877912750ab33d5c07b20c00f2f2626fed')
build() {
cd "${srcdir}/${_pyname}-${pkgver}"
python setup.py build
+
+ # need to compile translation files when using the tarball from GitHub
+ python setup.py -v compile_catalog
}
check() {
cd "${srcdir}/${_pyname}-${pkgver}"
- tox
+ local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ python setup.py install --root="${srcdir}/tmp_install" --optimize=1
+ PYTHONPATH="${srcdir}/tmp_install/usr/lib/python${python_version}/site-packages" pytest
}
package() {
More information about the arch-commits
mailing list