mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-class-doc: new aport
This commit is contained in:
parent
913f5147f9
commit
6fff72e5f4
39
testing/py3-class-doc/APKBUILD
Normal file
39
testing/py3-class-doc/APKBUILD
Normal file
@ -0,0 +1,39 @@
|
||||
# Contributor: Lauren N. Liberda <lauren@selfisekai.rocks>
|
||||
# Maintainer: Lauren N. Liberda <lauren@selfisekai.rocks>
|
||||
pkgname=py3-class-doc
|
||||
pkgver=1.25
|
||||
pkgrel=0
|
||||
pkgdesc="Extract attributes docstrings defined in various ways"
|
||||
url="https://github.com/danields761/class-doc"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-more-itertools"
|
||||
makedepends="py3-gpep517 py3-poetry-core"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://github.com/danields761/class-doc/archive/refs/tags/$pkgver/class-doc-$pkgver.tar.gz
|
||||
masonry.patch
|
||||
"
|
||||
builddir="$srcdir/class-doc-$pkgver"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 -m venv --clear --without-pip --system-site-packages testenv
|
||||
testenv/bin/python3 -m installer .dist/*.whl
|
||||
testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ee90100b8be199873c411ecb97915bc835c744d30e539eb661193224a200e66d66189857dc5043bd32f2f01c9ea852b9624d3b01d4236e2e3f93fe278d0da26a class-doc-1.25.tar.gz
|
||||
f063b339531531a47a9a72f84a49374f6e8178d8901c207bcb7713a19c49ed72f54260937b5d5d106bc48c8d54e43eeef818c0d6a6a32f4edc06ce9f71962050 masonry.patch
|
||||
"
|
11
testing/py3-class-doc/masonry.patch
Normal file
11
testing/py3-class-doc/masonry.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./pyproject.toml.orig
|
||||
+++ ./pyproject.toml
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry>=0.12"]
|
||||
-build-backend = "poetry.masonry.api"
|
||||
+build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[tool.black]
|
||||
skip_string_normalization = true
|
Loading…
Reference in New Issue
Block a user