| author | Caleb Maclennan
<alerque@archlinux.org> 2022-04-07 10:57:01 UTC |
| committer | Caleb Maclennan
<alerque@archlinux.org> 2022-04-07 10:57:01 UTC |
| parent | 65af413db03466fd051f315bcc249a176074dd24 |
| PKGBUILD | +11 | -10 |
diff --git a/PKGBUILD b/PKGBUILD index a5f2f09..8adf225 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,36 +1,37 @@ # Maintainer: Filipe LaĆns (FFY00) <lains@archlinux.org> +# Maintainer: Caleb Maclennana <caleb@alerque.com> _pkgname=MyST-Parser pkgname=python-myst-parser -pkgver=0.15.2 -pkgrel=3 +pkgver=0.17.0 +pkgrel=1 pkgdesc='An extended commonmark compliant parser, with bridges to docutils/sphinx' arch=('any') url='https://github.com/executablebooks/MyST-Parser' license=('MIT') -depends=('python-markdown-it-py' 'python-mdit_py_plugins' 'python-yaml' 'python-docutils' 'python-sphinx' 'python-jinja') +depends=('python-docutils' 'python-jinja' 'python-markdown-it-py' 'python-mdit_py_plugins' 'python-typing_extensions' 'python-sphinx' 'python-yaml') optdepends=('python-linkify-it-py: linkify support') -makedepends=('python-setuptools') -checkdepends=('python-pytest' 'python-pytest-regressions' 'python-beautifulsoup4' 'python-linkify-it-py') -source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") -sha512sums=('2426a36672bd7ab7c956199f191f3e3b6242efcb2897ebb5dc720f8a4e7ef7a97568ac8c671d32842b91aa4bf367c08c55e26b35f32a955d2f89b15d324920aa') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') +checkdepends=('python-beautifulsoup4' 'python-linkify-it-py' 'python-pytest' 'python-pytest-param-files' 'python-pytest-regressions') +source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('e9f4ea05ab55b0979b26f0211603aee0835a30fb37a0ca23f23b96e0b47670b6b8e443ee9759df5011d009e20d817eaffd4066c4be4920f96786c283aa206239') build() { cd $_pkgname-$pkgver - python setup.py build + python -m build -wn } check() { cd $_pkgname-$pkgver - python -m pytest -k 'not test_sphinx_builds and not test_fixtures' + python -m pytest -k 'not test_sphinx_builds and not fixtures and not test_myst_config' } package() { cd $_pkgname-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer -d "$pkgdir" dist/*.whl install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }