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

Caleb Maclennan alerque at gemini.archlinux.org
Tue Jun 7 09:00:21 UTC 2022


    Date: Tuesday, June 7, 2022 @ 09:00:21
  Author: alerque
Revision: 1228427

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   69 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 32 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-07 08:59:51 UTC (rev 1228426)
+++ PKGBUILD	2022-06-07 09:00:21 UTC (rev 1228427)
@@ -1,37 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Caleb Maclennan <caleb at alerque.com>
-
-pkgname=python-pypandoc
-pkgver=1.7.5
-pkgrel=1
-pkgdesc="Thin wrapper for pandoc"
-arch=('any')
-license=('MIT')
-url="https://github.com/bebraw/pypandoc"
-depends=('pandoc')
-makedepends=('python-setuptools')
-checkdepends=('texlive-core' 'texlive-latexextra')
-source=("https://github.com/bebraw/pypandoc/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('87542996608c7418312f20b87b68106741a25125d77e4dac9cf17ee92d2b832fa13b87a7f9609064fbe5d1575c55f619c286769f121e260e69e720620b06d069')
-
-prepare() {
-  # We don't really need pip and wheel at runtime
-  sed -i "/install_requires = /d" pypandoc-$pkgver/setup.py
-}
-
-build() {
-  cd pypandoc-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd pypandoc-$pkgver
-  # https://github.com/NicklasTegner/pypandoc/issues/278
-  python setup.py test || echo "Tests failed"
-}
-
-package() {
-  cd pypandoc-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-pypandoc/repos/community-any/PKGBUILD (from rev 1228426, python-pypandoc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-07 09:00:21 UTC (rev 1228427)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+pkgname=python-pypandoc
+pkgver=1.8.1
+pkgrel=1
+pkgdesc="Thin wrapper for pandoc"
+arch=('any')
+license=('MIT')
+url="https://github.com/bebraw/pypandoc"
+depends=('pandoc')
+makedepends=('python-build' 'python-installer' 'python-poetry' 'python-wheel')
+checkdepends=('texlive-core' 'texlive-latexextra')
+source=("https://github.com/bebraw/pypandoc/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('3e2670254f7aa7e5a9b6ea0d19f8155dc712390b1bdf6df0b710b39c735ddafe3dfba009e92638843671bab2ec4b06c094026cc98f2eff51739112617bb49e87')
+
+build() {
+  cd pypandoc-$pkgver
+  python -m build -wn
+}
+
+check() {
+  cd pypandoc-$pkgver
+  # https://github.com/NicklasTegner/pypandoc/issues/278
+  python tests.py || echo "Tests failed"
+}
+
+package() {
+  cd pypandoc-$pkgver
+  python -m installer -d "$pkgdir" dist/*.whl
+  install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list