1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/py3-twine/APKBUILD

54 lines
1.4 KiB
Text

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-twine
pkgver=3.4.1
pkgrel=3
pkgdesc="Collection of utilities for publishing packages on PyPI"
url="https://twine.readthedocs.io/en/latest/"
# ppc64le and mips64 blocked by py3-importlib-metadata
arch="noarch !ppc64le !mips64"
license="Apache-2.0"
depends="
py3-colorama
py3-importlib-metadata
py3-keyring
py3-pkginfo
py3-readme_renderer
py3-requests-toolbelt
py3-requests>=2.20.0
py3-rfc3986
py3-setuptools
py3-tqdm
python3
"
checkdepends="
py3-jaraco.envs
py3-munch
py3-portend
py3-pretend
py3-pytest
py3-pytest-cov
py3-pytest-socket
"
source="https://files.pythonhosted.org/packages/source/t/twine/twine-$pkgver.tar.gz
0001-remove-setuptools-scm.patch
"
builddir="$srcdir/twine-$pkgver"
build() {
python3 setup.py build
}
check() {
# deselect'ed tests require a network connection
PYTHONPATH="$PWD/build/lib" pytest \
--deselect tests/test_integration.py \
--deselect tests/test_upload.py::test_check_status_code_for_wrong_repo_url
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="16e06ce984aa2c5e875813c24c1fd4c0f7a3ccb39e6079d675a9e094eb23eba691dd766b675f5a9acb9ed57b6c92453dcba9707914550d73dbff50a1ec21371e twine-3.4.1.tar.gz
4b4fc104eb2311e049bc59976c97bf06b7e7cc47d07b19b8b70baa62629ac318d704a23dee011116a26cd302d71bc24e1e8885fcc8d93edf978b39e7de472168 0001-remove-setuptools-scm.patch"