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

Felix Yan felixonmars at gemini.archlinux.org
Sun Aug 1 17:34:14 UTC 2021


    Date: Sunday, August 1, 2021 @ 17:34:14
  Author: felixonmars
Revision: 991973

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   75 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 41 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-08-01 17:34:03 UTC (rev 991972)
+++ PKGBUILD	2021-08-01 17:34:14 UTC (rev 991973)
@@ -1,34 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-pytest-relaxed
-pkgver=1.1.5
-pkgrel=5
-pkgdesc='Relaxed test discovery for pytest'
-arch=('any')
-license=('BSD')
-url='https://github.com/bitprophet/pytest-relaxed'
-depends=('python-pytest' 'python-decorator' 'python-six')
-makedepends=('python-setuptools' 'python-pytest' 'python-decorator' 'python-six')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/bitprophet/pytest-relaxed/archive/$pkgver.tar.gz")
-sha512sums=('a5484bc92be29e5228afb7d9911c1d3a7d6e493bec44af541780de24b91dfa8e8c9e1245acd8ae8670805294eb52b20f7c4abefad1afb8373109249a2df1cdaa')
-
-build() {
-  cd "$srcdir"/pytest-relaxed-$pkgver
-  python setup.py build
-}
-
-check() {
-  # Hack entry points by installing it
-
-  cd "$srcdir"/pytest-relaxed-$pkgver
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" pytest || echo "Tests failed"
-}
-
-package() {
-  cd pytest-relaxed-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pytest-relaxed/repos/community-any/PKGBUILD (from rev 991972, python-pytest-relaxed/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-08-01 17:34:14 UTC (rev 991973)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-relaxed
+pkgver=1.1.5
+pkgrel=6
+pkgdesc='Relaxed test discovery for pytest'
+arch=('any')
+license=('BSD')
+url='https://github.com/bitprophet/pytest-relaxed'
+depends=('python-pytest' 'python-decorator' 'python-six')
+makedepends=('python-setuptools')
+source=("https://github.com/bitprophet/pytest-relaxed/archive/$pkgver/$pkgbase-$pkgver.tar.gz"
+        $pkgname-pytest5.4-warnings.patch::https://github.com/bitprophet/pytest-relaxed/pull/10.patch)
+sha512sums=('a5484bc92be29e5228afb7d9911c1d3a7d6e493bec44af541780de24b91dfa8e8c9e1245acd8ae8670805294eb52b20f7c4abefad1afb8373109249a2df1cdaa'
+            '4102a7cea45bcb90b8aa93ed619162f6c9554632dab95a7df152ebe58de9fd038ceef74630ad37f0abc5a3d032b79b78427f09ab489003703af607a92929bda9')
+
+prepare() {
+  cd pytest-relaxed-$pkgver
+  patch -p1 -i ../$pkgname-pytest5.4-warnings.patch
+}
+
+build() {
+  cd pytest-relaxed-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd pytest-relaxed-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" pytest || echo "Tests failed"
+}
+
+package() {
+  cd pytest-relaxed-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list