[arch-commits] Commit in python-pytest/repos (2 files)

Daniel M. Capella polyzen at gemini.archlinux.org
Mon Feb 7 06:53:17 UTC 2022


    Date: Monday, February 7, 2022 @ 06:53:17
  Author: polyzen
Revision: 1127406

archrelease: copy trunk to community-testing-any

Added:
  python-pytest/repos/community-testing-any/
  python-pytest/repos/community-testing-any/PKGBUILD
    (from rev 1127405, python-pytest/trunk/PKGBUILD)

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

Copied: python-pytest/repos/community-testing-any/PKGBUILD (from rev 1127405, python-pytest/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2022-02-07 06:53:17 UTC (rev 1127406)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
+
+pkgname=python-pytest
+pkgver=7.0.0
+pkgrel=1
+pkgdesc="Simple powerful testing with Python"
+arch=('any')
+license=('MIT')
+url="https://pytest.org/"
+depends=('python-attrs' 'python-iniconfig' 'python-packaging' 'python-pluggy'
+         'python-py' 'python-tomli')
+makedepends=('python-setuptools')
+checkdepends=('python-argcomplete' 'python-hypothesis' 'python-mock'
+              'python-nose' 'python-requests' 'python-xmlschema'
+              # Unlisted, but actually used. Check again after a while:
+              'lsof' 'python-asynctest' 'python-decorator' 'python-docutils'
+              'python-jinja' 'python-numpy' 'python-pexpect' 'python-pygments'
+              'python-pytest-xdist' 'python-twisted')
+source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz")
+sha256sums=('dad48ffda394e5ad9aa3b7d7ddf339ed502e5e365b1350e0af65f4a602344b11')
+b2sums=('3af132da903252323086b21eb052d35973f1e81189972d7f1880a22c5dd8a2b779bf2450f394ef9b1e156b780bcf6f677a0b043db204bcb6038a9a85c7f393e6')
+
+# Remove dep on setuptools_scm
+prepare() {
+  cd pytest-$pkgver
+  sed -i "/^\[metadata\]/a version = $pkgver
+  /setuptools-scm/d" setup.cfg
+  sed -i '/setuptools-scm\|wheel/d
+  /\[tool.setuptools_scm\]/,/^$/d' pyproject.toml
+}
+
+build() {
+  cd pytest-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pytest-$pkgver
+  python -m venv --system-site-packages test-env
+  test-env/bin/python setup.py install --optimize=1 --skip-build
+  test-env/bin/python -m pytest
+}
+
+package() {
+  cd pytest-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list