[arch-commits] Commit in python-pytest-mpl/repos/community-x86_64 (PKGBUILD PKGBUILD)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Mon Mar 14 09:17:27 UTC 2022


    Date: Monday, March 14, 2022 @ 09:17:27
  Author: kgizdov
Revision: 1152164

archrelease: copy trunk to community-x86_64

Added:
  python-pytest-mpl/repos/community-x86_64/PKGBUILD
    (from rev 1152163, python-pytest-mpl/trunk/PKGBUILD)
Deleted:
  python-pytest-mpl/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   68 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 33 insertions(+), 35 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-14 09:17:20 UTC (rev 1152163)
+++ PKGBUILD	2022-03-14 09:17:27 UTC (rev 1152164)
@@ -1,35 +0,0 @@
-# Maintainer: Konstantin Gizdov <arch at kge dot pw>
-# Contributor: Astro Benzene <universebenzene at sina dot com>
-_pkgname='pytest-mpl'
-pkgname="python-${_pkgname}"
-pkgver=0.14.0
-pkgrel=1
-pkgdesc="Pytest plugin to help with testing figures output from Matplotlib"
-arch=('x86_64')
-url="https://github.com/matplotlib/pytest-mpl"
-license=('BSD')
-depends=('python-pytest' 'python-matplotlib')
-makedepends=('python-setuptools-scm' 'python-wheel' 'git')
-checkdepends=('python-pytest-cov' 'python-pytest-shutil' 'python-jinja' 'python-packaging')
-source=("${pkgname}::git+https://github.com/matplotlib/pytest-mpl.git#tag=v${pkgver}")
-sha256sums=('SKIP')
-
-build() {
-    cd "${srcdir}/${pkgname}"
-    python setup.py bdist_egg
-}
-
-check() {
-    cd "${srcdir}/${pkgname}"
-    cp -r "${_pkgname/-/_}".egg-info build/lib/
-    PYTHONPATH="${srcdir}/${pkgname}/build/lib" pytest -m "mpl_image_compare" tests
-    # fails for some reason atm
-    # PYTHONPATH="${srcdir}/${pkgname}/build/lib" pytest --mpl --cov pytest_mpl tests
-}
-
-package() {
-    cd "${srcdir}/${pkgname}"
-    install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-    install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-    python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
-}

Copied: python-pytest-mpl/repos/community-x86_64/PKGBUILD (from rev 1152163, python-pytest-mpl/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-14 09:17:27 UTC (rev 1152164)
@@ -0,0 +1,33 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Astro Benzene <universebenzene at sina dot com>
+_pkgname='pytest-mpl'
+pkgname="python-${_pkgname}"
+pkgver=0.14.0
+pkgrel=2
+pkgdesc="Pytest plugin to help with testing figures output from Matplotlib"
+arch=('x86_64')
+url="https://github.com/matplotlib/pytest-mpl"
+license=('BSD')
+depends=('python-pytest' 'python-matplotlib')
+makedepends=('python-setuptools-scm' 'python-build' 'python-installer' 'python-wheel' 'git')
+checkdepends=('python-pytest-cov' 'python-pytest-shutil' 'python-jinja' 'python-packaging')
+source=("${pkgname}::git+https://github.com/matplotlib/pytest-mpl.git#tag=v${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+    cd "${srcdir}/${pkgname}"
+    python -m build --wheel --no-isolation
+}
+
+check() {
+    cd "${srcdir}/${pkgname}"
+    # some tests fail
+    PYTHONPATH="${srcdir}/${pkgname}/build/lib" pytest || echo 'some tests fail'
+}
+
+package() {
+    cd "${srcdir}/${pkgname}"
+    python -m installer --destdir="$pkgdir" dist/*.whl
+    install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+    install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list