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

Daniel M. Capella polyzen at gemini.archlinux.org
Sat Sep 3 01:11:45 UTC 2022


    Date: Saturday, September 3, 2022 @ 01:11:45
  Author: polyzen
Revision: 1291017

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  111 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 56 insertions(+), 55 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-03 01:11:23 UTC (rev 1291016)
+++ PKGBUILD	2022-09-03 01:11:45 UTC (rev 1291017)
@@ -1,55 +0,0 @@
-# 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.1.2
-pkgrel=2
-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-build' 'python-installer' 'python-setuptools' 'python-wheel')
-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=('a06a0425453864a270bc45e71f783330a7428defb4230fb5e6a731fde06ecd45')
-b2sums=('c59e477ba52f2ff6f9885b91bbdc9b70dd4ffced3902417cd2e8cf28ba778e92ab5738f1be4d1c8c5c41c7140ac56622b6d44261d618426ae39fd00026bf139c')
-
-# 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 -m build --wheel --skip-dependency-check --no-isolation
-}
-
-check() {
-  cd pytest-$pkgver
-  python -m venv --system-site-packages test-env
-  test-env/bin/python -m installer dist/*.whl
-  test-env/bin/python -m pytest
-}
-
-package() {
-  cd pytest-$pkgver
-  python -m installer --destdir="$pkgdir" dist/*.whl
-
-  # Symlink license file
-  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
-  install -d "$pkgdir"/usr/share/licenses/$pkgname
-  ln -s "$site_packages"/pytest-$pkgver.dist-info/LICENSE \
-    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-pytest/repos/community-any/PKGBUILD (from rev 1291016, python-pytest/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-09-03 01:11:45 UTC (rev 1291017)
@@ -0,0 +1,56 @@
+# 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.1.3
+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-build' 'python-installer' 'python-setuptools' 'python-wheel')
+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=('4f365fec2dff9c1162f834d9f18af1ba13062db0c708bf7b946f8a5c76180c39')
+b2sums=('39935fbfc9eb79a220324b8642e80225472a658f85fa8ef50b1dff5396dd30cfde22b2faf3909df0ba7d08ea14f548794974a7fd7670d7204e8d625ea5949630')
+
+# 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 -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd pytest-$pkgver
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m installer dist/*.whl
+  # https://github.com/pytest-dev/pytest/issues/10042
+  test-env/bin/python -m pytest -o xfail_strict=False
+}
+
+package() {
+  cd pytest-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # Symlink license file
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  install -d "$pkgdir"/usr/share/licenses/$pkgname
+  ln -s "$site_packages"/pytest-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list