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

Antonio Rojas arojas at gemini.archlinux.org
Mon Jul 4 21:31:45 UTC 2022


    Date: Monday, July 4, 2022 @ 21:31:45
  Author: arojas
Revision: 1244014

archrelease: copy trunk to community-any

Added:
  python-pytest-tap/repos/community-any/PKGBUILD
    (from rev 1244013, python-pytest-tap/trunk/PKGBUILD)
Deleted:
  python-pytest-tap/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   71 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 37 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-04 21:31:37 UTC (rev 1244013)
+++ PKGBUILD	2022-07-04 21:31:45 UTC (rev 1244014)
@@ -1,34 +0,0 @@
-# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
-
-pkgname=python-pytest-tap
-_pyname=${pkgname#python-}
-pkgver=3.2
-pkgrel=2
-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')
-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}"
-	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() {
-	cd "${srcdir}/${_pyname}-${pkgver}"
-	python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
-}

Copied: python-pytest-tap/repos/community-any/PKGBUILD (from rev 1244013, python-pytest-tap/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-07-04 21:31:45 UTC (rev 1244014)
@@ -0,0 +1,37 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+
+pkgname=python-pytest-tap
+_pyname=${pkgname#python-}
+pkgver=3.3
+pkgrel=1
+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')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/python-tap/pytest-tap/archive/v${pkgver}.tar.gz
+        https://github.com/python-tap/pytest-tap/commit/4ed0138b.patch)
+sha256sums=('6f3f7895e005c19391be46dc592182d52c9368fe7c4a5bec292ba4632314ff42'
+            '459d4040ecaa5a088330c99800695c3e688b22bda6fd6b4aa8a30da85012085f')
+
+prepare() {
+  patch -d $_pyname-$pkgver -p1 < 4ed0138b.patch # Fix tests
+}
+
+build() {
+	cd "${srcdir}/${_pyname}-${pkgver}"
+	python setup.py build
+}
+
+check() {
+	cd "${srcdir}/${_pyname}-${pkgver}"
+	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() {
+	cd "${srcdir}/${_pyname}-${pkgver}"
+	python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
+}



More information about the arch-commits mailing list