mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 11:19:50 +03:00
this is only a partial rebuild, including stuff that i built on my personal machine with python 3.12.2; might fail with 3.12.3
54 lines
1.3 KiB
Text
54 lines
1.3 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-github3
|
|
_pkgname=github3.py
|
|
pkgver=4.0.1
|
|
pkgrel=1
|
|
pkgdesc="Python wrapper for the GitHub API"
|
|
url="https://github3py.readthedocs.org/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="
|
|
py3-cryptography
|
|
py3-dateutil
|
|
py3-jwt
|
|
py3-requests
|
|
py3-uritemplate
|
|
python3
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-hatchling
|
|
"
|
|
checkdepends="
|
|
py3-betamax
|
|
py3-betamax_matchers
|
|
py3-pytest-xdist
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/github3.py-$pkgver"
|
|
|
|
replaces="py-github3" # Backwards compatibility
|
|
provides="py-github3=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
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 -n auto -k 'not test_delete_key'
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
a79f7e4c48405318bd61d03c7a8b2dc3629f6e2d8e954e316fba319115dd12c6e5e2fd69a00743e86078367b083841dbc494704e66ffda8582fb48c614ecf5b2 github3.py-4.0.1.tar.gz
|
|
"
|