Date: Thursday, April 6, 2023 @ 15:31:43
  Author: dvzrv
Revision: 1439420

upgpkg: python-loguru 0.6.0-3: Rebuild to re-sign package.

Use bash arrays with one entry per line for better handling.
Add further failing tests to list of deselected ones.

Modified:
  python-loguru/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-06 15:25:21 UTC (rev 1439419)
+++ PKGBUILD    2023-04-06 15:31:43 UTC (rev 1439420)
@@ -3,14 +3,23 @@
 _name=loguru
 pkgname=python-loguru
 pkgver=0.6.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Python logging made (stupidly) simple"
 arch=(any)
 url="https://github.com/Delgan/loguru";
 license=(MIT)
 depends=(python)
-makedepends=(python-build python-installer python-setuptools python-wheel)
-checkdepends=(python-colorama python-freezegun python-pytest)
+makedepends=(
+  python-build
+  python-installer
+  python-setuptools
+  python-wheel
+)
+checkdepends=(
+  python-colorama
+  python-freezegun
+  python-pytest
+)
 
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
 sha256sums=('066bd06758d0a513e9836fd9c6b5a75bfb3fd36841f4b996bc60b547a309d41c')
 
b2sums=('c1faed884b8831ef2e708539caa61d4d2a9c92b6465fcd22a31aa614d65ff384fbf82730e08a5c1da9026079f44bda2bd13b5602be9b0535970c03f8bf132798')
@@ -21,9 +30,14 @@
 }
 
 check() {
+  local pytest_options=(
+    --deselect tests/test_repr.py::test_function_without_name
+    --deselect tests/test_repr.py::test_function_with_empty_name
+    --deselect 
tests/test_filesink_rotation.py::test_time_rotation_reopening_native # 
https://github.com/Delgan/loguru/issues/658
+  )
+
   cd $_name-$pkgver
-  # ignore failing test: https://github.com/Delgan/loguru/issues/658
-  pytest -vv -k "not test_time_rotation_reopening_native"
+  pytest -vv "${pytest_options[@]}"
 }
 
 package() {

Reply via email to