[arch-commits] Commit in python-mistune/repos/community-staging-any (2 files)

David Runge dvzrv at gemini.archlinux.org
Wed Dec 8 20:21:23 UTC 2021


    Date: Wednesday, December 8, 2021 @ 20:21:22
  Author: dvzrv
Revision: 1065694

archrelease: copy trunk to community-staging-any

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

----------+
 PKGBUILD |   73 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 37 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-08 20:21:16 UTC (rev 1065693)
+++ PKGBUILD	2021-12-08 20:21:22 UTC (rev 1065694)
@@ -1,36 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-# Contributor: shmilee
-
-_pkgname=mistune
-pkgname=python-mistune
-pkgver=2.0.0rc1
-pkgrel=3
-pkgdesc="A fast yet powerful Python Markdown parser with renderers and plugins"
-arch=('any')
-url="https://github.com/lepture/mistune"
-license=('BSD')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/lepture/mistune/archive/refs/tags/v${pkgver}.tar.gz")
-sha512sums=('02d75f72f992cf73e97ab52a531cc68db289beede8631aa51e836ea16eced1853f6120b21b1f06aff69698ec7ed5ea74282de849687a75aeb851e990f67614a0')
-b2sums=('73440038e056eb610cf26783d49572e3687f716307534ec3e74e20f370276e480c1d140d78ddbddbb441fbada9ec604bedb3c34dd5019ee82d20cb529726d030')
-
-build() {
-  cd "${_pkgname}-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "${_pkgname}-$pkgver"
-  pytest -vv
-}
-
-package() {
-  cd "${_pkgname}-$pkgver"
-  python setup.py install --optimize=1 --root="$pkgdir/"
-  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/${pkgname}/"
-  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname}/"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-mistune/repos/community-staging-any/PKGBUILD (from rev 1065693, python-mistune/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-08 20:21:22 UTC (rev 1065694)
@@ -0,0 +1,37 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: David Runge <dvzrv at archlinux.org>
+# Contributor: shmilee
+
+_pkgname=mistune
+pkgname=python-mistune
+pkgver=2.0.0
+pkgrel=2
+pkgdesc="A fast yet powerful Python Markdown parser with renderers and plugins"
+arch=(any)
+url="https://github.com/lepture/mistune"
+license=(BSD)
+depends=(python)
+makedepends=(python-build python-install python-setuptools python-wheel)
+checkdepends=(python-pytest)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/lepture/mistune/archive/refs/tags/v${pkgver}.tar.gz")
+sha512sums=('4d63695f7153e409adcadec2e053987e6f4c7e627a73c0338a163fe04a8eb2f0e0c6f0222063dc49b724f89f6a56eeebf6404aef30146a49760311e5a87c5d7b')
+b2sums=('bebebe26ed581095824c86d044d4f4564915c5bdba3e1fab5470a6b6ebb0775d8c1ec995d38a281b31f8d23d221f1d0024375bfd19adec284245ee9a155d6c8e')
+
+build() {
+  cd "${_pkgname}-$pkgver"
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd "${_pkgname}-$pkgver"
+  pytest -vv
+}
+
+package() {
+  cd "${_pkgname}-$pkgver"
+  python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/${pkgname}/"
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname}/"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list