diff options
Diffstat (limited to 'community/py3-pygithub/APKBUILD')
-rw-r--r-- | community/py3-pygithub/APKBUILD | 39 |
1 files changed, 31 insertions, 8 deletions
diff --git a/community/py3-pygithub/APKBUILD b/community/py3-pygithub/APKBUILD index 78065104eae..070d3971583 100644 --- a/community/py3-pygithub/APKBUILD +++ b/community/py3-pygithub/APKBUILD @@ -2,28 +2,51 @@ # Maintainer: Jakub Jirutka <jakub@jirutka.cz> pkgname=py3-pygithub _pkgname=PyGithub -pkgver=1.53 +pkgver=2.3.0 pkgrel=1 pkgdesc="Typed interactions with the GitHub API v3" url="https://github.com/PyGithub/PyGithub" arch="noarch" license="LGPL-3.0-or-later" -depends="python3 py3-jwt py3-requests py3-deprecated" -makedepends="py3-setuptools" -checkdepends="py3-httpretty py3-cryptography py3-pytest" +depends=" + py3-cryptography + py3-deprecated + py3-jwt + py3-pynacl + py3-requests + py3-typing-extensions + py3-urllib3 + python3 + " +checkdepends=" + py3-httpretty + py3-pytest + " +makedepends=" + py3-gpep517 + py3-setuptools_scm + py3-wheel + " +subpackages="$pkgname-pyc" source="https://github.com/PyGithub/PyGithub/archive/v$pkgver/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { - python3 setup.py build + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - pytest-3 + python3 -m pytest } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/PyGithub-$pkgver-py3-none-any.whl } -sha512sums="f98d013d5fdf31ee59405c52edb35942ca5a3d2c1ff9653c71f03871bb28d0c247412bfc2593991026ddb989e1a33dfe91d19b4ebb1e89386b54493d51071768 PyGithub-1.53.tar.gz" +sha512sums=" +aa0496b57550923fa304bd22100ed480cd2a9e909e9030014252e9106f7bde7ba16b1f693b88c9f17c672e58e1ae9a2a5f11adcf97fc6f4c7258eacbaf6fafc0 PyGithub-2.3.0.tar.gz +" |