* add mkdocstrings
This commit is contained in:
parent
7e12934e2d
commit
b1caa3d782
28
python/mkdocstrings/.SRCINFO
Normal file
28
python/mkdocstrings/.SRCINFO
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
pkgbase = mkdocstrings
|
||||||
|
pkgdesc = Automatic documentation from sources, for MkDocs
|
||||||
|
pkgver = 0.26.1
|
||||||
|
pkgrel = 2
|
||||||
|
url = https://github.com/mkdocstrings/mkdocstrings
|
||||||
|
arch = any
|
||||||
|
license = ISC
|
||||||
|
checkdepends = mkdocs-material
|
||||||
|
checkdepends = python-pygments
|
||||||
|
checkdepends = python-pytest
|
||||||
|
makedepends = python-build
|
||||||
|
makedepends = python-installer
|
||||||
|
makedepends = python-pdm-backend
|
||||||
|
makedepends = python-wheel
|
||||||
|
depends = mkdocs
|
||||||
|
depends = mkdocs-autorefs
|
||||||
|
depends = python
|
||||||
|
depends = python-click
|
||||||
|
depends = python-jinja
|
||||||
|
depends = python-markdown
|
||||||
|
depends = python-markupsafe
|
||||||
|
depends = python-platformdirs
|
||||||
|
depends = python-pymdown-extensions
|
||||||
|
depends = python-yaml
|
||||||
|
source = mkdocstrings-0.26.1.tar.gz::https://github.com/mkdocstrings/mkdocstrings/archive/0.26.1.tar.gz
|
||||||
|
sha256sums = 4ccf2c1ae5a313cdc4938a3d0fa040cd70bd27aba79dd03c9f51165f77f3acbf
|
||||||
|
|
||||||
|
pkgname = mkdocstrings
|
3
python/mkdocstrings/.nvchecker.toml
Normal file
3
python/mkdocstrings/.nvchecker.toml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[mkdocstrings]
|
||||||
|
source = "pypi"
|
||||||
|
pypi = "mkdocstrings"
|
59
python/mkdocstrings/PKGBUILD
Normal file
59
python/mkdocstrings/PKGBUILD
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||||
|
# Maintainer: Carl Smedstad <carsme@archlinux.org>
|
||||||
|
|
||||||
|
pkgname=mkdocstrings
|
||||||
|
pkgver=0.26.1
|
||||||
|
pkgrel=2
|
||||||
|
pkgdesc="Automatic documentation from sources, for MkDocs"
|
||||||
|
arch=(any)
|
||||||
|
url="https://github.com/mkdocstrings/mkdocstrings"
|
||||||
|
license=(ISC)
|
||||||
|
depends=(
|
||||||
|
mkdocs
|
||||||
|
mkdocs-autorefs
|
||||||
|
python
|
||||||
|
python-click
|
||||||
|
python-jinja
|
||||||
|
python-markdown
|
||||||
|
python-markupsafe
|
||||||
|
python-platformdirs
|
||||||
|
python-pymdown-extensions
|
||||||
|
python-yaml
|
||||||
|
)
|
||||||
|
makedepends=(
|
||||||
|
python-build
|
||||||
|
python-installer
|
||||||
|
python-pdm-backend
|
||||||
|
python-wheel
|
||||||
|
)
|
||||||
|
checkdepends=(
|
||||||
|
mkdocs-material
|
||||||
|
python-pygments
|
||||||
|
python-pytest
|
||||||
|
)
|
||||||
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
|
||||||
|
sha256sums=('4ccf2c1ae5a313cdc4938a3d0fa040cd70bd27aba79dd03c9f51165f77f3acbf')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $pkgname-$pkgver
|
||||||
|
export PDM_BUILD_SCM_VERSION=$pkgver
|
||||||
|
python -m build --wheel --no-isolation
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd $pkgname-$pkgver
|
||||||
|
python -m installer --destdir=tmp_install dist/*.whl
|
||||||
|
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||||
|
export PYTHONPATH="$PWD/tmp_install/$site_packages"
|
||||||
|
# Deselected tests requires handlers, which are not yet pacakged.
|
||||||
|
pytest \
|
||||||
|
--deselect tests/test_extension.py \
|
||||||
|
--deselect tests/test_handlers.py::test_extended_templates\
|
||||||
|
--deselect tests/test_plugin.py::test_disabling_plugin
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd $pkgname-$pkgver
|
||||||
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user