[arch-commits] Commit in python-pypandoc/trunk (PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Tue Jun 7 08:59:51 UTC 2022
Date: Tuesday, June 7, 2022 @ 08:59:51
Author: alerque
Revision: 1228426
upgpkg: python-pypandoc 1.8.1-1
Modified:
python-pypandoc/trunk/PKGBUILD
----------+
PKGBUILD | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-07 08:55:10 UTC (rev 1228425)
+++ PKGBUILD 2022-06-07 08:59:51 UTC (rev 1228426)
@@ -2,7 +2,7 @@
# Maintainer: Caleb Maclennan <caleb at alerque.com>
pkgname=python-pypandoc
-pkgver=1.7.5
+pkgver=1.8.1
pkgrel=1
pkgdesc="Thin wrapper for pandoc"
arch=('any')
@@ -9,29 +9,24 @@
license=('MIT')
url="https://github.com/bebraw/pypandoc"
depends=('pandoc')
-makedepends=('python-setuptools')
+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=('87542996608c7418312f20b87b68106741a25125d77e4dac9cf17ee92d2b832fa13b87a7f9609064fbe5d1575c55f619c286769f121e260e69e720620b06d069')
+sha512sums=('3e2670254f7aa7e5a9b6ea0d19f8155dc712390b1bdf6df0b710b39c735ddafe3dfba009e92638843671bab2ec4b06c094026cc98f2eff51739112617bb49e87')
-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
+ python -m build -wn
}
check() {
cd pypandoc-$pkgver
# https://github.com/NicklasTegner/pypandoc/issues/278
- python setup.py test || echo "Tests failed"
+ python tests.py || echo "Tests failed"
}
package() {
cd pypandoc-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ 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