Date: Monday, April 17, 2023 @ 09:07:52
  Author: dvzrv
Revision: 1446661

archrelease: copy trunk to community-staging-any

Added:
  python-loguru/repos/community-staging-any/PKGBUILD
    (from rev 1446660, python-loguru/trunk/PKGBUILD)
Deleted:
  python-loguru/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |  103 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 49 insertions(+), 54 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-17 09:07:38 UTC (rev 1446660)
+++ PKGBUILD    2023-04-17 09:07:52 UTC (rev 1446661)
@@ -1,54 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-_name=loguru
-pkgname=python-loguru
-pkgver=0.6.0
-pkgrel=4
-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
-)
-source=(
-  
https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz
-)
-sha256sums=('066bd06758d0a513e9836fd9c6b5a75bfb3fd36841f4b996bc60b547a309d41c')
-b2sums=('c1faed884b8831ef2e708539caa61d4d2a9c92b6465fcd22a31aa614d65ff384fbf82730e08a5c1da9026079f44bda2bd13b5602be9b0535970c03f8bf132798')
-
-build() {
-  cd $_name-$pkgver
-  python -m build --wheel --no-isolation
-}
-
-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
-    # python 3.11 compat still not released: 
https://github.com/Delgan/loguru/issues/654
-    --ignore tests/test_filesink_rotation.py
-    --deselect tests/test_interception.py::test_formatting
-    --deselect tests/test_interception.py::test_using_logging_function
-  )
-
-  cd $_name-$pkgver
-  pytest -vv "${pytest_options[@]}"
-}
-
-package() {
-  cd $_name-$pkgver
-  python -m installer --destdir="$pkgdir" dist/*.whl
-  install -vDm 644 *.rst -t "$pkgdir/usr/share/doc/$pkgname/"
-  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
-}

Copied: python-loguru/repos/community-staging-any/PKGBUILD (from rev 1446660, 
python-loguru/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-04-17 09:07:52 UTC (rev 1446661)
@@ -0,0 +1,49 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=loguru
+pkgname=python-loguru
+pkgver=0.7.0
+pkgrel=2
+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
+)
+source=(
+  
https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz
+)
+sha256sums=('1612053ced6ae84d7959dd7d5e431a0532642237ec21f7fd83ac73fe539e03e1')
+b2sums=('9ff9d301c441ed418c0d49c55a4bf94b6a3d9b852145213aacfe2f520dd76157efc480ded287e98eada956e131c3fbfa8cee0e8492d8c32493aa903e8b3644f4')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local pytest_options=(
+    -vv
+    --ignore tests/test_type_hinting.py  # we don't care about type hints
+  )
+
+  cd $_name-$pkgver
+  pytest "${pytest_options[@]}"
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 *.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+}

Reply via email to