Date: Saturday, April 22, 2023 @ 08:10:38 Author: alerque Revision: 1448246
upgpkg: python-commonmark 0.9.1-8; Refactor with PEP517 build Modified: python-commonmark/trunk/PKGBUILD ----------+ PKGBUILD | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-04-22 08:05:45 UTC (rev 1448245) +++ PKGBUILD 2023-04-22 08:10:38 UTC (rev 1448246) @@ -1,14 +1,19 @@ # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Maintainer: Caleb Maclennan <[email protected]> pkgname=python-commonmark pkgver=0.9.1 -pkgrel=7 +pkgrel=8 pkgdesc='Python parser for the CommonMark Markdown spec' url='https://pypi.org/project/commonmark/' arch=('any') license=('BSD') -depends=('python-docutils' 'python-future') -makedepends=('python-setuptools' 'python-sphinx' 'python-sphinx_rtd_theme') +depends=('python-docutils' + 'python-future') +makedepends=('python-'{build,installer,wheel} + 'python-setuptools' + 'python-sphinx' + 'python-sphinx_rtd_theme') checkdepends=('python-hypothesis') options=('!makeflags') source=(${pkgname}-${pkgver}.tar.gz::https://github.com/readthedocs/commonmark.py/archive/${pkgver}.tar.gz) @@ -17,7 +22,7 @@ build() { cd commonmark.py-${pkgver} - python setup.py build + python -m build -wn make -C docs man text SPHINXBUILD=sphinx-build } @@ -30,7 +35,7 @@ package() { cd commonmark.py-${pkgver} - python setup.py install --root="${pkgdir}" -O1 --skip-build + python -m installer -d "${pkgdir}" dist/*.whl install -Dm 644 README.rst CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}" install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" install -Dm 644 docs/_build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}"
