Date: Tuesday, October 25, 2022 @ 13:51:17
  Author: dvzrv
Revision: 1334782

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   87 +++++++++++++++++++++++++------------------------------------
 1 file changed, 37 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-25 13:50:45 UTC (rev 1334781)
+++ PKGBUILD    2022-10-25 13:51:17 UTC (rev 1334782)
@@ -1,50 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-_name=pytest-html
-pkgname=python-pytest-html
-pkgver=3.1.1
-pkgrel=3
-pkgdesc="Plugin for generating HTML reports for pytest results"
-arch=('any')
-url="https://github.com/pytest-dev/pytest-html";
-license=('MPL2')
-depends=('python-pytest' 'python-pytest-metadata')
-makedepends=('python-setuptools-scm')
-checkdepends=('python-ansi2html' 'python-pytest-mock'
-'python-pytest-rerunfailures' 'python-pytest-xdist')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz";)
-sha512sums=('78091b485d153b54cd76abb8cfeb6494830b1b51a10dc0c00c73eccf67962d2805e3f83972c7ccfd1f877a939b582f80d5ddd5273fd1ddcac2a1a9c2eb121300')
-b2sums=('d2491280ceb4524a10a46891448bb63fe997a4be82062e727fb1d79ef6154a0b4229bbec27c6601372776f7c8dd124aab5d4968482fc24ad24330db5d2520187')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  local _python_version="$(python -c 'import sys; print(".".join(map(str, 
sys.version_info[:2])))')"
-  local _test_dir='test_dir'
-
-  # install into test location
-  mkdir -vp "${_test_dir}"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --root="${_test_dir}"
-
-  export 
PYTHONPATH="${PWD}/${_test_dir}/usr/lib/python${_python_version}/site-packages/:${PYTHONPATH}"
-  export PATH="${PWD}/test_dir/usr/bin:${PATH}"
-  pytest -v
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
-  install -vDm 644 {CHANGES,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}

Copied: python-pytest-html/repos/community-any/PKGBUILD (from rev 1334781, 
python-pytest-html/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-25 13:51:17 UTC (rev 1334782)
@@ -0,0 +1,37 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=pytest-html
+pkgname=python-pytest-html
+pkgver=3.2.0
+pkgrel=1
+pkgdesc="Plugin for generating HTML reports for pytest results"
+arch=(any)
+url="https://github.com/pytest-dev/pytest-html";
+license=(MPL2)
+depends=(python-pytest python-pytest-metadata)
+makedepends=(python-build python-installer python-setuptools-scm 
python-setuptools-scm-git-archive python-wheel)
+checkdepends=(python-ansi2html python-pytest-mock python-pytest-rerunfailures
+python-pytest-xdist)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('1d448b904d484e5a70c4ede4562a54a1eb14d13a07501c9ec52e607e1261dacb1af96bca416fa8fbe03dd7f5c3f833cc0f6ed96b1f433f0057f2aad7f7fbd734')
+b2sums=('7c06f42a1530956fa24a9ea6a1fb8112b053cf461b30f0509c513f8e81044c6b50885d3135157295fbaabb8c24078bd182efc5e868227a3334c13bb1b71d7352')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local _site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+
+  cd $_name-$pkgver
+  python -m installer --destdir=test_dir dist/*.whl
+  export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
+  pytest -vv
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+}

Reply via email to