From 8cf90dcc2d6b0a92cbb9cd639b437f6c6d597be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=28=D0=A5?= =?UTF-8?q?=D1=80=D0=B0=D0=BC=D1=8B=D1=87=D0=AA=29=20=D0=A5=D1=80=D0=B0?= =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= Date: Mon, 7 Apr 2025 16:45:09 +0300 Subject: [PATCH] python3-markdown-it-py 3.0.0-1 --- python3-markdown-it-py/alr.sh | 72 +++++++++++++---------------------- 1 file changed, 27 insertions(+), 45 deletions(-) diff --git a/python3-markdown-it-py/alr.sh b/python3-markdown-it-py/alr.sh index fcdb3a3..4184dc2 100644 --- a/python3-markdown-it-py/alr.sh +++ b/python3-markdown-it-py/alr.sh @@ -1,57 +1,39 @@ -_pkgname=markdown-it-py name='python3-markdown-it-py' version='3.0.0' -release='3' -desc='Python port of markdown-it. Markdown parsing, done right!' -homepage='https://github.com/executablebooks/markdown-it-py' -license=('MIT') +release='1' +desc='Python port of markdown-it. Markdown parsing, done right' +homepage='' +maintainer='Евгений Храмов ' architectures=('all') +license=('custom:Unknown') +provides=('markdown-it-py') +conflicts=('markdown-it-py') -deps=( - 'python3-mdurl' -) -build_deps=( - 'python3-build' - 'python3-flit-core' - 'python3-installer' - 'python3-pytest' - 'python3-pytest-regressions' - 'python3-mdit-py-plugins' - 'python3-linkify-it-py' -) -build_deps_almalinux=( - 'python3-build' - 'python3.11-flit-core' - 'python3-installer' - 'python3-pytest' - 'python3-pytest-regressions' - 'python3-mdit-py-plugins' - 'python3-linkify-it-py' -) -#opt_deps=( -# 'python-mdit_py_plugins: core plugins' -#) +deps=("python3") +deps_arch=("python") +deps_alpine=("python3") -sources=("https://github.com/executablebooks/markdown-it-py/archive/v$version.tar.gz") -checksums=('SKIP') +build_deps=("python3" "python3-pip") +build_deps_arch=("python" "python-pip") +build_deps_alpine=("python3" "py3-pip") + +opt_deps=('python3-mdit-py-plugins: коллекция плагинов для markdown-it-py') + +sources=("https://files.pythonhosted.org/packages/source/m/markdown-it-py/markdown-it-py-3.0.0.tar.gz") +checksums=('blake2b-256:38713b932df36c1a044d397a1f92d1cf91ee0a503d91e470cbd670aa66b07ed0') build() { - cd $_pkgname-$version - - python -m build -} - -check() { - cd $_pkgname-$version - - python -m pytest tests + cd "$srcdir/markdown-it-py-${version}" + python -m build --wheel --no-isolation } package() { - cd $_pkgname-$version - - python -m installer -d "$pkgdir" dist/*.whl - - install-license ./LICENSE ./$_pkgname/LICENSE + cd "$srcdir/markdown-it-py-${version}" + pip install --root="${pkgdir}/" . --no-deps --ignore-installed --disable-pip-version-check } +files() { + echo ./usr/local/bin/markdown-it + printf '"%s" ' ./usr/local/lib/python3.*/site-packages/markdown_it/**/* + printf '"%s" ' ./usr/local/lib/python3.*/site-packages/markdown_it_py-${version}.dist-info/* +} \ No newline at end of file